[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/isearch.el
From: |
Richard M . Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/isearch.el |
Date: |
Sat, 16 Jul 2005 15:13:30 -0400 |
Index: emacs/lisp/isearch.el
diff -c emacs/lisp/isearch.el:1.264 emacs/lisp/isearch.el:1.265
*** emacs/lisp/isearch.el:1.264 Mon Jul 4 23:08:56 2005
--- emacs/lisp/isearch.el Sat Jul 16 19:13:30 2005
***************
*** 154,160 ****
"Function(s) to call after starting up an incremental search.")
(defvar isearch-mode-end-hook nil
! "Function(s) to call after terminating an incremental search.")
(defvar isearch-wrap-function nil
"Function to call to wrap the search when search is failed.
--- 154,165 ----
"Function(s) to call after starting up an incremental search.")
(defvar isearch-mode-end-hook nil
! "Function(s) to call after terminating an incremental search.
! When these functions are called, `isearch-mode-end-hook-quit'
! is non-nil if the user quit the search.")
!
! (defvar isearch-mode-end-hook-quit nil
! "Non-nil while running `isearch-mode-end-hook' if user quit the search.")
(defvar isearch-wrap-function nil
"Function to call to wrap the search when search is failed.
***************
*** 744,749 ****
--- 749,760 ----
(setq disable-point-adjustment t))
(defun isearch-done (&optional nopush edit)
+ "Exit Isearch mode.
+ For successful search, pass no args.
+ For a failing search, NOPUSH is t.
+ For going to the minibuffer to edit the search string,
+ NOPUSH is t and EDIT is t."
+
(if isearch-resume-in-command-history
(let ((command `(isearch-resume ,isearch-string ,isearch-regexp
,isearch-word ,isearch-forward
***************
*** 795,801 ****
;; Update the ring data.
(isearch-update-ring isearch-string isearch-regexp))
! (run-hooks 'isearch-mode-end-hook)
;; If there was movement, mark the starting position.
;; Maybe should test difference between and set mark iff > threshold.
--- 806,813 ----
;; Update the ring data.
(isearch-update-ring isearch-string isearch-regexp))
! (let ((isearch-mode-end-hook-quit (and nopush (not edit))))
! (run-hooks 'isearch-mode-end-hook))
;; If there was movement, mark the starting position.
;; Maybe should test difference between and set mark iff > threshold.