diff options
| author | Juri Linkov | 2020-03-04 01:48:03 +0200 |
|---|---|---|
| committer | Juri Linkov | 2020-03-04 01:48:03 +0200 |
| commit | 592b1cfee9f80413290dcd470effa7fa14036df3 (patch) | |
| tree | e24e603c85bf02642a7a165078b31f27c4b6b7ed | |
| parent | add0610ec9327c15ee933f571731401212328810 (diff) | |
| download | emacs-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.texi | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 13 |
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}. |
| 219 | This command can be invoked from any buffer, not just a Compilation | 220 | This 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 |
| 260 | highlights the relevant source line. The duration of this highlight | 261 | highlights the relevant source line. The duration of this highlight |
| 261 | is determined by the variable @code{next-error-highlight}. | 262 | is determined by the variable @code{next-error-highlight} for the locus |
| 263 | in the selected buffer, and @code{next-error-highlight-no-select} for | ||
| 264 | the 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. |
| 79 | If a number, highlight the locus in `next-error' face for the given time | 79 | If a number, highlight the locus in `next-error' face for the given time |
| 80 | in seconds, or until the next command is executed. | 80 | in seconds, or until the next command is executed. |
| 81 | If t, highlight the locus until the next command is executed, or until | 81 | If t, highlight the locus until the next command is executed, or until |
| 82 | some other locus replaces it. | 82 | some other locus replaces it. |
| 83 | If nil, don't highlight the locus in the source buffer. | 83 | If nil, don't highlight the locus in the source buffer. |
| 84 | If `fringe-arrow', indicate the locus by the fringe arrow | 84 | If `fringe-arrow', indicate the locus by the fringe arrow |
| 85 | indefinitely until some other locus replaces it." | 85 | indefinitely until some other locus replaces it. |
| 86 | See `next-error-highlight-no-select' to customize highlighting | ||
| 87 | of 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. |
| 97 | Usually non-selected buffers are displayed by `next-error-no-select'. | ||
| 95 | If number, highlight the locus in `next-error' face for given time in seconds. | 98 | If number, highlight the locus in `next-error' face for given time in seconds. |
| 96 | If t, highlight the locus indefinitely until some other locus replaces it. | 99 | If t, highlight the locus indefinitely until some other locus replaces it. |
| 97 | If nil, don't highlight the locus in the source buffer. | 100 | If nil, don't highlight the locus in the source buffer. |
| 98 | If `fringe-arrow', indicate the locus by the fringe arrow | 101 | If `fringe-arrow', indicate the locus by the fringe arrow |
| 99 | indefinitely until some other locus replaces it." | 102 | indefinitely until some other locus replaces it. |
| 103 | See `next-error-highlight' to customize highlighting of the locus | ||
| 104 | in 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) |