aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2020-03-04 01:48:03 +0200
committerJuri Linkov2020-03-04 01:48:03 +0200
commit592b1cfee9f80413290dcd470effa7fa14036df3 (patch)
treee24e603c85bf02642a7a165078b31f27c4b6b7ed
parentadd0610ec9327c15ee933f571731401212328810 (diff)
downloademacs-592b1cfee9f80413290dcd470effa7fa14036df3.tar.gz
emacs-592b1cfee9f80413290dcd470effa7fa14036df3.zip
Improve documentation of next-error-highlight-no-select (bug#38778)
* doc/emacs/building.texi (Compilation Mode): Mention next-error-highlight-no-select. * lisp/simple.el (next-error-highlight): Add reference to next-error-highlight-no-select. (next-error-highlight-no-select): Add reference to next-error-highlight.
-rw-r--r--doc/emacs/building.texi5
-rw-r--r--lisp/simple.el13
2 files changed, 13 insertions, 5 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index 02f18865f39..e866eea4a29 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -214,6 +214,7 @@ Select a buffer to be used by next invocation of @code{next-error} and
214@kindex C-x ` 214@kindex C-x `
215@findex next-error 215@findex next-error
216@vindex next-error-highlight 216@vindex next-error-highlight
217@vindex next-error-highlight-no-select
217 To visit errors sequentially, type @w{@kbd{C-x `}} 218 To visit errors sequentially, type @w{@kbd{C-x `}}
218(@code{next-error}), or equivalently @kbd{M-g M-n} or @kbd{M-g n}. 219(@code{next-error}), or equivalently @kbd{M-g M-n} or @kbd{M-g n}.
219This command can be invoked from any buffer, not just a Compilation 220This command can be invoked from any buffer, not just a Compilation
@@ -258,7 +259,9 @@ to skip any messages.
258 259
259 When Emacs visits the locus of an error message, it momentarily 260 When Emacs visits the locus of an error message, it momentarily
260highlights the relevant source line. The duration of this highlight 261highlights the relevant source line. The duration of this highlight
261is determined by the variable @code{next-error-highlight}. 262is determined by the variable @code{next-error-highlight} for the locus
263in the selected buffer, and @code{next-error-highlight-no-select} for
264the locus in non-selected buffers.
262 265
263@vindex compilation-context-lines 266@vindex compilation-context-lines
264 If the @file{*compilation*} buffer is shown in a window with a left 267 If the @file{*compilation*} buffer is shown in a window with a left
diff --git a/lisp/simple.el b/lisp/simple.el
index 0d8072bf5f0..cb04c982220 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -75,14 +75,16 @@ value of 1 means that nothing is amalgamated.")
75 :version "22.1") 75 :version "22.1")
76 76
77(defcustom next-error-highlight 0.5 77(defcustom next-error-highlight 0.5
78 "Highlighting of locations in selected source buffers. 78 "Highlighting of locations in the selected buffer.
79If a number, highlight the locus in `next-error' face for the given time 79If a number, highlight the locus in `next-error' face for the given time
80in seconds, or until the next command is executed. 80in seconds, or until the next command is executed.
81If t, highlight the locus until the next command is executed, or until 81If t, highlight the locus until the next command is executed, or until
82some other locus replaces it. 82some other locus replaces it.
83If nil, don't highlight the locus in the source buffer. 83If nil, don't highlight the locus in the source buffer.
84If `fringe-arrow', indicate the locus by the fringe arrow 84If `fringe-arrow', indicate the locus by the fringe arrow
85indefinitely until some other locus replaces it." 85indefinitely until some other locus replaces it.
86See `next-error-highlight-no-select' to customize highlighting
87of the locus in non-selected buffers."
86 :type '(choice (number :tag "Highlight for specified time") 88 :type '(choice (number :tag "Highlight for specified time")
87 (const :tag "Semipermanent highlighting" t) 89 (const :tag "Semipermanent highlighting" t)
88 (const :tag "No highlighting" nil) 90 (const :tag "No highlighting" nil)
@@ -91,12 +93,15 @@ indefinitely until some other locus replaces it."
91 :version "22.1") 93 :version "22.1")
92 94
93(defcustom next-error-highlight-no-select 0.5 95(defcustom next-error-highlight-no-select 0.5
94 "Highlighting of locations in `next-error-no-select'. 96 "Highlighting of locations in non-selected source buffers.
97Usually non-selected buffers are displayed by `next-error-no-select'.
95If number, highlight the locus in `next-error' face for given time in seconds. 98If number, highlight the locus in `next-error' face for given time in seconds.
96If t, highlight the locus indefinitely until some other locus replaces it. 99If t, highlight the locus indefinitely until some other locus replaces it.
97If nil, don't highlight the locus in the source buffer. 100If nil, don't highlight the locus in the source buffer.
98If `fringe-arrow', indicate the locus by the fringe arrow 101If `fringe-arrow', indicate the locus by the fringe arrow
99indefinitely until some other locus replaces it." 102indefinitely until some other locus replaces it.
103See `next-error-highlight' to customize highlighting of the locus
104in the selected buffer."
100 :type '(choice (number :tag "Highlight for specified time") 105 :type '(choice (number :tag "Highlight for specified time")
101 (const :tag "Semipermanent highlighting" t) 106 (const :tag "Semipermanent highlighting" t)
102 (const :tag "No highlighting" nil) 107 (const :tag "No highlighting" nil)