diff options
| author | Paul Eggert | 2016-05-05 23:11:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-05 23:11:11 -0700 |
| commit | 89ce83b20249dfb4e45f09dfdddf4c4b66d82968 (patch) | |
| tree | 3d75245a5514df2ad7b17ae6d56727b9629846a9 /doc | |
| parent | d546ed13b04521308ef7ec8e7e5b68e03f1bbb38 (diff) | |
| parent | 50650cb6887d99b01eeb1e686fc1f695c2a0c64a (diff) | |
| download | emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.tar.gz emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.zip | |
Merge from origin/emacs-25
50650cb Doc fixes for fclist and grep
5e814e0 Minor doc fixes for quoting
3347a73 `nreverse' the marker pairs list
1a4127d Use save-excursion in xref-location-marker more
ab3ba91 shell-quote-argument DIR when appropriate
922c7a3 Rework xref-query-replace-in-results
3fe3510 * lisp/replace.el (query-replace-read-from): Use minibuffer-w...
0932b94 Fix todo-mode bug involving archived items (bug#23447)
e68ad1f ; * etc/NEWS: Tiny edit. (Bug#23432)
adc80b7 ; * test/automated/xref-tests.el: Add copyright and license.
4d8fd9c Handle "empty line" regexp in xref searches
f559b37 Add tests for xref-collect-matches
6428aa0 Use grep-find-ignored-directories instead of vc-directory-exc...
6f82d8e Clear buffer-undo-list when showing xrefs
c68a091 Note the quote translation in `message' in section "incompati...
52f86a7 * etc/NEWS: Mention (message "%s" (format ...)).
93703c5 (Common Keywords): Correct what missing :group means
79e5800 Improve documentation of Dired's 'A' and 'Q' commands
2ea2a2f Doc fixes for quoting
8544b98 posnp doc clarification
805204f Mention what a missing :group does
ec554d7 Fix documentation of dired-aux search/replace commands
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/dired.texi | 14 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 5 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 4 | ||||
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 28 | ||||
| -rw-r--r-- | doc/lispref/control.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/customize.texi | 9 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/help.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 10 |
9 files changed, 62 insertions, 34 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 68c6813c242..486e92a40bb 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -795,6 +795,14 @@ This command is a variant of @code{xref-find-references} | |||
| 795 | where you can navigate between matches and display them as needed | 795 | where you can navigate between matches and display them as needed |
| 796 | using the commands described in @ref{Xref Commands}. | 796 | using the commands described in @ref{Xref Commands}. |
| 797 | 797 | ||
| 798 | @vindex grep-find-ignored-files @r{(Dired)} | ||
| 799 | @vindex grep-find-ignored-directories @r{(Dired)} | ||
| 800 | If any of the marked files are directories, then this command searches | ||
| 801 | all of the files in those directories, and any of their | ||
| 802 | subdirectories, recursively, except files whose names match | ||
| 803 | @code{grep-find-ignored-files} and subdirectories whose names match | ||
| 804 | @code{grep-find-ignored-directories}. | ||
| 805 | |||
| 798 | @kindex Q @r{(Dired)} | 806 | @kindex Q @r{(Dired)} |
| 799 | @findex dired-do-find-regexp-and-replace | 807 | @findex dired-do-find-regexp-and-replace |
| 800 | @cindex search and replace in multiple files (in Dired) | 808 | @cindex search and replace in multiple files (in Dired) |
| @@ -809,6 +817,12 @@ and you can use the special commands in that buffer (@pxref{Xref | |||
| 809 | Commands}). In particular, if you exit the query replace loop, you | 817 | Commands}). In particular, if you exit the query replace loop, you |
| 810 | can use @kbd{r} in that buffer to replace more matches. | 818 | can use @kbd{r} in that buffer to replace more matches. |
| 811 | @xref{Identifier Search}. | 819 | @xref{Identifier Search}. |
| 820 | |||
| 821 | Like with @code{dired-do-find-regexp}, if any of the marked files are | ||
| 822 | directories, this command performs replacements in all of the files in | ||
| 823 | those directories, and in any of their subdirectories, recursively, | ||
| 824 | except for files whose names match @code{grep-find-ignored-files} and | ||
| 825 | subdirectories whose names match @code{grep-find-ignored-directories}. | ||
| 812 | @end table | 826 | @end table |
| 813 | 827 | ||
| 814 | @node Shell Commands in Dired | 828 | @node Shell Commands in Dired |
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 23ccd6a8f41..a7e709f9221 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -764,7 +764,8 @@ Fontconfig fonts, you can use the @command{fc-list} command to list | |||
| 764 | the available fixed-width fonts, like this: | 764 | the available fixed-width fonts, like this: |
| 765 | 765 | ||
| 766 | @example | 766 | @example |
| 767 | fc-list :spacing=mono fc-list :spacing=charcell | 767 | fc-list :spacing=mono |
| 768 | fc-list :spacing=charcell | ||
| 768 | @end example | 769 | @end example |
| 769 | 770 | ||
| 770 | @noindent | 771 | @noindent |
| @@ -772,7 +773,7 @@ For server-side X fonts, you can use the @command{xlsfonts} program to | |||
| 772 | list the available fixed-width fonts, like this: | 773 | list the available fixed-width fonts, like this: |
| 773 | 774 | ||
| 774 | @example | 775 | @example |
| 775 | xlsfonts -fn '*x*' | egrep "^[0-9]+x[0-9]+" | 776 | xlsfonts -fn '*x*' | grep -E '^[0-9]+x[0-9]+' |
| 776 | xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*' | 777 | xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*' |
| 777 | xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*' | 778 | xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*' |
| 778 | @end example | 779 | @end example |
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 66f01b495d1..579f7880cfe 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -862,8 +862,8 @@ indenting the current line. @xref{Indentation}, for details. | |||
| 862 | 862 | ||
| 863 | Text mode turns off the features concerned with comments except when | 863 | Text mode turns off the features concerned with comments except when |
| 864 | you explicitly invoke them. It changes the syntax table so that | 864 | you explicitly invoke them. It changes the syntax table so that |
| 865 | single-quotes are considered part of words (e.g., @samp{don't} is | 865 | apostrophes are considered part of words (e.g., @samp{don't} is |
| 866 | considered one word). However, if a word starts with a single-quote, | 866 | considered one word). However, if a word starts with an apostrophe, |
| 867 | it is treated as a prefix for the purposes of capitalization | 867 | it is treated as a prefix for the purposes of capitalization |
| 868 | (e.g., @kbd{M-c} converts @samp{'hello'} into @samp{'Hello'}, as | 868 | (e.g., @kbd{M-c} converts @samp{'hello'} into @samp{'Hello'}, as |
| 869 | expected). | 869 | expected). |
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 78c1865703e..eea46af6b19 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -1004,11 +1004,11 @@ the name stands for ``Lots of Isolated Silly Parentheses''. But the | |||
| 1004 | claim is unwarranted. Lisp stands for LISt Processing, and the | 1004 | claim is unwarranted. Lisp stands for LISt Processing, and the |
| 1005 | programming language handles @emph{lists} (and lists of lists) by | 1005 | programming language handles @emph{lists} (and lists of lists) by |
| 1006 | putting them between parentheses. The parentheses mark the boundaries | 1006 | putting them between parentheses. The parentheses mark the boundaries |
| 1007 | of the list. Sometimes a list is preceded by a single apostrophe or | 1007 | of the list. Sometimes a list is preceded by an apostrophe @samp{'}, |
| 1008 | quotation mark, @samp{'}@footnote{The single apostrophe or quotation | 1008 | called a @dfn{single-quote} in Lisp.@footnote{A single-quote is an |
| 1009 | mark is an abbreviation for the function @code{quote}; you need not | 1009 | abbreviation for the special form @code{quote}; you need not think |
| 1010 | think about functions now; functions are defined in @ref{Making | 1010 | about special forms now. @xref{Complications}.} Lists are the basis |
| 1011 | Errors, , Generate an Error Message}.} Lists are the basis of Lisp. | 1011 | of Lisp. |
| 1012 | 1012 | ||
| 1013 | @menu | 1013 | @menu |
| 1014 | * Lisp Lists:: What are lists? | 1014 | * Lisp Lists:: What are lists? |
| @@ -2490,14 +2490,7 @@ in the list and then at the function definition bound to that symbol. | |||
| 2490 | Then the instructions in the function definition are carried out. | 2490 | Then the instructions in the function definition are carried out. |
| 2491 | 2491 | ||
| 2492 | @item | 2492 | @item |
| 2493 | A single quotation mark, | 2493 | A single-quote @samp{'} tells the Lisp interpreter that it should |
| 2494 | @ifinfo | ||
| 2495 | ' | ||
| 2496 | @end ifinfo | ||
| 2497 | @ifnotinfo | ||
| 2498 | @code{'} | ||
| 2499 | @end ifnotinfo | ||
| 2500 | , tells the Lisp interpreter that it should | ||
| 2501 | return the following expression as written, and not evaluate it as it | 2494 | return the following expression as written, and not evaluate it as it |
| 2502 | would if the quote were not there. | 2495 | would if the quote were not there. |
| 2503 | 2496 | ||
| @@ -7610,7 +7603,8 @@ displays in which grave accent and apostrophe were often mirror images | |||
| 7610 | suitable for use as quotes. On most modern displays this is no longer | 7603 | suitable for use as quotes. On most modern displays this is no longer |
| 7611 | true, and when these two ASCII characters appear in documentation | 7604 | true, and when these two ASCII characters appear in documentation |
| 7612 | strings or diagnostic message formats, Emacs typically transliterates | 7605 | strings or diagnostic message formats, Emacs typically transliterates |
| 7613 | them to curved single quotes, so that the abovequoted symbol appears | 7606 | them to @dfn{curved quotes} (left and right single quotation marks), |
| 7607 | so that the abovequoted symbol appears | ||
| 7614 | as @t{‘case-fold-search’}. Source-code strings can also simply use | 7608 | as @t{‘case-fold-search’}. Source-code strings can also simply use |
| 7615 | curved quotes directly. | 7609 | curved quotes directly. |
| 7616 | 7610 | ||
| @@ -17117,7 +17111,7 @@ This line is a short, but complete Emacs Lisp expression. | |||
| 17117 | 17111 | ||
| 17118 | We are already familiar with @code{setq}. It sets the following variable, | 17112 | We are already familiar with @code{setq}. It sets the following variable, |
| 17119 | @code{major-mode}, to the subsequent value, which is @code{text-mode}. | 17113 | @code{major-mode}, to the subsequent value, which is @code{text-mode}. |
| 17120 | The single quote mark before @code{text-mode} tells Emacs to deal directly | 17114 | The single-quote before @code{text-mode} tells Emacs to deal directly |
| 17121 | with the @code{text-mode} symbol, not with whatever it might stand for. | 17115 | with the @code{text-mode} symbol, not with whatever it might stand for. |
| 17122 | @xref{set & setq, , Setting the Value of a Variable}, | 17116 | @xref{set & setq, , Setting the Value of a Variable}, |
| 17123 | for a reminder of how @code{setq} works. | 17117 | for a reminder of how @code{setq} works. |
| @@ -17284,11 +17278,11 @@ Rebinding Keys in Your Init File, emacs, The GNU Emacs Manual}, for | |||
| 17284 | details.) | 17278 | details.) |
| 17285 | 17279 | ||
| 17286 | The command invoked by the keys is @code{compare-windows}. Note that | 17280 | The command invoked by the keys is @code{compare-windows}. Note that |
| 17287 | @code{compare-windows} is preceded by a single quote; otherwise, Emacs | 17281 | @code{compare-windows} is preceded by a single-quote; otherwise, Emacs |
| 17288 | would first try to evaluate the symbol to determine its value. | 17282 | would first try to evaluate the symbol to determine its value. |
| 17289 | 17283 | ||
| 17290 | These three things, the double quotation marks, the backslash before | 17284 | These three things, the double quotation marks, the backslash before |
| 17291 | the @samp{C}, and the single quote mark are necessary parts of | 17285 | the @samp{C}, and the single-quote are necessary parts of |
| 17292 | keybinding that I tend to forget. Fortunately, I have come to | 17286 | keybinding that I tend to forget. Fortunately, I have come to |
| 17293 | remember that I should look at my existing @file{.emacs} file, and | 17287 | remember that I should look at my existing @file{.emacs} file, and |
| 17294 | adapt what is there. | 17288 | adapt what is there. |
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 3f48c458c02..0cdb03548bf 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi | |||
| @@ -1100,10 +1100,13 @@ These examples show typical uses of @code{error}: | |||
| 1100 | error symbol @code{error}, and a list containing the string returned by | 1100 | error symbol @code{error}, and a list containing the string returned by |
| 1101 | @code{format-message}. | 1101 | @code{format-message}. |
| 1102 | 1102 | ||
| 1103 | In a format string containing single quotes, curved quotes @t{‘like | 1103 | The @code{text-quoting-style} variable controls what quotes are |
| 1104 | this’} and grave quotes @t{`like this'} work better than straight | 1104 | generated; @xref{Keys in Documentation}. A call using a format like |
| 1105 | quotes @t{'like this'}, as @code{error} typically formats every | 1105 | @t{"Missing `%s'"} with grave accents and apostrophes typically |
| 1106 | straight quote as a curved closing quote. | 1106 | generates a message like @t{"Missing ‘foo’"} with matching curved |
| 1107 | quotes. In contrast, a call using a format like @t{"Missing '%s'"} | ||
| 1108 | with only apostrophes typically generates a message like @t{"Missing | ||
| 1109 | ’foo’"} with only closing curved quotes, an unusual style in English. | ||
| 1107 | 1110 | ||
| 1108 | @strong{Warning:} If you want to use your own string as an error message | 1111 | @strong{Warning:} If you want to use your own string as an error message |
| 1109 | verbatim, don't just write @code{(error @var{string})}. If @var{string} | 1112 | verbatim, don't just write @code{(error @var{string})}. If @var{string} |
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi index 14e6eb3ab25..4a6f7f2162b 100644 --- a/doc/lispref/customize.texi +++ b/doc/lispref/customize.texi | |||
| @@ -66,9 +66,12 @@ cause confusion.} | |||
| 66 | 66 | ||
| 67 | @kindex group@r{, customization keyword} | 67 | @kindex group@r{, customization keyword} |
| 68 | @item :group @var{group} | 68 | @item :group @var{group} |
| 69 | Put this customization item in group @var{group}. When you use | 69 | Put this customization item in group @var{group}. If this keyword is |
| 70 | @code{:group} in a @code{defgroup}, it makes the new group a subgroup of | 70 | missing from a customization item, it'll be placed in the same group |
| 71 | @var{group}. | 71 | that was last defined (in the current file). |
| 72 | |||
| 73 | When you use @code{:group} in a @code{defgroup}, it makes the new | ||
| 74 | group a subgroup of @var{group}. | ||
| 72 | 75 | ||
| 73 | If you use this keyword more than once, you can put a single item into | 76 | If you use this keyword more than once, you can put a single item into |
| 74 | more than one group. Displaying any of those groups will show this | 77 | more than one group. Displaying any of those groups will show this |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 3673d114041..87126f9167a 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -265,10 +265,13 @@ properties, it is displayed with the specified faces (@pxref{Faces}). | |||
| 265 | The string is also added to the @file{*Messages*} buffer, but without | 265 | The string is also added to the @file{*Messages*} buffer, but without |
| 266 | text properties (@pxref{Logging Messages}). | 266 | text properties (@pxref{Logging Messages}). |
| 267 | 267 | ||
| 268 | In a format string containing single quotes, curved quotes @t{‘like | 268 | The @code{text-quoting-style} variable controls what quotes are |
| 269 | this’} and grave quotes @t{`like this'} work better than straight | 269 | generated; @xref{Keys in Documentation}. A call using a format like |
| 270 | quotes @t{'like this'}, as @code{message} typically formats every | 270 | @t{"Missing `%s'"} with grave accents and apostrophes typically |
| 271 | straight quote as a curved closing quote. | 271 | generates a message like @t{"Missing ‘foo’"} with matching curved |
| 272 | quotes. In contrast, a call using a format like @t{"Missing '%s'"} | ||
| 273 | with only apostrophes typically generates a message like @t{"Missing | ||
| 274 | ’foo’"} with only closing curved quotes, an unusual style in English. | ||
| 272 | 275 | ||
| 273 | In batch mode, the message is printed to the standard error stream, | 276 | In batch mode, the message is printed to the standard error stream, |
| 274 | followed by a newline. | 277 | followed by a newline. |
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 58a11f29a4c..b945e438f55 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi | |||
| @@ -335,10 +335,14 @@ specifies @var{mapvar}'s value as the keymap for any following | |||
| 335 | @item ‘ | 335 | @item ‘ |
| 336 | @itemx ` | 336 | @itemx ` |
| 337 | (left single quotation mark and grave accent) both stand for a left quote. | 337 | (left single quotation mark and grave accent) both stand for a left quote. |
| 338 | This generates a left single quotation mark, an apostrophe, or a grave | ||
| 339 | accent depending on the value of @code{text-quoting-style}. | ||
| 338 | 340 | ||
| 339 | @item ’ | 341 | @item ’ |
| 340 | @itemx ' | 342 | @itemx ' |
| 341 | (right single quotation mark and apostrophe) both stand for a right quote. | 343 | (right single quotation mark and apostrophe) both stand for a right quote. |
| 344 | This generates a right single quotation mark or an apostrophe | ||
| 345 | depending on the value of @code{text-quoting-style}. | ||
| 342 | 346 | ||
| 343 | @item \= | 347 | @item \= |
| 344 | quotes the following character and is discarded; thus, @samp{\=`} puts | 348 | quotes the following character and is discarded; thus, @samp{\=`} puts |
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index ce629aa8259..58ab02dbc41 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -842,8 +842,14 @@ if any. | |||
| 842 | This function acts like @code{format}, except it also converts any | 842 | This function acts like @code{format}, except it also converts any |
| 843 | curved single quotes in @var{string} as per the value of | 843 | curved single quotes in @var{string} as per the value of |
| 844 | @code{text-quoting-style}, and treats grave accent (@t{`}) and | 844 | @code{text-quoting-style}, and treats grave accent (@t{`}) and |
| 845 | apostrophe (@t{'}) as if they were curved single quotes. @xref{Keys | 845 | apostrophe (@t{'}) as if they were curved single quotes. |
| 846 | in Documentation}. | 846 | |
| 847 | A format that quotes with grave accents and apostrophes @t{`like | ||
| 848 | this'} typically generates curved quotes @t{‘like this’}. In | ||
| 849 | contrast, a format that quotes with only apostrophes @t{'like this'} | ||
| 850 | typically generates two closing curved quotes @t{’like this’}, an | ||
| 851 | unusual style in English. @xref{Keys in Documentation}, for how the | ||
| 852 | @code{text-quoting-style} variable affects generated quotes. | ||
| 847 | @end defun | 853 | @end defun |
| 848 | 854 | ||
| 849 | @cindex @samp{%} in format | 855 | @cindex @samp{%} in format |