From: Juri Linkov Date: Sat, 24 Nov 2018 22:59:15 +0000 (+0200) Subject: Add new Isearch commands to new Isearch menu (bug#29321, bug#32990) X-Git-Tag: emacs-27.0.90~4099 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7559c6a8ba3964a8b1c7a699e39453d538e1c5f6;p=emacs.git 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. --- diff --git a/lisp/isearch.el b/lisp/isearch.el index 5913ea8a6b8..eb0b25f9b17 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.