diff options
author | Charles A. Roelli <charles@aurox.ch> | 2018-03-11 14:56:00 +0100 |
---|---|---|
committer | Charles A. Roelli <charles@aurox.ch> | 2018-03-11 14:56:00 +0100 |
commit | 0965d94ca426765382f366bf48f88ba5f9500afd (patch) | |
tree | 9edaf0fbae28388f0a24327377cb141031515e08 /doc/emacs/building.texi | |
parent | c773dc118e897d6e0b95c131051e73d6fef97111 (diff) | |
download | emacs-0965d94ca426765382f366bf48f88ba5f9500afd.tar.gz emacs-0965d94ca426765382f366bf48f88ba5f9500afd.tar.bz2 emacs-0965d94ca426765382f366bf48f88ba5f9500afd.zip |
Allow toggling Grep command abbreviation, and rename related symbols
* lisp/progmodes/grep.el (grep-find-hide): Rename 'grep-find-hide'
to 'grep-find-abbreviate'.
(grep-find-hide-properties): Rename to
'grep-find-abbreviate-properties'.
(grep-mode-font-lock-keywords): Even when 'grep-find-abbreviate'
is nil, fontify the verbose command options with property
'abbreviated-command', so that the toggling command can later find
these parts without refontifying.
(grep-find-show): Rename to 'grep-find-toggle-abbreviation',
simplify the code, and permit toggling the hidden command options.
(grep-mode-map): Add a menu-bar item and new separator for
'grep-find-toggle-abbreviation', and fix the incumbent separators
in the "Grep" menu-bar, of which only one was showing before this
commit, even though two were specified.
* etc/NEWS (grep):
* doc/emacs/building.texi (Grep Searching): Document these
changes, and mention 'grep-find-toggle-abbreviation'.
Diffstat (limited to 'doc/emacs/building.texi')
-rw-r--r-- | doc/emacs/building.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 0697e1b590d..e1c3cea0355 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -434,14 +434,17 @@ the variable @code{grep-files-aliases}. @kbd{M-x rgrep}. The default value includes the data directories used by various version control systems. -@vindex grep-find-hide +@vindex grep-find-abbreviate +@findex grep-find-toggle-abbreviation By default, the shell commands constructed for @code{lgrep}, @code{rgrep}, and @code{zgrep} are abbreviated for display by concealing the part that contains a long list of files and directories to ignore. You can reveal the concealed part by clicking on the -button with ellipsis, which represents them. To disable this -abbreviation of the shell commands, customize the option -@code{grep-find-hide} to a @code{nil} value. +button with ellipsis, which represents them. You can also +interactively toggle viewing the concealed part by typing @kbd{M-x +grep-find-toggle-abbreviation}. To disable this abbreviation of the +shell commands, customize the option @code{grep-find-abbreviate} to a +@code{nil} value. @node Flymake @section Finding Syntax Errors On The Fly |