]> git.eshelyaron.com Git - emacs.git/commitdiff
Add new Isearch commands to new Isearch menu (bug#29321, bug#32990)
authorJuri Linkov <juri@linkov.net>
Sat, 24 Nov 2018 22:59:15 +0000 (00:59 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 24 Nov 2018 22:59:15 +0000 (00:59 +0200)
* lisp/isearch.el (isearch-menu-bar-map): Add menu items for
isearch-beginning-of-buffer and isearch-end-of-buffer.
(isearch-forward): Add them to docstring.

lisp/isearch.el

index 5913ea8a6b83f252108c63ff17a715594cede295..eb0b25f9b1713d01bfd1081e38eb2fa3ab3dc3ae 100644 (file)
@@ -623,6 +623,12 @@ This is like `describe-bindings', but displays only Isearch keys."
     (define-key map [isearch-delete-char]
       '(menu-item "Undo last input item" isearch-delete-char
                   :help "Undo the effect of the last Isearch command"))
+    (define-key map [isearch-end-of-buffer]
+      '(menu-item "Go to last match" isearch-end-of-buffer
+                  :help "Go to last occurrence of current search string"))
+    (define-key map [isearch-beginning-of-buffer]
+      '(menu-item "Go to first match" isearch-beginning-of-buffer
+                  :help "Go to first occurrence of current search string"))
     (define-key map [isearch-repeat-backward]
       '(menu-item "Repeat search backward" isearch-repeat-backward
                   :help "Repeat current search backward"))
@@ -978,6 +984,8 @@ Type \\[isearch-exit] to exit, leaving point at location found.
 Type LFD (C-j) to match end of line.
 Type \\[isearch-repeat-forward] to search again forward,\
  \\[isearch-repeat-backward] to search again backward.
+Type \\[isearch-beginning-of-buffer] to go to the first match,\
+ \\[isearch-end-of-buffer] to go to the last match.
 Type \\[isearch-yank-word-or-char] to yank next word or character in buffer
   onto the end of the search string, and search for it.
 Type \\[isearch-del-char] to delete character from end of search string.