aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/isearch.el10
2 files changed, 18 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b96d830e807..070d2f1bd37 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12013-05-15 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (minibuffer-local-isearch-map): Bind "\r" to
4 `exit-minibuffer' instead of
5 `isearch-nonincremental-exit-minibuffer'.
6 (isearch-edit-string): Remove mention of
7 `isearch-nonincremental-exit-minibuffer' from docstring.
8 (isearch-nonincremental-exit-minibuffer): Mark as obsolete.
9 (isearch-forward-exit-minibuffer)
10 (isearch-reverse-exit-minibuffer): Add docstring. (Bug#13348)
11
12013-05-15 Stefan Monnier <monnier@iro.umontreal.ca> 122013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 13
3 * loadup.el: Just use unversioned DOC. 14 * loadup.el: Just use unversioned DOC.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 72a125fcecb..04fd594e7f1 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -47,7 +47,7 @@
47;; modify the search string before executing the search. There are 47;; modify the search string before executing the search. There are
48;; three commands to terminate the editing: C-s and C-r exit the 48;; three commands to terminate the editing: C-s and C-r exit the
49;; minibuffer and search forward and reverse respectively, while C-m 49;; minibuffer and search forward and reverse respectively, while C-m
50;; exits and does a nonincremental search. 50;; exits and searches in the last search direction.
51 51
52;; Exiting immediately from isearch uses isearch-edit-string instead 52;; Exiting immediately from isearch uses isearch-edit-string instead
53;; of nonincremental-search, if search-nonincremental-instead is non-nil. 53;; of nonincremental-search, if search-nonincremental-instead is non-nil.
@@ -528,7 +528,7 @@ This is like `describe-bindings', but displays only Isearch keys."
528(defvar minibuffer-local-isearch-map 528(defvar minibuffer-local-isearch-map
529 (let ((map (make-sparse-keymap))) 529 (let ((map (make-sparse-keymap)))
530 (set-keymap-parent map minibuffer-local-map) 530 (set-keymap-parent map minibuffer-local-map)
531 (define-key map "\r" 'isearch-nonincremental-exit-minibuffer) 531 (define-key map "\r" 'exit-minibuffer)
532 (define-key map "\M-\t" 'isearch-complete-edit) 532 (define-key map "\M-\t" 'isearch-complete-edit)
533 (define-key map "\C-s" 'isearch-forward-exit-minibuffer) 533 (define-key map "\C-s" 'isearch-forward-exit-minibuffer)
534 (define-key map "\C-r" 'isearch-reverse-exit-minibuffer) 534 (define-key map "\C-r" 'isearch-reverse-exit-minibuffer)
@@ -1273,7 +1273,6 @@ You can update the global isearch variables by setting new values to
1273The following additional command keys are active while editing. 1273The following additional command keys are active while editing.
1274\\<minibuffer-local-isearch-map> 1274\\<minibuffer-local-isearch-map>
1275\\[exit-minibuffer] to resume incremental searching with the edited string. 1275\\[exit-minibuffer] to resume incremental searching with the edited string.
1276\\[isearch-nonincremental-exit-minibuffer] to do one nonincremental search.
1277\\[isearch-forward-exit-minibuffer] to resume isearching forward. 1276\\[isearch-forward-exit-minibuffer] to resume isearching forward.
1278\\[isearch-reverse-exit-minibuffer] to resume isearching backward. 1277\\[isearch-reverse-exit-minibuffer] to resume isearching backward.
1279\\[isearch-complete-edit] to complete the search string using the search ring." 1278\\[isearch-complete-edit] to complete the search string using the search ring."
@@ -1307,13 +1306,18 @@ The following additional command keys are active while editing.
1307 (interactive) 1306 (interactive)
1308 (setq isearch-nonincremental t) 1307 (setq isearch-nonincremental t)
1309 (exit-minibuffer)) 1308 (exit-minibuffer))
1309;; Changing the value of `isearch-nonincremental' has no effect here,
1310;; because `isearch-edit-string' ignores this change. Thus marked as obsolete.
1311(make-obsolete 'isearch-nonincremental-exit-minibuffer 'exit-minibuffer "24.4")
1310 1312
1311(defun isearch-forward-exit-minibuffer () 1313(defun isearch-forward-exit-minibuffer ()
1314 "Resume isearching forward from the minibuffer that edits the search string."
1312 (interactive) 1315 (interactive)
1313 (setq isearch-new-forward t) 1316 (setq isearch-new-forward t)
1314 (exit-minibuffer)) 1317 (exit-minibuffer))
1315 1318
1316(defun isearch-reverse-exit-minibuffer () 1319(defun isearch-reverse-exit-minibuffer ()
1320 "Resume isearching backward from the minibuffer that edits the search string."
1317 (interactive) 1321 (interactive)
1318 (setq isearch-new-forward nil) 1322 (setq isearch-new-forward nil)
1319 (exit-minibuffer)) 1323 (exit-minibuffer))