aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGrégory Mounié2018-08-03 23:08:10 +0200
committerNoam Postavsky2018-08-14 19:38:21 -0400
commitcc5a23d40bfa7a832f7a6fb7a016557ac1416559 (patch)
tree258ec3f55c167d7d8c6da9635c67ed81d7677777 /doc
parent1164d49ba6a3ce59a2bd404219851d8e27b54611 (diff)
downloademacs-cc5a23d40bfa7a832f7a6fb7a016557ac1416559.tar.gz
emacs-cc5a23d40bfa7a832f7a6fb7a016557ac1416559.zip
Interactive Highlighting: prefix argument to select subexp
* doc/emacs/display.texi (Highlight Interactively): * etc/NEWS: Document the change. * lisp/hi-lock.el (hi-lock-face-buffer, hi-lock-set-pattern): Use the prefix argument to highlight only the corresponding sub-expression of the regexp (Bug#32365). Copyright-paperwork-exempt: yes
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/display.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 2f5ce80d607..fe4936d85a1 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -975,7 +975,8 @@ the word ``whim'' using the default face (a yellow background), type
975@kbd{M-s h r whim @key{RET} @key{RET}}. Any face can be used for 975@kbd{M-s h r whim @key{RET} @key{RET}}. Any face can be used for
976highlighting, Hi Lock provides several of its own and these are 976highlighting, Hi Lock provides several of its own and these are
977pre-loaded into a list of default values. While being prompted 977pre-loaded into a list of default values. While being prompted
978for a face use @kbd{M-n} and @kbd{M-p} to cycle through them. 978for a face use @kbd{M-n} and @kbd{M-p} to cycle through them. A prefix
979argument limits the highlighting to the corresponding subexpression.
979 980
980@vindex hi-lock-auto-select-face 981@vindex hi-lock-auto-select-face
981Setting the option @code{hi-lock-auto-select-face} to a non-@code{nil} 982Setting the option @code{hi-lock-auto-select-face} to a non-@code{nil}