diff options
| author | Martin Rudalics | 2017-12-22 09:20:41 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2017-12-22 09:20:41 +0100 |
| commit | 164e84c9773d9738c80b49630c4e45d539b337ef (patch) | |
| tree | 28772497548c552a6592b78f9b9f50d62a39a5e5 | |
| parent | 798f07f1509ac973a379db921bd796e0df7f2982 (diff) | |
| download | emacs-164e84c9773d9738c80b49630c4e45d539b337ef.tar.gz emacs-164e84c9773d9738c80b49630c4e45d539b337ef.zip | |
Fix uses of 'nil' and 'non-nil' in manuals and a few more minor issues
* doc/emacs/building.texi (Grep Searching): Fix doc of
'grep-save-buffers'.
(Drag and Drop): Reorder paragraphs. Fix doc of
'mouse-drag-and-drop-region'.
* doc/emacs/frames.texi (Word and Line Mouse):
* doc/emacs/search.texi (Other Repeating Search):
* doc/lispref/compile.texi (Compilation Functions):
* doc/lispref/files.texi (Directory Names):
* doc/lispref/functions.texi (Advising Named Functions):
* doc/lispref/keymaps.texi (Controlling Active Maps):
* doc/lispref/lists.texi (Association Lists):
* doc/lispref/windows.texi (Quitting Windows): Fix uses of
'non-nil' and 'nil'.
| -rw-r--r-- | doc/emacs/building.texi | 9 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 31 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/compile.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 3 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/lists.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 4 |
9 files changed, 41 insertions, 35 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index e108a4e7c10..f342aef705e 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -394,10 +394,11 @@ match will be highlighted, instead of the entire source line. | |||
| 394 | The @command{grep} commands will offer to save buffers before | 394 | The @command{grep} commands will offer to save buffers before |
| 395 | running. This is controlled by the @code{grep-save-buffers} variable. | 395 | running. This is controlled by the @code{grep-save-buffers} variable. |
| 396 | The possible values are either @code{nil} (don't save), @code{ask} | 396 | The possible values are either @code{nil} (don't save), @code{ask} |
| 397 | (ask before saving), a function which will be used as a predicate (and | 397 | (ask before saving), or a function which will be used as a predicate |
| 398 | is called with the file name as the parameter and should return | 398 | (and is called with the file name as the parameter and should return |
| 399 | non-nil if the buffer is to be saved), and any other non-@code{nil} | 399 | non-@code{nil} if the buffer is to be saved). Any other |
| 400 | value means that all buffers should be saved without asking. | 400 | non-@code{nil} value means that all buffers should be saved without |
| 401 | asking. | ||
| 401 | 402 | ||
| 402 | @findex grep-find | 403 | @findex grep-find |
| 403 | @findex find-grep | 404 | @findex find-grep |
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index c94d690cf7f..58e70eefaf5 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -243,9 +243,9 @@ location of point. Double-clicking on the end of a parenthetical | |||
| 243 | grouping or end string-delimiter keeps point at the end of the region | 243 | grouping or end string-delimiter keeps point at the end of the region |
| 244 | by default, so the beginning of the region will not be visible if it | 244 | by default, so the beginning of the region will not be visible if it |
| 245 | is above the top of the window; setting the user option | 245 | is above the top of the window; setting the user option |
| 246 | @code{mouse-select-region-move-to-beginning} to non-nil changes this | 246 | @code{mouse-select-region-move-to-beginning} to non-@code{nil} changes |
| 247 | to move point to the beginning of the region, scrolling the display | 247 | this to move point to the beginning of the region, scrolling the |
| 248 | backward if necessary. | 248 | display backward if necessary. |
| 249 | 249 | ||
| 250 | @item Double-Drag-mouse-1 | 250 | @item Double-Drag-mouse-1 |
| 251 | Select the text you drag across, in the form of whole words. | 251 | Select the text you drag across, in the form of whole words. |
| @@ -1094,18 +1094,6 @@ file on a Dired buffer moves or copies the file (according to the | |||
| 1094 | conventions of the application it came from) into the directory | 1094 | conventions of the application it came from) into the directory |
| 1095 | displayed in that buffer. | 1095 | displayed in that buffer. |
| 1096 | 1096 | ||
| 1097 | @vindex mouse-drag-and-drop-region | ||
| 1098 | Emacs can also optionally drag the region of text by mouse into | ||
| 1099 | another portion of this or another buffer. To enable that, customize | ||
| 1100 | the variable @code{mouse-drag-and-drop-region} to a non-nil value. | ||
| 1101 | Normally, the text is moved, i.e. cut and pasted, when the destination | ||
| 1102 | is the same buffer as the origin; dropping the region on another | ||
| 1103 | buffer copies the text instead. If the value of this variable names a | ||
| 1104 | modifier key, such as @samp{shift} or @samp{control} or @samp{alt}, | ||
| 1105 | then pressing that modifier key when dropping the text will copy it | ||
| 1106 | instead of cutting it, even if you drop on the same buffer as the one | ||
| 1107 | from which the text came. | ||
| 1108 | |||
| 1109 | @vindex dnd-open-file-other-window | 1097 | @vindex dnd-open-file-other-window |
| 1110 | Dropping a file normally visits it in the window you drop it on. If | 1098 | Dropping a file normally visits it in the window you drop it on. If |
| 1111 | you prefer to visit the file in a new window in such cases, customize | 1099 | you prefer to visit the file in a new window in such cases, customize |
| @@ -1114,6 +1102,19 @@ the variable @code{dnd-open-file-other-window}. | |||
| 1114 | The XDND and Motif drag and drop protocols, and the old KDE 1.x | 1102 | The XDND and Motif drag and drop protocols, and the old KDE 1.x |
| 1115 | protocol, are currently supported. | 1103 | protocol, are currently supported. |
| 1116 | 1104 | ||
| 1105 | @vindex mouse-drag-and-drop-region | ||
| 1106 | Emacs can also optionally drag the region with the mouse into | ||
| 1107 | another portion of this or another buffer. To enable that, customize | ||
| 1108 | the variable @code{mouse-drag-and-drop-region} to a non-@code{nil} | ||
| 1109 | value. Normally, the text is moved, i.e. cut and pasted, when the | ||
| 1110 | destination is the same buffer as the origin; dropping the region on | ||
| 1111 | another buffer copies the text instead. If the value of this variable | ||
| 1112 | names a modifier key, such as @samp{shift}, @samp{control} or | ||
| 1113 | @samp{alt}, then pressing that modifier key when dropping the text | ||
| 1114 | will copy it instead of cutting it, even if you drop on the same | ||
| 1115 | buffer as the one from which the text came. | ||
| 1116 | |||
| 1117 | |||
| 1117 | @node Menu Bars | 1118 | @node Menu Bars |
| 1118 | @section Menu Bars | 1119 | @section Menu Bars |
| 1119 | @cindex Menu Bar mode | 1120 | @cindex Menu Bar mode |
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 7b334733d67..c4853686ae0 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -1746,12 +1746,13 @@ prompt, you can reuse search strings from previous incremental | |||
| 1746 | searches. The text that matched is highlighted using the @code{match} | 1746 | searches. The text that matched is highlighted using the @code{match} |
| 1747 | face. A numeric argument @var{n} specifies that @var{n} lines of | 1747 | face. A numeric argument @var{n} specifies that @var{n} lines of |
| 1748 | context are to be displayed before and after each matching line. | 1748 | context are to be displayed before and after each matching line. |
| 1749 | |||
| 1749 | The default number of context lines is specified by the variable | 1750 | The default number of context lines is specified by the variable |
| 1750 | @code{list-matching-lines-default-context-lines}. | 1751 | @code{list-matching-lines-default-context-lines}. When |
| 1751 | When @code{list-matching-lines-jump-to-current-line} is non-nil, | 1752 | @code{list-matching-lines-jump-to-current-line} is non-@code{nil} the |
| 1752 | the current line is shown highlighted with face | 1753 | current line is shown highlighted with face |
| 1753 | @code{list-matching-lines-current-line-face} and the point is set | 1754 | @code{list-matching-lines-current-line-face} and the point is set at |
| 1754 | at the first match after such line. | 1755 | the first match after such line. |
| 1755 | 1756 | ||
| 1756 | You can also run @kbd{M-s o} when an incremental search is active; | 1757 | You can also run @kbd{M-s o} when an incremental search is active; |
| 1757 | this uses the current search string. | 1758 | this uses the current search string. |
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 57ff06085d9..9123e93a5bf 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -94,7 +94,7 @@ the @code{byte-compile} function. You can compile a whole file with | |||
| 94 | recorded in a buffer called @file{*Compile-Log*}, which uses | 94 | recorded in a buffer called @file{*Compile-Log*}, which uses |
| 95 | Compilation mode. @xref{Compilation Mode,,,emacs, The GNU Emacs | 95 | Compilation mode. @xref{Compilation Mode,,,emacs, The GNU Emacs |
| 96 | Manual}. However, if the variable @code{byte-compile-debug} is | 96 | Manual}. However, if the variable @code{byte-compile-debug} is |
| 97 | non-nil, error message will be signaled as Lisp errors instead | 97 | non-@code{nil}, error messages will be signaled as Lisp errors instead |
| 98 | (@pxref{Errors}). | 98 | (@pxref{Errors}). |
| 99 | 99 | ||
| 100 | @cindex macro compilation | 100 | @cindex macro compilation |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 254eab03ea5..d249ce8783d 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -2284,7 +2284,8 @@ because this is not portable. Always use | |||
| 2284 | @code{file-name-as-directory}. | 2284 | @code{file-name-as-directory}. |
| 2285 | 2285 | ||
| 2286 | To avoid the issues mentioned above, or if the @var{dirname} value | 2286 | To avoid the issues mentioned above, or if the @var{dirname} value |
| 2287 | might be nil (for example, from an element of @code{load-path}), use: | 2287 | might be @code{nil} (for example, from an element of @code{load-path}), |
| 2288 | use: | ||
| 2288 | 2289 | ||
| 2289 | @example | 2290 | @example |
| 2290 | (expand-file-name @var{relfile} @var{dirname}) | 2291 | (expand-file-name @var{relfile} @var{dirname}) |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 466a12f7a48..58eaf6b80ec 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1748,8 +1748,8 @@ code) obey the advice and other calls (from C code) do not. | |||
| 1748 | @defmac define-advice symbol (where lambda-list &optional name depth) &rest body | 1748 | @defmac define-advice symbol (where lambda-list &optional name depth) &rest body |
| 1749 | This macro defines a piece of advice and adds it to the function named | 1749 | This macro defines a piece of advice and adds it to the function named |
| 1750 | @var{symbol}. The advice is an anonymous function if @var{name} is | 1750 | @var{symbol}. The advice is an anonymous function if @var{name} is |
| 1751 | nil or a function named @code{symbol@@name}. See @code{advice-add} | 1751 | @code{nil} or a function named @code{symbol@@name}. See |
| 1752 | for explanation of other arguments. | 1752 | @code{advice-add} for explanation of other arguments. |
| 1753 | @end defmac | 1753 | @end defmac |
| 1754 | 1754 | ||
| 1755 | @defun advice-add symbol where function &optional props | 1755 | @defun advice-add symbol where function &optional props |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 73f5572e69d..71b054e063c 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -988,8 +988,9 @@ function is called with no arguments, prior to running each command, | |||
| 988 | while @var{keymap} is active; it should return non-@code{nil} if | 988 | while @var{keymap} is active; it should return non-@code{nil} if |
| 989 | @var{keymap} should stay active. | 989 | @var{keymap} should stay active. |
| 990 | 990 | ||
| 991 | The optional argument @var{on-exit}, if non-nil, specifies a function | 991 | The optional argument @var{on-exit}, if non-@code{nil}, specifies a |
| 992 | that is called, with no arguments, after @var{keymap} is deactivated. | 992 | function that is called, with no arguments, after @var{keymap} is |
| 993 | deactivated. | ||
| 993 | 994 | ||
| 994 | This function works by adding and removing @var{keymap} from the | 995 | This function works by adding and removing @var{keymap} from the |
| 995 | variable @code{overriding-terminal-local-map}, which takes precedence | 996 | variable @code{overriding-terminal-local-map}, which takes precedence |
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 0c993806824..230ea4b48eb 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi | |||
| @@ -1514,9 +1514,10 @@ of property lists and association lists. | |||
| 1514 | @defun assoc key alist &optional testfn | 1514 | @defun assoc key alist &optional testfn |
| 1515 | This function returns the first association for @var{key} in | 1515 | This function returns the first association for @var{key} in |
| 1516 | @var{alist}, comparing @var{key} against the alist elements using | 1516 | @var{alist}, comparing @var{key} against the alist elements using |
| 1517 | @var{testfn} if non-nil, or @code{equal} if nil (@pxref{Equality | 1517 | @var{testfn} if it is non-@code{nil} and @code{equal} otherwise |
| 1518 | Predicates}). It returns @code{nil} if no association in @var{alist} | 1518 | (@pxref{Equality Predicates}). It returns @code{nil} if no |
| 1519 | has a @sc{car} equal to @var{key}. For example: | 1519 | association in @var{alist} has a @sc{car} equal to @var{key}. For |
| 1520 | example: | ||
| 1520 | 1521 | ||
| 1521 | @smallexample | 1522 | @smallexample |
| 1522 | (setq trees '((pine . cones) (oak . acorns) (maple . seeds))) | 1523 | (setq trees '((pine . cones) (oak . acorns) (maple . seeds))) |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 08ed092c48c..07c8f27bc81 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -3059,7 +3059,7 @@ This function handles @var{window} and its buffer after quitting. The | |||
| 3059 | optional argument @var{window} must be a live window and defaults to | 3059 | optional argument @var{window} must be a live window and defaults to |
| 3060 | the selected one. The function's behavior is determined by the four | 3060 | the selected one. The function's behavior is determined by the four |
| 3061 | elements of the @code{quit-restore} window parameter (@pxref{Window | 3061 | elements of the @code{quit-restore} window parameter (@pxref{Window |
| 3062 | Parameters}), which is set to nil afterwards. | 3062 | Parameters}), which is set to @code{nil} afterwards. |
| 3063 | 3063 | ||
| 3064 | The window is deleted entirely if: 1) the first element of the | 3064 | The window is deleted entirely if: 1) the first element of the |
| 3065 | @code{quit-restore} parameter is one of 'window or 'frame, 2) the | 3065 | @code{quit-restore} parameter is one of 'window or 'frame, 2) the |
| @@ -3126,7 +3126,7 @@ possible to set it manually, using the following code for displaying | |||
| 3126 | @end group | 3126 | @end group |
| 3127 | @end example | 3127 | @end example |
| 3128 | 3128 | ||
| 3129 | Setting the window history to nil ensures that a future call to | 3129 | Setting the window history to @code{nil} ensures that a future call to |
| 3130 | @code{quit-window} can delete the window altogether. | 3130 | @code{quit-window} can delete the window altogether. |
| 3131 | 3131 | ||
| 3132 | @end defun | 3132 | @end defun |