aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-30 07:03:33 +0000
committerRichard M. Stallman1994-08-30 07:03:33 +0000
commit0daa17f3faa638c7ef7b0f8020c2c9a67892ccf6 (patch)
tree45b45a32d3a009b8743a8107dd28fbb37ad8d93d
parent98295b48d691d9d88ce850553752fd54e1cfbebf (diff)
downloademacs-0daa17f3faa638c7ef7b0f8020c2c9a67892ccf6.tar.gz
emacs-0daa17f3faa638c7ef7b0f8020c2c9a67892ccf6.zip
(isearch-edit-string): In the isearch-recursive-edit case,
don't end the recursive edit and don't start another one. (isearch-done): New arg EDIT. (isearch-mode): Return t if search succeeded.
-rw-r--r--lisp/isearch.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 38690b4d8de..d132aacd848 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> 5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
6 6
7;; |$Date: 1994/06/11 18:59:38 $|$Revision: 1.70 $ 7;; |$Date: 1994/08/05 04:15:20 $|$Revision: 1.71 $
8 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
10 10
@@ -531,7 +531,7 @@ is treated as a regexp. See \\[isearch-forward] for more info."
531 (if recursive-edit 531 (if recursive-edit
532 (let ((isearch-recursive-edit t)) 532 (let ((isearch-recursive-edit t))
533 (recursive-edit))) 533 (recursive-edit)))
534 ) 534 isearch-success)
535 535
536 536
537;;;==================================================== 537;;;====================================================
@@ -578,7 +578,7 @@ is treated as a regexp. See \\[isearch-forward] for more info."
578 ) 578 )
579 579
580 580
581(defun isearch-done (&optional nopush) 581(defun isearch-done (&optional nopush edit)
582 ;; Called by all commands that terminate isearch-mode. 582 ;; Called by all commands that terminate isearch-mode.
583 ;; If NOPUSH is non-nil, we don't push the string on the search ring. 583 ;; If NOPUSH is non-nil, we don't push the string on the search ring.
584 (setq overriding-local-map nil) 584 (setq overriding-local-map nil)
@@ -626,7 +626,7 @@ is treated as a regexp. See \\[isearch-forward] for more info."
626 (setcdr (nthcdr (1- search-ring-max) search-ring) nil)))))) 626 (setcdr (nthcdr (1- search-ring-max) search-ring) nil))))))
627 627
628 (run-hooks 'isearch-mode-end-hook) 628 (run-hooks 'isearch-mode-end-hook)
629 (if isearch-recursive-edit (exit-recursive-edit))) 629 (and (not edit) isearch-recursive-edit (exit-recursive-edit)))
630 630
631;;;======================================================= 631;;;=======================================================
632;;; Switching buffers should first terminate isearch-mode. 632;;; Switching buffers should first terminate isearch-mode.
@@ -714,7 +714,7 @@ If first char entered is \\[isearch-yank-word], then do word search instead."
714 ;; This is so that the user can do anything without failure, 714 ;; This is so that the user can do anything without failure,
715 ;; like switch buffers and start another isearch, and return. 715 ;; like switch buffers and start another isearch, and return.
716 (condition-case err 716 (condition-case err
717 (isearch-done t) 717 (isearch-done t t)
718 (exit nil)) ; was recursive editing 718 (exit nil)) ; was recursive editing
719 719
720 (isearch-message) ;; for read-char 720 (isearch-message) ;; for read-char
@@ -751,7 +751,7 @@ If first char entered is \\[isearch-yank-word], then do word search instead."
751 (isearch-mode isearch-forward 751 (isearch-mode isearch-forward
752 isearch-regexp 752 isearch-regexp
753 isearch-op-fun 753 isearch-op-fun
754 isearch-recursive-edit 754 nil
755 isearch-word) 755 isearch-word)
756 756
757 ;; Copy new local values to isearch globals 757 ;; Copy new local values to isearch globals