aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2013-05-16 02:14:18 +0300
committerJuri Linkov2013-05-16 02:14:18 +0300
commit6d65486d647049cbf33524e261bbd891dd28daba (patch)
tree962c723d0a092355ecc44de1dd1679ee97341ad8
parent6e911150d00fa20c60b91d51aafd2cfd81e1c349 (diff)
downloademacs-6d65486d647049cbf33524e261bbd891dd28daba.tar.gz
emacs-6d65486d647049cbf33524e261bbd891dd28daba.zip
* lisp/isearch.el (minibuffer-local-isearch-map): Bind "\r" to `exit-minibuffer'
instead of `isearch-nonincremental-exit-minibuffer'. (isearch-edit-string): Remove mention of `isearch-nonincremental-exit-minibuffer' from docstring. (isearch-nonincremental-exit-minibuffer): Mark as obsolete. (isearch-forward-exit-minibuffer) (isearch-reverse-exit-minibuffer): Add docstring. (Bug#13348) * doc/emacs/search.texi (Repeat Isearch): Mention key `RET' to finish editing the string.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/search.texi2
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/isearch.el10
4 files changed, 24 insertions, 4 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 1d72ba18860..14e9be8ba84 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12013-05-15 Juri Linkov <juri@jurta.org>
2
3 * search.texi (Repeat Isearch): Mention key `RET' to finish
4 editing the string. (Bug#13348)
5
12013-05-14 Glenn Morris <rgm@gnu.org> 62013-05-14 Glenn Morris <rgm@gnu.org>
2 7
3 * ack.texi (Acknowledgments): Don't mention obsolete sup-mouse.el. 8 * ack.texi (Acknowledgments): Don't mention obsolete sup-mouse.el.
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 377264223a5..e146177255e 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -175,7 +175,7 @@ element in the minibuffer, where you can edit it.
175 175
176@kindex M-e @r{(Incremental search)} 176@kindex M-e @r{(Incremental search)}
177 To edit the current search string in the minibuffer without 177 To edit the current search string in the minibuffer without
178replacing it with items from the search ring, type @kbd{M-e}. Type 178replacing it with items from the search ring, type @kbd{M-e}. Type @key{RET},
179@kbd{C-s} or @kbd{C-r} to finish editing the string and search for it. 179@kbd{C-s} or @kbd{C-r} to finish editing the string and search for it.
180 180
181@node Error in Isearch 181@node Error in Isearch
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))