]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-other-meta-char): Don't modify mode-line and
authorGerd Moellmann <gerd@gnu.org>
Wed, 25 Jul 2001 14:02:28 +0000 (14:02 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 25 Jul 2001 14:02:28 +0000 (14:02 +0000)
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.

lisp/ChangeLog
lisp/isearch.el

index e4d1252c44edfdb1d51aa980fc92ad2602330dda..ccf7ab71d0b09132dcaa8d829fae49977c285f59 100644 (file)
@@ -1,5 +1,10 @@
 2001-07-25  Gerd Moellmann  <gerd@gnu.org>
 
+       * isearch.el (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.
+
        * files.el (auto-mode-alist): Use nroff-mode for files ending
        in `.9'.  From Assar Westerlund  <assar@stacken.kth.se>.
 
index 672f559c2baf4b01c63d57a8add257401ae8d767..1052708e15b022e3c13cbfd69eedd1f1822560ae 100644 (file)
@@ -1229,20 +1229,19 @@ and the meta character is unread so that it applies to editing the string."
           (let (window)
             (cancel-kbd-macro-events)
             (apply 'isearch-unread keylist)
-            ;; Properly handle scroll-bar and mode-line clicks
-            ;; for which a dummy prefix event was generated as (aref key 0).
-            (and (> (length key) 1)
-                 (symbolp (aref key 0))
-                 (listp (aref key 1))
-                 (not (numberp (posn-point (event-start (aref key 1)))))
-                 ;; Convert the event back into its raw form,
-                 ;; with the dummy prefix implicit in the mouse event,
-                 ;; so it will get split up once again.
-                 (progn (setq unread-command-events
-                              (cdr unread-command-events))
-                        (setq main-event (car unread-command-events))
-                        (setcar (cdr (event-start main-event))
-                                (car (nth 1 (event-start main-event))))))
+
+            ;; Properly handle scroll-bar and mode-line clicks for
+            ;; which a dummy prefix event was generated as (aref key
+            ;; 0).  Note that we don't have to modify the event
+            ;; anymore in 21 because read_key_sequence no longer modifies
+            ;; events to produce fake prefix keys.
+            (when (and (> (length key) 1)
+                       (symbolp (aref key 0))
+                       (listp (aref key 1))
+                       (not (numberp (posn-point 
+                                      (event-start (aref key 1))))))
+              (setq main-event (pop unread-command-events)))
+
             ;; If we got a mouse click, maybe it was read with the buffer
             ;; it was clicked on.  If so, that buffer, not the current one,
             ;; is in isearch mode.  So end the search in that buffer.