summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-08-10 12:47:39 +0000
committerGerd Moellmann <gerd@gnu.org>2001-08-10 12:47:39 +0000
commit57bc14d7d7d13522d93dd92e9a00f75318c66c9f (patch)
tree52067977849eb35850081490f53b2eaa173d6b1e /lisp/isearch.el
parent870d5c12bc74ffd0010a555af530e289455dbd7d (diff)
downloademacs-57bc14d7d7d13522d93dd92e9a00f75318c66c9f.tar.gz
(isearch-other-meta-char): Don't switch to the
buffer of a window clicked on, when the current buffer is in Isearch mode.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index ef69ff23cb6..1de8fce8e3b 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1243,10 +1243,25 @@ and the meta character is unread so that it applies to editing the string."
(pop unread-command-events)
(setq main-event (car unread-command-events)))
- ;; If we got a mouse click, maybe it was read with the buffer
+ ;; If we got a mouse click event, that event contains the
+ ;; window clicked on. 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.
- (if (and (listp main-event)
+
+ ;; ??? I have no idea what this if checks for, but it's
+ ;; obviously wrong for the case that a down-mouse event
+ ;; on another window invokes this function. The event
+ ;; will contain the window clicked on and that window's
+ ;; buffer is certainaly not always in Isearch mode.
+ ;;
+ ;; Leave the code in, but check for current buffer not
+ ;; being in Isearch mode for now, until someone tells
+ ;; what it's really supposed to do.
+ ;;
+ ;; --gerd 2001-08-10.
+
+ (if (and (not isearch-mode)
+ (listp main-event)
(setq window (posn-window (event-start main-event)))
(windowp window)
(or (> (minibuffer-depth) 0)