diff options
| author | Glenn Morris | 2020-03-04 13:57:58 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-03-04 13:57:58 -0800 |
| commit | b5474ba1607fdca620cdee40a11cc0120697fc58 (patch) | |
| tree | 2a6f3706a050270a01f008355bf11e6d1532e2f5 /doc | |
| parent | 79f196551a23ec54c6ed67a094aedb4597d36cf5 (diff) | |
| parent | a3c2d186eb514b505e61c2a89a1df886dbfcb06b (diff) | |
| download | emacs-b5474ba1607fdca620cdee40a11cc0120697fc58.tar.gz emacs-b5474ba1607fdca620cdee40a11cc0120697fc58.zip | |
Merge from origin/emacs-27
a3c2d186eb (origin/emacs-27) CC Mode: Fix the handling of two adjacen...
a1abf73c76 Fix combine-change-calls-1 for when buffer-undo-list is t
db37dd2e84 Don't misinterpret doc string as initial value
40b217c2bf Bump checkdoc-version to match library header
60418a1ab2 Explain how to unset mode bindings (Bug#39802)
7cafbbe964 Fix describe-variable on values with circular syntax (Bug#...
592b1cfee9 Improve documentation of next-error-highlight-no-select (b...
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/building.texi | 5 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 17 |
2 files changed, 15 insertions, 7 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 272b08d08e9..38963f225ca 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/doc/emacs/custom.texi b/doc/emacs/custom.texi index f39ce40931c..e7e879065ed 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1873,15 +1873,19 @@ You can use a vector for the simple cases too: | |||
| 1873 | Language and coding systems may cause problems with key bindings for | 1873 | Language and coding systems may cause problems with key bindings for |
| 1874 | non-@acronym{ASCII} characters. @xref{Init Non-ASCII}. | 1874 | non-@acronym{ASCII} characters. @xref{Init Non-ASCII}. |
| 1875 | 1875 | ||
| 1876 | @findex define-key | ||
| 1876 | As described in @ref{Local Keymaps}, major modes and minor modes can | 1877 | As described in @ref{Local Keymaps}, major modes and minor modes can |
| 1877 | define local keymaps. These keymaps are constructed when the mode is | 1878 | define local keymaps. These keymaps are constructed when the mode is |
| 1878 | used for the first time in a session. If you wish to change one of | 1879 | loaded for the first time in a session. The function @code{define-key} |
| 1879 | these keymaps, you must use the @dfn{mode hook} (@pxref{Hooks}). | 1880 | can be used to make changes in a specific keymap. This function can |
| 1881 | also unset keys, when passed @code{nil} as the binding. | ||
| 1880 | 1882 | ||
| 1881 | @findex define-key | 1883 | Since a mode's keymaps are not constructed until it has been loaded, |
| 1882 | For example, Texinfo mode runs the hook @code{texinfo-mode-hook}. | 1884 | you must delay running code which modifies them, e.g., by putting it |
| 1883 | Here's how you can use the hook to add local bindings for @kbd{C-c n} | 1885 | on a @dfn{mode hook} (@pxref{(Hooks)}). For example, Texinfo mode |
| 1884 | and @kbd{C-c p} in Texinfo mode: | 1886 | runs the hook @code{texinfo-mode-hook}. Here's how you can use the |
| 1887 | hook to add local bindings for @kbd{C-c n} and @kbd{C-c p}, and remove | ||
| 1888 | the one for @kbd{C-c C-x x} in Texinfo mode: | ||
| 1885 | 1889 | ||
| 1886 | @example | 1890 | @example |
| 1887 | (add-hook 'texinfo-mode-hook | 1891 | (add-hook 'texinfo-mode-hook |
| @@ -1890,6 +1894,7 @@ and @kbd{C-c p} in Texinfo mode: | |||
| 1890 | 'backward-paragraph) | 1894 | 'backward-paragraph) |
| 1891 | (define-key texinfo-mode-map "\C-cn" | 1895 | (define-key texinfo-mode-map "\C-cn" |
| 1892 | 'forward-paragraph))) | 1896 | 'forward-paragraph))) |
| 1897 | (define-key texinfo-mode-map "\C-c\C-xx" nil) | ||
| 1893 | @end example | 1898 | @end example |
| 1894 | 1899 | ||
| 1895 | @node Modifier Keys | 1900 | @node Modifier Keys |