diff options
| author | Gerd Moellmann | 2001-07-25 14:02:28 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-25 14:02:28 +0000 |
| commit | 3fb01f36c5c20ac9e939b3ec59bbef8f91d56fce (patch) | |
| tree | 8e4f18b6d1a195962aa06810c5b686458c38a9f6 /lisp | |
| parent | e743f5996ee90cd779c0cd76645e0f599b2281ef (diff) | |
| download | emacs-3fb01f36c5c20ac9e939b3ec59bbef8f91d56fce.tar.gz emacs-3fb01f36c5c20ac9e939b3ec59bbef8f91d56fce.zip | |
(isearch-other-meta-char): Don't modify mode-line and
similar events for which fake prefix keys are generated. It's no
longer necessary since read_key_sequence doesn't modify these
events for internal purposes anymore.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/isearch.el | 27 |
2 files changed, 18 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e4d1252c44e..ccf7ab71d0b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2001-07-25 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-07-25 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * isearch.el (isearch-other-meta-char): Don't modify mode-line and | ||
| 4 | similar events for which fake prefix keys are generated. It's no | ||
| 5 | longer necessary since read_key_sequence doesn't modify these | ||
| 6 | events for internal purposes anymore. | ||
| 7 | |||
| 3 | * files.el (auto-mode-alist): Use nroff-mode for files ending | 8 | * files.el (auto-mode-alist): Use nroff-mode for files ending |
| 4 | in `.9'. From Assar Westerlund <assar@stacken.kth.se>. | 9 | in `.9'. From Assar Westerlund <assar@stacken.kth.se>. |
| 5 | 10 | ||
diff --git a/lisp/isearch.el b/lisp/isearch.el index 672f559c2ba..1052708e15b 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1229,20 +1229,19 @@ and the meta character is unread so that it applies to editing the string." | |||
| 1229 | (let (window) | 1229 | (let (window) |
| 1230 | (cancel-kbd-macro-events) | 1230 | (cancel-kbd-macro-events) |
| 1231 | (apply 'isearch-unread keylist) | 1231 | (apply 'isearch-unread keylist) |
| 1232 | ;; Properly handle scroll-bar and mode-line clicks | 1232 | |
| 1233 | ;; for which a dummy prefix event was generated as (aref key 0). | 1233 | ;; Properly handle scroll-bar and mode-line clicks for |
| 1234 | (and (> (length key) 1) | 1234 | ;; which a dummy prefix event was generated as (aref key |
| 1235 | (symbolp (aref key 0)) | 1235 | ;; 0). Note that we don't have to modify the event |
| 1236 | (listp (aref key 1)) | 1236 | ;; anymore in 21 because read_key_sequence no longer modifies |
| 1237 | (not (numberp (posn-point (event-start (aref key 1))))) | 1237 | ;; events to produce fake prefix keys. |
| 1238 | ;; Convert the event back into its raw form, | 1238 | (when (and (> (length key) 1) |
| 1239 | ;; with the dummy prefix implicit in the mouse event, | 1239 | (symbolp (aref key 0)) |
| 1240 | ;; so it will get split up once again. | 1240 | (listp (aref key 1)) |
| 1241 | (progn (setq unread-command-events | 1241 | (not (numberp (posn-point |
| 1242 | (cdr unread-command-events)) | 1242 | (event-start (aref key 1)))))) |
| 1243 | (setq main-event (car unread-command-events)) | 1243 | (setq main-event (pop unread-command-events))) |
| 1244 | (setcar (cdr (event-start main-event)) | 1244 | |
| 1245 | (car (nth 1 (event-start main-event)))))) | ||
| 1246 | ;; If we got a mouse click, maybe it was read with the buffer | 1245 | ;; If we got a mouse click, maybe it was read with the buffer |
| 1247 | ;; it was clicked on. If so, that buffer, not the current one, | 1246 | ;; it was clicked on. If so, that buffer, not the current one, |
| 1248 | ;; is in isearch mode. So end the search in that buffer. | 1247 | ;; is in isearch mode. So end the search in that buffer. |