# HG changeset patch # User Richard M. Stallman # Date 788418547 0 # Node ID d530ba7eb4711d28cd5cdd383ee26a0ef81bcd59 # Parent 83d56dd99a4088822b1fd06d55cea1e7a94ce9aa (isearch-mode): Set mouse-leave-buffer-hook. (isearch-done): Clear it. diff -r 83d56dd99a40 -r d530ba7eb471 lisp/isearch.el --- a/lisp/isearch.el Mon Dec 26 01:28:59 1994 +0000 +++ b/lisp/isearch.el Mon Dec 26 05:09:07 1994 +0000 @@ -4,7 +4,7 @@ ;; Author: Daniel LaLiberte -;; |$Date: 1994/12/15 02:06:45 $|$Revision: 1.80 $ +;; |$Date: 1994/12/17 00:41:34 $|$Revision: 1.81 $ ;; This file is part of GNU Emacs. @@ -507,6 +507,8 @@ (isearch-update) (run-hooks 'isearch-mode-hook) + (setq mouse-leave-buffer-hook '(isearch-done)) + ;; isearch-mode can be made modal (in the sense of not returning to ;; the calling function until searching is completed) by entering ;; a recursive-edit and exiting it when done isearching. @@ -555,8 +557,8 @@ isearch-yank-flag nil) ) - (defun isearch-done (&optional nopush edit) + (setq mouse-leave-buffer-hook nil) ;; Called by all commands that terminate isearch-mode. ;; If NOPUSH is non-nil, we don't push the string on the search ring. (setq overriding-local-map nil)