emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7559c6a: Add new Isearch commands to new Isearch me


From: Juri Linkov
Subject: [Emacs-diffs] master 7559c6a: Add new Isearch commands to new Isearch menu (bug#29321, bug#32990)
Date: Sat, 24 Nov 2018 17:59:23 -0500 (EST)

branch: master
commit 7559c6a8ba3964a8b1c7a699e39453d538e1c5f6
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    Add new Isearch commands to new Isearch menu (bug#29321, bug#32990)
    
    * 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 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 5913ea8..eb0b25f 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]