diff options
| author | Glenn Morris | 2018-02-20 07:50:29 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-02-20 07:50:29 -0800 |
| commit | 650febcd3ec1cfe0c686414c9c8f1a7caaeefe71 (patch) | |
| tree | 534fc96cc86b769db3e2124b347b7be5e155d94d /doc | |
| parent | 3d42272754db914d4f2dbbcfba5ce6776a7b232b (diff) | |
| parent | 226aca32a784c4edebdec6a16eb90930aae64c06 (diff) | |
| download | emacs-650febcd3ec1cfe0c686414c9c8f1a7caaeefe71.tar.gz emacs-650febcd3ec1cfe0c686414c9c8f1a7caaeefe71.zip | |
Merge from origin/emacs-26
226aca3 (origin/emacs-26) Fix documentation of 'flyspell-auto-correct...
a8c8434 * doc/emacs/misc.texi (Saving Emacs Sessions): Fix markup.
275e735 More changes in the Emacs manuals
d962be5 More fixes in the Emacs manual
6dc2846 * src/data.c (Faref): Fix a typo in the doc string. (Bug#30510)
36e729f Minor edit in tramp.texi
6537f99 ; Fix oversight from last commit
eb94588 ; * doc/emacs/maintaining.texi: Fix two typos.
258135f More improvements in the Emacs manual
f138bca Improve documentation of 'electric-pair-mode'
f74ab96 ; Spelling and grammar fixes.
42f9dc4 ; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): ...
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/abbrevs.texi | 17 | ||||
| -rw-r--r-- | doc/emacs/basic.texi | 12 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 28 | ||||
| -rw-r--r-- | doc/emacs/maintaining.texi | 36 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/programs.texi | 17 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 7 |
7 files changed, 76 insertions, 43 deletions
diff --git a/doc/emacs/abbrevs.texi b/doc/emacs/abbrevs.texi index 9349d2d5baa..00b9e560ac0 100644 --- a/doc/emacs/abbrevs.texi +++ b/doc/emacs/abbrevs.texi | |||
| @@ -72,18 +72,24 @@ use in later sessions. | |||
| 72 | @item C-x a g | 72 | @item C-x a g |
| 73 | Define an abbrev, using one or more words before point as its expansion | 73 | Define an abbrev, using one or more words before point as its expansion |
| 74 | (@code{add-global-abbrev}). | 74 | (@code{add-global-abbrev}). |
| 75 | |||
| 75 | @item C-x a l | 76 | @item C-x a l |
| 76 | Similar, but define an abbrev specific to the current major mode | 77 | Similar, but define an abbrev specific to the current major mode |
| 77 | (@code{add-mode-abbrev}). | 78 | (@code{add-mode-abbrev}). |
| 79 | |||
| 78 | @item C-x a i g | 80 | @item C-x a i g |
| 79 | Define a word in the buffer as an abbrev (@code{inverse-add-global-abbrev}). | 81 | Define a word in the buffer as an abbrev (@code{inverse-add-global-abbrev}). |
| 82 | |||
| 80 | @item C-x a i l | 83 | @item C-x a i l |
| 81 | Define a word in the buffer as a mode-specific abbrev | 84 | Define a word in the buffer as a mode-specific abbrev |
| 82 | (@code{inverse-add-mode-abbrev}). | 85 | (@code{inverse-add-mode-abbrev}). |
| 86 | |||
| 83 | @item M-x define-global-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} | 87 | @item M-x define-global-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} |
| 84 | Define @var{abbrev} as an abbrev expanding into @var{exp}. | 88 | Define @var{abbrev} as an abbrev expanding into @var{exp}. |
| 89 | |||
| 85 | @item M-x define-mode-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} | 90 | @item M-x define-mode-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} |
| 86 | Define @var{abbrev} as a mode-specific abbrev expanding into @var{exp}. | 91 | Define @var{abbrev} as a mode-specific abbrev expanding into @var{exp}. |
| 92 | |||
| 87 | @item M-x kill-all-abbrevs | 93 | @item M-x kill-all-abbrevs |
| 88 | Discard all abbrev definitions, leaving a blank slate. | 94 | Discard all abbrev definitions, leaving a blank slate. |
| 89 | @end table | 95 | @end table |
| @@ -160,10 +166,16 @@ to @samp{FIND OUTER OTTER}. | |||
| 160 | @item M-' | 166 | @item M-' |
| 161 | Separate a prefix from a following abbrev to be expanded | 167 | Separate a prefix from a following abbrev to be expanded |
| 162 | (@code{abbrev-prefix-mark}). | 168 | (@code{abbrev-prefix-mark}). |
| 169 | |||
| 163 | @item C-x a e | 170 | @item C-x a e |
| 164 | @findex expand-abbrev | 171 | @findex expand-abbrev |
| 165 | Expand the abbrev before point (@code{expand-abbrev}). | 172 | Expand the abbrev before point (@code{expand-abbrev}). |
| 166 | This is effective even when Abbrev mode is not enabled. | 173 | This is effective even when Abbrev mode is not enabled. |
| 174 | |||
| 175 | @item M-x unexpand-abbrev | ||
| 176 | @findex unexpand-abbrev | ||
| 177 | Undo the expansion of the last expanded abbrev. | ||
| 178 | |||
| 167 | @item M-x expand-region-abbrevs | 179 | @item M-x expand-region-abbrevs |
| 168 | Expand some or all abbrevs found in the region. | 180 | Expand some or all abbrevs found in the region. |
| 169 | @end table | 181 | @end table |
| @@ -188,7 +200,6 @@ its expansion, you can accomplish this by inserting the following | |||
| 188 | punctuation with @kbd{C-q}. Thus, @kbd{foo C-q ,} leaves @samp{foo,} in | 200 | punctuation with @kbd{C-q}. Thus, @kbd{foo C-q ,} leaves @samp{foo,} in |
| 189 | the buffer, not expanding it. | 201 | the buffer, not expanding it. |
| 190 | 202 | ||
| 191 | @findex unexpand-abbrev | ||
| 192 | If you expand an abbrev by mistake, you can undo the expansion by | 203 | If you expand an abbrev by mistake, you can undo the expansion by |
| 193 | typing @kbd{C-/} (@code{undo}). @xref{Undo}. This undoes the | 204 | typing @kbd{C-/} (@code{undo}). @xref{Undo}. This undoes the |
| 194 | insertion of the abbrev expansion and brings back the abbrev text. If | 205 | insertion of the abbrev expansion and brings back the abbrev text. If |
| @@ -219,6 +230,7 @@ Reference Manual}. | |||
| 219 | @item M-x list-abbrevs | 230 | @item M-x list-abbrevs |
| 220 | Display a list of all abbrev definitions. With a numeric argument, list | 231 | Display a list of all abbrev definitions. With a numeric argument, list |
| 221 | only local abbrevs. | 232 | only local abbrevs. |
| 233 | |||
| 222 | @item M-x edit-abbrevs | 234 | @item M-x edit-abbrevs |
| 223 | Edit a list of abbrevs; you can add, alter or remove definitions. | 235 | Edit a list of abbrevs; you can add, alter or remove definitions. |
| 224 | @end table | 236 | @end table |
| @@ -278,10 +290,13 @@ sessions. | |||
| 278 | @table @kbd | 290 | @table @kbd |
| 279 | @item M-x write-abbrev-file @key{RET} @var{file} @key{RET} | 291 | @item M-x write-abbrev-file @key{RET} @var{file} @key{RET} |
| 280 | Write a file @var{file} describing all defined abbrevs. | 292 | Write a file @var{file} describing all defined abbrevs. |
| 293 | |||
| 281 | @item M-x read-abbrev-file @key{RET} @var{file} @key{RET} | 294 | @item M-x read-abbrev-file @key{RET} @var{file} @key{RET} |
| 282 | Read the file @var{file} and define abbrevs as specified therein. | 295 | Read the file @var{file} and define abbrevs as specified therein. |
| 296 | |||
| 283 | @item M-x define-abbrevs | 297 | @item M-x define-abbrevs |
| 284 | Define abbrevs from definitions in current buffer. | 298 | Define abbrevs from definitions in current buffer. |
| 299 | |||
| 285 | @item M-x insert-abbrevs | 300 | @item M-x insert-abbrevs |
| 286 | Insert all abbrevs and their expansions into current buffer. | 301 | Insert all abbrevs and their expansions into current buffer. |
| 287 | @end table | 302 | @end table |
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index 4db3855dd9c..aa91f0555e1 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi | |||
| @@ -778,12 +778,12 @@ lines). | |||
| 778 | 778 | ||
| 779 | You can use a numeric argument before a self-inserting character to | 779 | You can use a numeric argument before a self-inserting character to |
| 780 | insert multiple copies of it. This is straightforward when the | 780 | insert multiple copies of it. This is straightforward when the |
| 781 | character is not a digit; for example, @kbd{C-u 6 4 a} inserts 64 | 781 | character is not a digit; for example, @w{@kbd{C-u 6 4 a}} inserts 64 |
| 782 | copies of the character @samp{a}. But this does not work for | 782 | copies of the character @samp{a}. But this does not work for |
| 783 | inserting digits; @kbd{C-u 6 4 1} specifies an argument of 641. You | 783 | inserting digits; @w{@kbd{C-u 6 4 1}} specifies an argument of 641. |
| 784 | can separate the argument from the digit to insert with another | 784 | You can separate the argument from the digit to insert with another |
| 785 | @kbd{C-u}; for example, @kbd{C-u 6 4 C-u 1} does insert 64 copies of | 785 | @kbd{C-u}; for example, @w{@kbd{C-u 6 4 C-u 1}} does insert 64 copies |
| 786 | the character @samp{1}. | 786 | of the character @samp{1}. |
| 787 | 787 | ||
| 788 | Some commands care whether there is an argument, but ignore its | 788 | Some commands care whether there is an argument, but ignore its |
| 789 | value. For example, the command @kbd{M-q} (@code{fill-paragraph}) | 789 | value. For example, the command @kbd{M-q} (@code{fill-paragraph}) |
| @@ -822,7 +822,7 @@ invoking the command. | |||
| 822 | @cindex repeating a command | 822 | @cindex repeating a command |
| 823 | 823 | ||
| 824 | Many simple commands, such as those invoked with a single key or | 824 | Many simple commands, such as those invoked with a single key or |
| 825 | with @kbd{M-x @var{command-name} @key{RET}}, can be repeated by | 825 | with @w{@kbd{M-x @var{command-name} @key{RET}}}, can be repeated by |
| 826 | invoking them with a numeric argument that serves as a repeat count | 826 | invoking them with a numeric argument that serves as a repeat count |
| 827 | (@pxref{Arguments}). However, if the command you want to repeat | 827 | (@pxref{Arguments}). However, if the command you want to repeat |
| 828 | prompts for input, or uses a numeric argument in another way, that | 828 | prompts for input, or uses a numeric argument in another way, that |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index b985d12cde4..07ddd1f23b9 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -109,7 +109,7 @@ group, which contains several other groups (@samp{Editing}, | |||
| 109 | listed here, only one line of documentation each. | 109 | listed here, only one line of documentation each. |
| 110 | 110 | ||
| 111 | The @dfn{state} of the group indicates whether setting in that group | 111 | The @dfn{state} of the group indicates whether setting in that group |
| 112 | has been edited, set or saved. @xref{Changing a Variable}. | 112 | has been edited, set, or saved. @xref{Changing a Variable}. |
| 113 | 113 | ||
| 114 | @cindex editable fields (customization buffer) | 114 | @cindex editable fields (customization buffer) |
| 115 | @cindex buttons (customization buffer) | 115 | @cindex buttons (customization buffer) |
| @@ -168,7 +168,7 @@ search field, except that it reads the search term(s) using the | |||
| 168 | minibuffer. @xref{Specific Customization}. | 168 | minibuffer. @xref{Specific Customization}. |
| 169 | 169 | ||
| 170 | @kbd{M-x customize-browse} is another way to browse the available | 170 | @kbd{M-x customize-browse} is another way to browse the available |
| 171 | settings. This command creates a special customization buffer which | 171 | settings. This command creates a special customization buffer, which |
| 172 | shows only the names of groups and settings, in a structured layout. | 172 | shows only the names of groups and settings, in a structured layout. |
| 173 | You can show the contents of a group, in the same buffer, by invoking | 173 | You can show the contents of a group, in the same buffer, by invoking |
| 174 | the @samp{[+]} button next to the group name. When the group contents | 174 | the @samp{[+]} button next to the group name. When the group contents |
| @@ -580,7 +580,7 @@ directory specified by the variable @code{custom-theme-directory} | |||
| 580 | (which defaults to @file{~/.emacs.d/}), and a directory named | 580 | (which defaults to @file{~/.emacs.d/}), and a directory named |
| 581 | @file{etc/themes} in your Emacs installation (see the variable | 581 | @file{etc/themes} in your Emacs installation (see the variable |
| 582 | @code{data-directory}). The latter contains several Custom themes | 582 | @code{data-directory}). The latter contains several Custom themes |
| 583 | which are distributed with Emacs, which customize Emacs's faces to fit | 583 | distributed with Emacs that customize Emacs's faces to fit |
| 584 | various color schemes. (Note, however, that Custom themes need not be | 584 | various color schemes. (Note, however, that Custom themes need not be |
| 585 | restricted to this purpose; they can be used to customize variables | 585 | restricted to this purpose; they can be used to customize variables |
| 586 | too.) | 586 | too.) |
| @@ -663,7 +663,7 @@ to insert some common Emacs faces into the theme (a convenience, since | |||
| 663 | Custom themes are often used to customize faces). If you answer no, | 663 | Custom themes are often used to customize faces). If you answer no, |
| 664 | the theme will initially contain no settings. | 664 | the theme will initially contain no settings. |
| 665 | 665 | ||
| 666 | Near the top of the @file{*Custom Theme*} buffer are editable fields | 666 | Near the top of the @file{*Custom Theme*} buffer, there are editable fields |
| 667 | where you can enter the theme's name and description. The name can be | 667 | where you can enter the theme's name and description. The name can be |
| 668 | anything except @samp{user}. The description is the one that will be | 668 | anything except @samp{user}. The description is the one that will be |
| 669 | shown when you invoke @kbd{M-x describe-theme} for the theme. Its | 669 | shown when you invoke @kbd{M-x describe-theme} for the theme. Its |
| @@ -1427,7 +1427,7 @@ of lower-case letters and hyphens. | |||
| 1427 | 1427 | ||
| 1428 | A @dfn{key sequence} (@dfn{key}, for short) is a sequence of | 1428 | A @dfn{key sequence} (@dfn{key}, for short) is a sequence of |
| 1429 | @dfn{input events} that have a meaning as a unit. Input events | 1429 | @dfn{input events} that have a meaning as a unit. Input events |
| 1430 | include characters, function keys and mouse buttons---all the inputs | 1430 | include characters, function keys, and mouse buttons---all the inputs |
| 1431 | that you can send to the computer. A key sequence gets its meaning | 1431 | that you can send to the computer. A key sequence gets its meaning |
| 1432 | from its @dfn{binding}, which says what command it runs. | 1432 | from its @dfn{binding}, which says what command it runs. |
| 1433 | 1433 | ||
| @@ -1460,7 +1460,7 @@ can even mix mouse events with keyboard events, such as | |||
| 1460 | @kbd{S-down-mouse-1}. | 1460 | @kbd{S-down-mouse-1}. |
| 1461 | 1461 | ||
| 1462 | On text terminals, typing a function key actually sends the computer | 1462 | On text terminals, typing a function key actually sends the computer |
| 1463 | a sequence of characters; the precise details of the sequence depends | 1463 | a sequence of characters; the precise details of the sequence depend |
| 1464 | on the function key and on the terminal type. (Often the sequence | 1464 | on the function key and on the terminal type. (Often the sequence |
| 1465 | starts with @kbd{@key{ESC} [}.) If Emacs understands your terminal | 1465 | starts with @kbd{@key{ESC} [}.) If Emacs understands your terminal |
| 1466 | type properly, it automatically handles such sequences as single input | 1466 | type properly, it automatically handles such sequences as single input |
| @@ -1484,7 +1484,7 @@ the same, but it provides a command name for the prefix key that can be | |||
| 1484 | used as a description of what the prefix key is for. Thus, the binding | 1484 | used as a description of what the prefix key is for. Thus, the binding |
| 1485 | of @kbd{C-x} is the symbol @code{Control-X-prefix}, whose function | 1485 | of @kbd{C-x} is the symbol @code{Control-X-prefix}, whose function |
| 1486 | definition is the keymap for @kbd{C-x} commands. The definitions of | 1486 | definition is the keymap for @kbd{C-x} commands. The definitions of |
| 1487 | @kbd{C-c}, @kbd{C-x}, @kbd{C-h} and @key{ESC} as prefix keys appear in | 1487 | @kbd{C-c}, @kbd{C-x}, @kbd{C-h}, and @key{ESC} as prefix keys appear in |
| 1488 | the global map, so these prefix keys are always available. | 1488 | the global map, so these prefix keys are always available. |
| 1489 | 1489 | ||
| 1490 | Aside from ordinary prefix keys, there is a fictitious ``prefix key'' | 1490 | Aside from ordinary prefix keys, there is a fictitious ``prefix key'' |
| @@ -1669,6 +1669,8 @@ command is less work to invoke when you really want to. | |||
| 1669 | @node Init Rebinding | 1669 | @node Init Rebinding |
| 1670 | @subsection Rebinding Keys in Your Init File | 1670 | @subsection Rebinding Keys in Your Init File |
| 1671 | @cindex rebinding major mode keys | 1671 | @cindex rebinding major mode keys |
| 1672 | @cindex key rebinding, permanent | ||
| 1673 | @cindex rebinding keys, permanently | ||
| 1672 | @c This node is referenced in the tutorial. When renaming or deleting | 1674 | @c This node is referenced in the tutorial. When renaming or deleting |
| 1673 | @c it, the tutorial needs to be adjusted. (TUTORIAL.de) | 1675 | @c it, the tutorial needs to be adjusted. (TUTORIAL.de) |
| 1674 | 1676 | ||
| @@ -1795,7 +1797,7 @@ could make @kbd{M-a} and @kbd{M-A} run different commands. | |||
| 1795 | 1797 | ||
| 1796 | Although only the @key{Control} and @key{META} modifier keys are | 1798 | Although only the @key{Control} and @key{META} modifier keys are |
| 1797 | commonly used, Emacs supports three other modifier keys. These are | 1799 | commonly used, Emacs supports three other modifier keys. These are |
| 1798 | called @key{Super}, @key{Hyper} and @key{Alt}. Few terminals provide | 1800 | called @key{Super}, @key{Hyper}, and @key{Alt}. Few terminals provide |
| 1799 | ways to use these modifiers; the key labeled @key{Alt} on most | 1801 | ways to use these modifiers; the key labeled @key{Alt} on most |
| 1800 | keyboards usually issues the @key{META} modifier, not @key{Alt}. The | 1802 | keyboards usually issues the @key{META} modifier, not @key{Alt}. The |
| 1801 | standard key bindings in Emacs do not include any characters with | 1803 | standard key bindings in Emacs do not include any characters with |
| @@ -1856,7 +1858,7 @@ key. | |||
| 1856 | @xref{Init Rebinding}, for examples of binding function keys. | 1858 | @xref{Init Rebinding}, for examples of binding function keys. |
| 1857 | 1859 | ||
| 1858 | @cindex keypad | 1860 | @cindex keypad |
| 1859 | Many keyboards have a numeric keypad on the right hand side. | 1861 | Many keyboards have a numeric keypad on the right-hand side. |
| 1860 | The numeric keys in the keypad double up as cursor motion keys, | 1862 | The numeric keys in the keypad double up as cursor motion keys, |
| 1861 | toggled by a key labeled @samp{Num Lock}. By default, Emacs | 1863 | toggled by a key labeled @samp{Num Lock}. By default, Emacs |
| 1862 | translates these keys to the corresponding keys on the main keyboard. | 1864 | translates these keys to the corresponding keys on the main keyboard. |
| @@ -1882,7 +1884,7 @@ prefix arguments. | |||
| 1882 | @node Named ASCII Chars | 1884 | @node Named ASCII Chars |
| 1883 | @subsection Named @acronym{ASCII} Control Characters | 1885 | @subsection Named @acronym{ASCII} Control Characters |
| 1884 | 1886 | ||
| 1885 | @key{TAB}, @key{RET}, @key{BS}, @key{LFD}, @key{ESC} and @key{DEL} | 1887 | @key{TAB}, @key{RET}, @key{BS}, @key{LFD}, @key{ESC}, and @key{DEL} |
| 1886 | started out as names for certain @acronym{ASCII} control characters, | 1888 | started out as names for certain @acronym{ASCII} control characters, |
| 1887 | used so often that they have special keys of their own. For instance, | 1889 | used so often that they have special keys of their own. For instance, |
| 1888 | @key{TAB} was another name for @kbd{C-i}. Later, users found it | 1890 | @key{TAB} was another name for @kbd{C-i}. Later, users found it |
| @@ -1999,7 +2001,7 @@ units of 1/8 of a character cell on text-mode terminals; the default is | |||
| 1999 | 2001 | ||
| 2000 | The symbols for mouse events also indicate the status of the modifier | 2002 | The symbols for mouse events also indicate the status of the modifier |
| 2001 | keys, with the usual prefixes @samp{C-}, @samp{M-}, @samp{H-}, | 2003 | keys, with the usual prefixes @samp{C-}, @samp{M-}, @samp{H-}, |
| 2002 | @samp{s-}, @samp{A-} and @samp{S-}. These always precede @samp{double-} | 2004 | @samp{s-}, @samp{A-}, and @samp{S-}. These always precede @samp{double-} |
| 2003 | or @samp{triple-}, which always precede @samp{drag-} or @samp{down-}. | 2005 | or @samp{triple-}, which always precede @samp{drag-} or @samp{down-}. |
| 2004 | 2006 | ||
| 2005 | A frame includes areas that don't show text from the buffer, such as | 2007 | A frame includes areas that don't show text from the buffer, such as |
| @@ -2099,8 +2101,6 @@ as a function from Lisp programs. | |||
| 2099 | @cindex .emacs file | 2101 | @cindex .emacs file |
| 2100 | @cindex ~/.emacs file | 2102 | @cindex ~/.emacs file |
| 2101 | @cindex Emacs initialization file | 2103 | @cindex Emacs initialization file |
| 2102 | @cindex key rebinding, permanent | ||
| 2103 | @cindex rebinding keys, permanently | ||
| 2104 | @cindex startup (init file) | 2104 | @cindex startup (init file) |
| 2105 | 2105 | ||
| 2106 | When Emacs is started, it normally tries to load a Lisp program from | 2106 | When Emacs is started, it normally tries to load a Lisp program from |
| @@ -2311,7 +2311,7 @@ name. | |||
| 2311 | 2311 | ||
| 2312 | @need 1500 | 2312 | @need 1500 |
| 2313 | @item | 2313 | @item |
| 2314 | Set up defaults for the Latin-1 character set | 2314 | Set up defaults for the Latin-1 character set, |
| 2315 | which supports most of the languages of Western Europe. | 2315 | which supports most of the languages of Western Europe. |
| 2316 | 2316 | ||
| 2317 | @example | 2317 | @example |
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 541bf9708ba..23e08a58e88 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1611,7 +1611,7 @@ To change this, customize @code{change-log-directory-files}. | |||
| 1611 | 1611 | ||
| 1612 | @vindex add-log-keep-changes-together | 1612 | @vindex add-log-keep-changes-together |
| 1613 | When the variable @code{add-log-keep-changes-together} is | 1613 | When the variable @code{add-log-keep-changes-together} is |
| 1614 | non-@code{nil}, @kbd{C-x 4 a} adds to any existing item for the file | 1614 | non-@code{nil}, @kbd{C-x 4 a} adds to any existing item for the file, |
| 1615 | rather than starting a new item. | 1615 | rather than starting a new item. |
| 1616 | 1616 | ||
| 1617 | You can combine multiple changes of the same nature. If you don't | 1617 | You can combine multiple changes of the same nature. If you don't |
| @@ -1827,7 +1827,7 @@ If the specified identifier has only one definition, the command jumps | |||
| 1827 | to it. If the identifier has more than one possible definition (e.g., | 1827 | to it. If the identifier has more than one possible definition (e.g., |
| 1828 | in an object-oriented language, or if there's a function and a | 1828 | in an object-oriented language, or if there's a function and a |
| 1829 | variable by the same name), the command shows the candidate | 1829 | variable by the same name), the command shows the candidate |
| 1830 | definitions in a @file{*xref*} buffer, together with the files in | 1830 | definitions in the @file{*xref*} buffer, together with the files in |
| 1831 | which these definitions are found. Selecting one of these candidates | 1831 | which these definitions are found. Selecting one of these candidates |
| 1832 | by typing @kbd{@key{RET}} or clicking @kbd{mouse-2} will pop a buffer | 1832 | by typing @kbd{@key{RET}} or clicking @kbd{mouse-2} will pop a buffer |
| 1833 | showing the corresponding definition. | 1833 | showing the corresponding definition. |
| @@ -1883,28 +1883,34 @@ the special XREF mode: | |||
| 1883 | @item @key{RET} | 1883 | @item @key{RET} |
| 1884 | @itemx mouse-2 | 1884 | @itemx mouse-2 |
| 1885 | Display the reference on the current line. | 1885 | Display the reference on the current line. |
| 1886 | |||
| 1886 | @item n | 1887 | @item n |
| 1887 | @itemx . | 1888 | @itemx . |
| 1888 | @findex xref-next-line | 1889 | @findex xref-next-line |
| 1889 | Move to the next reference and display it in the other window | 1890 | Move to the next reference and display it in the other window |
| 1890 | (@code{xref-next-line}). | 1891 | (@code{xref-next-line}). |
| 1892 | |||
| 1891 | @item p | 1893 | @item p |
| 1892 | @itemx , | 1894 | @itemx , |
| 1893 | @findex xref-prev-line | 1895 | @findex xref-prev-line |
| 1894 | Move to the previous reference and display it in the other window | 1896 | Move to the previous reference and display it in the other window |
| 1895 | (@code{xref-prev-line}). | 1897 | (@code{xref-prev-line}). |
| 1898 | |||
| 1896 | @item C-o | 1899 | @item C-o |
| 1897 | @findex xref-show-location-at-point | 1900 | @findex xref-show-location-at-point |
| 1898 | Display the reference on the current line in the other window | 1901 | Display the reference on the current line in the other window |
| 1899 | (@code{xref-show-location-at-point}). | 1902 | (@code{xref-show-location-at-point}). |
| 1903 | |||
| 1900 | @item @key{TAB} | 1904 | @item @key{TAB} |
| 1901 | @findex xref-quit-and-goto-xref | 1905 | @findex xref-quit-and-goto-xref |
| 1902 | Display the reference on the current line and bury the @file{*xref*} | 1906 | Display the reference on the current line and bury the @file{*xref*} |
| 1903 | buffer (@code{xref-quit-and-goto-xref}). | 1907 | buffer (@code{xref-quit-and-goto-xref}). |
| 1908 | |||
| 1904 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} | 1909 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} |
| 1905 | Perform interactive query-replace on references that match | 1910 | Perform interactive query-replace on references that match |
| 1906 | @var{pattern} (@code{xref-query-replace-in-results}), replacing | 1911 | @var{pattern} (@code{xref-query-replace-in-results}), replacing |
| 1907 | the match with @var{replacement}. @xref{Identifier Search}. | 1912 | the match with @var{replacement}. @xref{Identifier Search}. |
| 1913 | |||
| 1908 | @findex xref-quit | 1914 | @findex xref-quit |
| 1909 | @item q | 1915 | @item q |
| 1910 | Quit the window showing the @file{*xref*} buffer (@code{xref-quit}). | 1916 | Quit the window showing the @file{*xref*} buffer (@code{xref-quit}). |
| @@ -1926,14 +1932,18 @@ them. | |||
| 1926 | @table @kbd | 1932 | @table @kbd |
| 1927 | @item M-? | 1933 | @item M-? |
| 1928 | Find all the references for the identifier at point. | 1934 | Find all the references for the identifier at point. |
| 1935 | |||
| 1929 | @item M-x xref-query-replace-in-results @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} | 1936 | @item M-x xref-query-replace-in-results @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} |
| 1930 | Interactively replace @var{regexp} with @var{replacement} in the names | 1937 | Interactively replace @var{regexp} with @var{replacement} in the names |
| 1931 | of all the identifiers shown in the @file{*xref*} buffer. | 1938 | of all the identifiers shown in the @file{*xref*} buffer. |
| 1939 | |||
| 1932 | @item M-x tags-search @key{RET} @var{regexp} @key{RET} | 1940 | @item M-x tags-search @key{RET} @var{regexp} @key{RET} |
| 1933 | Search for @var{regexp} through the files in the selected tags | 1941 | Search for @var{regexp} through the files in the selected tags |
| 1934 | table. | 1942 | table. |
| 1943 | |||
| 1935 | @item M-x tags-query-replace @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} | 1944 | @item M-x tags-query-replace @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} |
| 1936 | Perform a @code{query-replace-regexp} on each file in the selected tags table. | 1945 | Perform a @code{query-replace-regexp} on each file in the selected tags table. |
| 1946 | |||
| 1937 | @item M-x tags-loop-continue | 1947 | @item M-x tags-loop-continue |
| 1938 | Restart one of the last 2 commands above, from the current location of point. | 1948 | Restart one of the last 2 commands above, from the current location of point. |
| 1939 | @end table | 1949 | @end table |
| @@ -1943,7 +1953,7 @@ Restart one of the last 2 commands above, from the current location of point. | |||
| 1943 | @kbd{M-?} finds all the references for the identifier at point. If | 1953 | @kbd{M-?} finds all the references for the identifier at point. If |
| 1944 | there's no identifier at point, or when invoked with a prefix | 1954 | there's no identifier at point, or when invoked with a prefix |
| 1945 | argument, the command prompts for the identifier, with completion. It | 1955 | argument, the command prompts for the identifier, with completion. It |
| 1946 | then presents a @file{*xref*} buffer with all the references to the | 1956 | then presents the @file{*xref*} buffer with all the references to the |
| 1947 | identifier, showing the file name and the line where the identifier is | 1957 | identifier, showing the file name and the line where the identifier is |
| 1948 | referenced. The XREF mode commands are available in this buffer, see | 1958 | referenced. The XREF mode commands are available in this buffer, see |
| 1949 | @ref{Xref Commands}. | 1959 | @ref{Xref Commands}. |
| @@ -1967,7 +1977,7 @@ available (@pxref{Tags Tables}). | |||
| 1967 | 1977 | ||
| 1968 | @findex tags-loop-continue | 1978 | @findex tags-loop-continue |
| 1969 | Having found one match with @code{tags-search}, you probably want to | 1979 | Having found one match with @code{tags-search}, you probably want to |
| 1970 | find all the rest. Type @kbd{M-x tags-loop-continue} to resume the | 1980 | find all the rest. @kbd{M-x tags-loop-continue} resumes the |
| 1971 | @code{tags-search}, finding one more match. This searches the rest of | 1981 | @code{tags-search}, finding one more match. This searches the rest of |
| 1972 | the current buffer, followed by the remaining files of the tags table. | 1982 | the current buffer, followed by the remaining files of the tags table. |
| 1973 | 1983 | ||
| @@ -2017,11 +2027,14 @@ Searching}. | |||
| 2017 | @itemx M-@key{TAB} | 2027 | @itemx M-@key{TAB} |
| 2018 | Perform completion on the text around point, possibly using the | 2028 | Perform completion on the text around point, possibly using the |
| 2019 | selected tags table if one is loaded (@code{completion-at-point}). | 2029 | selected tags table if one is loaded (@code{completion-at-point}). |
| 2030 | |||
| 2020 | @item M-x xref-find-apropos @key{RET} @var{regexp} @key{RET} | 2031 | @item M-x xref-find-apropos @key{RET} @var{regexp} @key{RET} |
| 2021 | Display a list of all known identifiers matching @var{regexp}. | 2032 | Display a list of all known identifiers matching @var{regexp}. |
| 2033 | |||
| 2022 | @item M-x list-tags @key{RET} @var{file} @key{RET} | 2034 | @item M-x list-tags @key{RET} @var{file} @key{RET} |
| 2023 | Display a list of the identifiers defined in the program file | 2035 | Display a list of the identifiers defined in the program file |
| 2024 | @var{file}. | 2036 | @var{file}. |
| 2037 | |||
| 2025 | @item M-x next-file | 2038 | @item M-x next-file |
| 2026 | Visit files recorded in the selected tags table. | 2039 | Visit files recorded in the selected tags table. |
| 2027 | @end table | 2040 | @end table |
| @@ -2435,11 +2448,12 @@ matches at the beginning of a line. If you want to allow indented | |||
| 2435 | tags, use a regexp that matches initial whitespace; start it with | 2448 | tags, use a regexp that matches initial whitespace; start it with |
| 2436 | @samp{[ \t]*}. | 2449 | @samp{[ \t]*}. |
| 2437 | 2450 | ||
| 2438 | In these regular expressions, @samp{\} quotes the next character, and | 2451 | In these regular expressions, @samp{\} quotes the next character, |
| 2439 | all the GCC character escape sequences are supported (@samp{\a} for | 2452 | and all the C character escape sequences are supported: @samp{\a} for |
| 2440 | bell, @samp{\b} for back space, @samp{\d} for delete, @samp{\e} for | 2453 | bell, @samp{\b} for back space, @samp{\e} for escape, @samp{\f} for |
| 2441 | escape, @samp{\f} for formfeed, @samp{\n} for newline, @samp{\r} for | 2454 | formfeed, @samp{\n} for newline, @samp{\r} for carriage return, |
| 2442 | carriage return, @samp{\t} for tab, and @samp{\v} for vertical tab). | 2455 | @samp{\t} for tab, and @samp{\v} for vertical tab. In addition, |
| 2456 | @samp{\d} stands for the @code{DEL} character. | ||
| 2443 | 2457 | ||
| 2444 | Ideally, @var{tagregexp} should not match more characters than are | 2458 | Ideally, @var{tagregexp} should not match more characters than are |
| 2445 | needed to recognize what you want to tag. If the syntax requires you | 2459 | needed to recognize what you want to tag. If the syntax requires you |
| @@ -2607,13 +2621,13 @@ current list, it is used @emph{as well as} the others. | |||
| 2607 | @example | 2621 | @example |
| 2608 | @group | 2622 | @group |
| 2609 | (setq tags-table-list | 2623 | (setq tags-table-list |
| 2610 | '("~/emacs" "/usr/local/lib/emacs/src")) | 2624 | '("~/.emacs.d" "/usr/local/lib/emacs/src")) |
| 2611 | @end group | 2625 | @end group |
| 2612 | @end example | 2626 | @end example |
| 2613 | 2627 | ||
| 2614 | @noindent | 2628 | @noindent |
| 2615 | This tells the tags commands to look at the @file{TAGS} files in your | 2629 | This tells the tags commands to look at the @file{TAGS} files in your |
| 2616 | @file{~/emacs} directory and in the @file{/usr/local/lib/emacs/src} | 2630 | @file{~/.emacs.d} directory and in the @file{/usr/local/lib/emacs/src} |
| 2617 | directory. The order depends on which file you are in and which tags | 2631 | directory. The order depends on which file you are in and which tags |
| 2618 | table mentions that file. | 2632 | table mentions that file. |
| 2619 | 2633 | ||
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index cfc689e4641..9610ed4dd89 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -2475,7 +2475,7 @@ seconds, if that is non-@code{nil} and non-zero. | |||
| 2475 | If you turn on @code{desktop-save-mode} in your init file, then when | 2475 | If you turn on @code{desktop-save-mode} in your init file, then when |
| 2476 | Emacs starts, it looks for a saved desktop in the current directory. | 2476 | Emacs starts, it looks for a saved desktop in the current directory. |
| 2477 | (More precisely, it looks in the directories specified by | 2477 | (More precisely, it looks in the directories specified by |
| 2478 | @var{desktop-path}, and uses the first desktop it finds.) | 2478 | @code{desktop-path}, and uses the first desktop it finds.) |
| 2479 | Thus, you can have separate saved desktops in different directories, | 2479 | Thus, you can have separate saved desktops in different directories, |
| 2480 | and the starting directory determines which one Emacs reloads. You | 2480 | and the starting directory determines which one Emacs reloads. You |
| 2481 | can save the current desktop and reload one saved in another directory | 2481 | can save the current desktop and reload one saved in another directory |
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 4a59f4307ed..042a197f9b7 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -843,12 +843,17 @@ or the last, non-whitespace position on the line. | |||
| 843 | @cindex inserting matching parentheses | 843 | @cindex inserting matching parentheses |
| 844 | @findex electric-pair-mode | 844 | @findex electric-pair-mode |
| 845 | Electric Pair mode, a global minor mode, provides a way to easily | 845 | Electric Pair mode, a global minor mode, provides a way to easily |
| 846 | insert matching delimiters. Whenever you insert an opening delimiter, | 846 | insert matching delimiters: parentheses, braces, brackets, etc. |
| 847 | the matching closing delimiter is automatically inserted as well, | 847 | Whenever you insert an opening delimiter, the matching closing |
| 848 | leaving point between the two. Conversely, when you insert a closing | 848 | delimiter is automatically inserted as well, leaving point between the |
| 849 | delimiter over an existing one, no inserting takes places and that | 849 | two. Conversely, when you insert a closing delimiter over an existing |
| 850 | position is simply skipped over. These variables control additional | 850 | one, no insertion takes places, and that position is simply skipped |
| 851 | features of Electric Pair mode: | 851 | over. If the region is active (@pxref{Mark}), insertion of a |
| 852 | delimiter operates on the region: the characters in the region are | ||
| 853 | enclosed in a pair of matching delimiters, leaving point after the | ||
| 854 | delimiter you typed. | ||
| 855 | |||
| 856 | These variables control additional features of Electric Pair mode: | ||
| 852 | 857 | ||
| 853 | @itemize @bullet | 858 | @itemize @bullet |
| 854 | @item | 859 | @item |
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 709e9836c90..bf85b00e937 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -3124,12 +3124,11 @@ machines, but will fail if the machine's arithmetic is extremely | |||
| 3124 | unusual, e.g., decimal. | 3124 | unusual, e.g., decimal. |
| 3125 | @end defun | 3125 | @end defun |
| 3126 | 3126 | ||
| 3127 | Since true Common Lisp supports up to four different floating-point | 3127 | Since true Common Lisp supports up to four different kinds of floating-point |
| 3128 | precisions, it has families of constants like | 3128 | numbers, it has families of constants like |
| 3129 | @code{most-positive-single-float}, @code{most-positive-double-float}, | 3129 | @code{most-positive-single-float}, @code{most-positive-double-float}, |
| 3130 | @code{most-positive-long-float}, and so on. Emacs has only one | 3130 | @code{most-positive-long-float}, and so on. Emacs has only one |
| 3131 | floating-point precision, so this package omits the precision word | 3131 | kind of floating-point number, so this package just uses single constants. |
| 3132 | from the constants' names. | ||
| 3133 | 3132 | ||
| 3134 | @defvar cl-most-positive-float | 3133 | @defvar cl-most-positive-float |
| 3135 | This constant equals the largest value a Lisp float can hold. | 3134 | This constant equals the largest value a Lisp float can hold. |