diff options
| author | Richard M. Stallman | 2005-06-18 13:57:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-06-18 13:57:17 +0000 |
| commit | 342fd6cd64f3199cc46a08b28c1b7b15abcc168e (patch) | |
| tree | dd4459493ee270e3cd5be82ce8db972479cde113 | |
| parent | 9a2625351f07c169ca526e4d1646efbcbb5cd223 (diff) | |
| download | emacs-342fd6cd64f3199cc46a08b28c1b7b15abcc168e.tar.gz emacs-342fd6cd64f3199cc46a08b28c1b7b15abcc168e.zip | |
Fix formatting ugliness.
| -rw-r--r-- | lispref/compile.texi | 2 | ||||
| -rw-r--r-- | lispref/customize.texi | 3 | ||||
| -rw-r--r-- | lispref/debugging.texi | 12 | ||||
| -rw-r--r-- | lispref/display.texi | 31 | ||||
| -rw-r--r-- | lispref/edebug.texi | 27 | ||||
| -rw-r--r-- | lispref/errors.texi | 2 | ||||
| -rw-r--r-- | lispref/files.texi | 10 | ||||
| -rw-r--r-- | lispref/frames.texi | 18 | ||||
| -rw-r--r-- | lispref/functions.texi | 23 | ||||
| -rw-r--r-- | lispref/help.texi | 2 | ||||
| -rw-r--r-- | lispref/keymaps.texi | 8 | ||||
| -rw-r--r-- | lispref/modes.texi | 11 | ||||
| -rw-r--r-- | lispref/nonascii.texi | 16 | ||||
| -rw-r--r-- | lispref/os.texi | 15 | ||||
| -rw-r--r-- | lispref/processes.texi | 44 | ||||
| -rw-r--r-- | lispref/searching.texi | 26 | ||||
| -rw-r--r-- | lispref/strings.texi | 7 | ||||
| -rw-r--r-- | lispref/text.texi | 32 |
18 files changed, 145 insertions, 144 deletions
diff --git a/lispref/compile.texi b/lispref/compile.texi index 91c0661a99e..951a090e0da 100644 --- a/lispref/compile.texi +++ b/lispref/compile.texi | |||
| @@ -426,7 +426,7 @@ to what @code{eval-when-compile} does. | |||
| 426 | @section Compiler Errors | 426 | @section Compiler Errors |
| 427 | @cindex compiler errors | 427 | @cindex compiler errors |
| 428 | 428 | ||
| 429 | Byte compilation writes errors and warnings into the buffer | 429 | Byte compilation outputs all errors and warnings into the buffer |
| 430 | @samp{*Compile-Log*}. The messages include file names and line | 430 | @samp{*Compile-Log*}. The messages include file names and line |
| 431 | numbers that identify the location of the problem. The usual Emacs | 431 | numbers that identify the location of the problem. The usual Emacs |
| 432 | commands for operating on compiler diagnostics work properly on | 432 | commands for operating on compiler diagnostics work properly on |
diff --git a/lispref/customize.texi b/lispref/customize.texi index 53c9fa92c32..baaceae47f0 100644 --- a/lispref/customize.texi +++ b/lispref/customize.texi | |||
| @@ -658,7 +658,8 @@ means you should always list the most specific types first, and the | |||
| 658 | most general last. Here's an example of proper usage: | 658 | most general last. Here's an example of proper usage: |
| 659 | 659 | ||
| 660 | @example | 660 | @example |
| 661 | (choice (const :tag "Off" nil) symbol (sexp :tag "Other")) | 661 | (choice (const :tag "Off" nil) |
| 662 | symbol (sexp :tag "Other")) | ||
| 662 | @end example | 663 | @end example |
| 663 | 664 | ||
| 664 | @noindent | 665 | @noindent |
diff --git a/lispref/debugging.texi b/lispref/debugging.texi index 0af1f16127d..66663aad131 100644 --- a/lispref/debugging.texi +++ b/lispref/debugging.texi | |||
| @@ -471,15 +471,15 @@ entered--entering a function:} as a line of text at the top of the | |||
| 471 | buffer. | 471 | buffer. |
| 472 | 472 | ||
| 473 | @item debug | 473 | @item debug |
| 474 | @code{debug} as first argument indicates a call to @code{debug} | 474 | @code{debug} as first argument means @code{debug} was called because |
| 475 | because of entry to a function that was set to debug on entry. The | 475 | of entry to a function that was set to debug on entry. The debugger |
| 476 | debugger displays @samp{Debugger entered--entering a function:}, just | 476 | displays the string @samp{Debugger entered--entering a function:}, |
| 477 | as in the @code{lambda} case. It also marks the stack frame for that | 477 | just as in the @code{lambda} case. It also marks the stack frame for |
| 478 | function so that it will invoke the debugger when exited. | 478 | that function so that it will invoke the debugger when exited. |
| 479 | 479 | ||
| 480 | @item t | 480 | @item t |
| 481 | When the first argument is @code{t}, this indicates a call to | 481 | When the first argument is @code{t}, this indicates a call to |
| 482 | @code{debug} due to evaluation of a list form when | 482 | @code{debug} due to evaluation of a function call form when |
| 483 | @code{debug-on-next-call} is non-@code{nil}. The debugger displays | 483 | @code{debug-on-next-call} is non-@code{nil}. The debugger displays |
| 484 | @samp{Debugger entered--beginning evaluation of function call form:} | 484 | @samp{Debugger entered--beginning evaluation of function call form:} |
| 485 | as the top line in the buffer. | 485 | as the top line in the buffer. |
diff --git a/lispref/display.texi b/lispref/display.texi index 87520fb4d4f..930f8aa31bc 100644 --- a/lispref/display.texi +++ b/lispref/display.texi | |||
| @@ -547,15 +547,15 @@ remaining time and clearly see that Emacs is busy working, not hung. | |||
| 547 | reporting operation progress. Here is a working example that does | 547 | reporting operation progress. Here is a working example that does |
| 548 | nothing useful: | 548 | nothing useful: |
| 549 | 549 | ||
| 550 | @example | 550 | @smallexample |
| 551 | (let ((progress-reporter | 551 | (let ((progress-reporter |
| 552 | (make-progress-reporter "Collecting some mana for Emacs..." | 552 | (make-progress-reporter "Collecting mana for Emacs..." |
| 553 | 0 500))) | 553 | 0 500))) |
| 554 | (dotimes (k 500) | 554 | (dotimes (k 500) |
| 555 | (sit-for 0.01) | 555 | (sit-for 0.01) |
| 556 | (progress-reporter-update progress-reporter k)) | 556 | (progress-reporter-update progress-reporter k)) |
| 557 | (progress-reporter-done progress-reporter)) | 557 | (progress-reporter-done progress-reporter)) |
| 558 | @end example | 558 | @end smallexample |
| 559 | 559 | ||
| 560 | @defun make-progress-reporter message min-value max-value &optional current-value min-change min-time | 560 | @defun make-progress-reporter message min-value max-value &optional current-value min-change min-time |
| 561 | This function creates and returns a @dfn{progress reporter}---an | 561 | This function creates and returns a @dfn{progress reporter}---an |
| @@ -1296,8 +1296,8 @@ A cons cell of the form @code{(foreground-color . @var{color-name})} or | |||
| 1296 | @code{(background-color . @var{color-name})}. These elements specify | 1296 | @code{(background-color . @var{color-name})}. These elements specify |
| 1297 | just the foreground color or just the background color. | 1297 | just the foreground color or just the background color. |
| 1298 | 1298 | ||
| 1299 | @code{(foreground-color . @var{color-name})} is equivalent to | 1299 | @code{(foreground-color . @var{color-name})} has the same effect as |
| 1300 | @code{(:foreground @var{color-name})}, and likewise for the background. | 1300 | @code{(:foreground @var{color-name})}; likewise for the background. |
| 1301 | @end itemize | 1301 | @end itemize |
| 1302 | 1302 | ||
| 1303 | @item mouse-face | 1303 | @item mouse-face |
| @@ -2757,10 +2757,9 @@ For instance, this changes the default fontset to use a font of which | |||
| 2757 | registry name is @samp{JISX0208.1983} for all characters belonging to | 2757 | registry name is @samp{JISX0208.1983} for all characters belonging to |
| 2758 | the charset @code{japanese-jisx0208}. | 2758 | the charset @code{japanese-jisx0208}. |
| 2759 | 2759 | ||
| 2760 | @example | 2760 | @smallexample |
| 2761 | (set-fontset-font nil 'japanese-jisx0208 '(nil . "JISX0208.1983")) | 2761 | (set-fontset-font nil 'japanese-jisx0208 '(nil . "JISX0208.1983")) |
| 2762 | @end example | 2762 | @end smallexample |
| 2763 | |||
| 2764 | @end defun | 2763 | @end defun |
| 2765 | 2764 | ||
| 2766 | @defun char-displayable-p char | 2765 | @defun char-displayable-p char |
| @@ -3137,7 +3136,7 @@ single unit. By contrast, characters that have similar but distinct | |||
| 3137 | Lisp objects as their @code{display} properties are handled | 3136 | Lisp objects as their @code{display} properties are handled |
| 3138 | separately. Here's a function that illustrates this point: | 3137 | separately. Here's a function that illustrates this point: |
| 3139 | 3138 | ||
| 3140 | @example | 3139 | @smallexample |
| 3141 | (defun foo () | 3140 | (defun foo () |
| 3142 | (goto-char (point-min)) | 3141 | (goto-char (point-min)) |
| 3143 | (dotimes (i 5) | 3142 | (dotimes (i 5) |
| @@ -3146,7 +3145,7 @@ separately. Here's a function that illustrates this point: | |||
| 3146 | (forward-char 1) | 3145 | (forward-char 1) |
| 3147 | (put-text-property (point) (1+ (point)) 'display string) | 3146 | (put-text-property (point) (1+ (point)) 'display string) |
| 3148 | (forward-char 1)))) | 3147 | (forward-char 1)))) |
| 3149 | @end example | 3148 | @end smallexample |
| 3150 | 3149 | ||
| 3151 | @noindent | 3150 | @noindent |
| 3152 | It gives each of the first ten characters in the buffer string | 3151 | It gives each of the first ten characters in the buffer string |
| @@ -3158,7 +3157,7 @@ Likewise for each following pair of characters. Thus, the ten | |||
| 3158 | characters appear as five A's. This function would have the same | 3157 | characters appear as five A's. This function would have the same |
| 3159 | results: | 3158 | results: |
| 3160 | 3159 | ||
| 3161 | @example | 3160 | @smallexample |
| 3162 | (defun foo () | 3161 | (defun foo () |
| 3163 | (goto-char (point-min)) | 3162 | (goto-char (point-min)) |
| 3164 | (dotimes (i 5) | 3163 | (dotimes (i 5) |
| @@ -3166,7 +3165,7 @@ results: | |||
| 3166 | (put-text-property (point) (2+ (point)) 'display string) | 3165 | (put-text-property (point) (2+ (point)) 'display string) |
| 3167 | (put-text-property (point) (1+ (point)) 'display string) | 3166 | (put-text-property (point) (1+ (point)) 'display string) |
| 3168 | (forward-char 2)))) | 3167 | (forward-char 2)))) |
| 3169 | @end example | 3168 | @end smallexample |
| 3170 | 3169 | ||
| 3171 | @noindent | 3170 | @noindent |
| 3172 | This illustrates that what matters is the property value for | 3171 | This illustrates that what matters is the property value for |
| @@ -3262,18 +3261,20 @@ as an absolute number of pixels. | |||
| 3262 | 3261 | ||
| 3263 | The following expressions are supported: | 3262 | The following expressions are supported: |
| 3264 | 3263 | ||
| 3265 | @example | 3264 | @smallexample |
| 3266 | @group | 3265 | @group |
| 3267 | @var{expr} ::= @var{num} | (@var{num}) | @var{unit} | @var{elem} | @var{pos} | @var{image} | @var{form} | 3266 | @var{expr} ::= @var{num} | (@var{num}) | @var{unit} | @var{elem} | @var{pos} | @var{image} | @var{form} |
| 3268 | @var{num} ::= @var{integer} | @var{float} | @var{symbol} | 3267 | @var{num} ::= @var{integer} | @var{float} | @var{symbol} |
| 3269 | @var{unit} ::= in | mm | cm | width | height | 3268 | @var{unit} ::= in | mm | cm | width | height |
| 3269 | @end group | ||
| 3270 | @group | ||
| 3270 | @var{elem} ::= left-fringe | right-fringe | left-margin | right-margin | 3271 | @var{elem} ::= left-fringe | right-fringe | left-margin | right-margin |
| 3271 | | scroll-bar | text | 3272 | | scroll-bar | text |
| 3272 | @var{pos} ::= left | center | right | 3273 | @var{pos} ::= left | center | right |
| 3273 | @var{form} ::= (@var{num} . @var{expr}) | (@var{op} @var{expr} ...) | 3274 | @var{form} ::= (@var{num} . @var{expr}) | (@var{op} @var{expr} ...) |
| 3274 | @var{op} ::= + | - | 3275 | @var{op} ::= + | - |
| 3275 | @end group | 3276 | @end group |
| 3276 | @end example | 3277 | @end smallexample |
| 3277 | 3278 | ||
| 3278 | The form @var{num} specifies a fraction of the default frame font | 3279 | The form @var{num} specifies a fraction of the default frame font |
| 3279 | height or width. The form @code{(@var{num})} specifies an absolute | 3280 | height or width. The form @code{(@var{num})} specifies an absolute |
| @@ -3331,7 +3332,7 @@ in the @code{display} text property. | |||
| 3331 | Display @var{string} instead of the text that has this property. | 3332 | Display @var{string} instead of the text that has this property. |
| 3332 | 3333 | ||
| 3333 | @item (image . @var{image-props}) | 3334 | @item (image . @var{image-props}) |
| 3334 | This display specification is an image descriptor (@pxref{Images}). | 3335 | This kind of display specification is an image descriptor (@pxref{Images}). |
| 3335 | When used as a display specification, it means to display the image | 3336 | When used as a display specification, it means to display the image |
| 3336 | instead of the text that has the display specification. | 3337 | instead of the text that has the display specification. |
| 3337 | 3338 | ||
diff --git a/lispref/edebug.texi b/lispref/edebug.texi index 6447fbe37c5..f074cf3dbd5 100644 --- a/lispref/edebug.texi +++ b/lispref/edebug.texi | |||
| @@ -330,7 +330,7 @@ program to stop. | |||
| 330 | Proceed to the stop point near where point is (@code{edebug-goto-here}). | 330 | Proceed to the stop point near where point is (@code{edebug-goto-here}). |
| 331 | 331 | ||
| 332 | @item f | 332 | @item f |
| 333 | Run the program forward over one expression | 333 | Run the program for one expression |
| 334 | (@code{edebug-forward-sexp}). | 334 | (@code{edebug-forward-sexp}). |
| 335 | 335 | ||
| 336 | @item o | 336 | @item o |
| @@ -462,9 +462,9 @@ point (@code{edebug-unset-breakpoint}). | |||
| 462 | 462 | ||
| 463 | @item x @var{condition} @key{RET} | 463 | @item x @var{condition} @key{RET} |
| 464 | Set a conditional breakpoint which stops the program only if | 464 | Set a conditional breakpoint which stops the program only if |
| 465 | @var{condition} evaluates to a non-@code{nil} value | 465 | evaluating @var{condition} produces a non-@code{nil} value |
| 466 | (@code{edebug-set-conditional-breakpoint}). With a prefix argument, the | 466 | (@code{edebug-set-conditional-breakpoint}). With a prefix argument, |
| 467 | breakpoint is temporary. | 467 | the breakpoint is temporary. |
| 468 | 468 | ||
| 469 | @item B | 469 | @item B |
| 470 | Move point to the next breakpoint in the current definition | 470 | Move point to the next breakpoint in the current definition |
| @@ -585,8 +585,8 @@ effect outside of Edebug. | |||
| 585 | 585 | ||
| 586 | @table @kbd | 586 | @table @kbd |
| 587 | @item v | 587 | @item v |
| 588 | View the outside window configuration (@code{edebug-view-outside}). | 588 | Switch to viewing the outside window configuration |
| 589 | Type @kbd{C-x X w} to return to Edebug. | 589 | (@code{edebug-view-outside}). Type @kbd{C-x X w} to return to Edebug. |
| 590 | 590 | ||
| 591 | @item p | 591 | @item p |
| 592 | Temporarily display the outside current buffer with point at its | 592 | Temporarily display the outside current buffer with point at its |
| @@ -1035,11 +1035,12 @@ saves (and later restores) these additional data: | |||
| 1035 | The current match data. @xref{Match Data}. | 1035 | The current match data. @xref{Match Data}. |
| 1036 | 1036 | ||
| 1037 | @item | 1037 | @item |
| 1038 | @code{last-command}, @code{this-command}, @code{last-command-char}, | 1038 | The variables @code{last-command}, @code{this-command}, |
| 1039 | @code{last-input-char}, @code{last-input-event}, | 1039 | @code{last-command-char}, @code{last-input-char}, |
| 1040 | @code{last-command-event}, @code{last-event-frame}, | 1040 | @code{last-input-event}, @code{last-command-event}, |
| 1041 | @code{last-nonmenu-event}, and @code{track-mouse}. Commands used within | 1041 | @code{last-event-frame}, @code{last-nonmenu-event}, and |
| 1042 | Edebug do not affect these variables outside of Edebug. | 1042 | @code{track-mouse}. Commands used within Edebug do not affect these |
| 1043 | variables outside of Edebug. | ||
| 1043 | 1044 | ||
| 1044 | The key sequence returned by @code{this-command-keys} is changed by | 1045 | The key sequence returned by @code{this-command-keys} is changed by |
| 1045 | executing commands within Edebug and there is no way to reset | 1046 | executing commands within Edebug and there is no way to reset |
| @@ -1099,13 +1100,13 @@ macro. To do this, add a @code{debug} declaration to the macro | |||
| 1099 | definition. Here is a simple example that shows the specification for | 1100 | definition. Here is a simple example that shows the specification for |
| 1100 | the @code{for} example macro (@pxref{Argument Evaluation}). | 1101 | the @code{for} example macro (@pxref{Argument Evaluation}). |
| 1101 | 1102 | ||
| 1102 | @example | 1103 | @smallexample |
| 1103 | (defmacro for (var from init to final do &rest body) | 1104 | (defmacro for (var from init to final do &rest body) |
| 1104 | "Execute a simple \"for\" loop. | 1105 | "Execute a simple \"for\" loop. |
| 1105 | For example, (for i from 1 to 10 do (print i))." | 1106 | For example, (for i from 1 to 10 do (print i))." |
| 1106 | (declare (debug (symbolp "from" form "to" form "do" &rest form))) | 1107 | (declare (debug (symbolp "from" form "to" form "do" &rest form))) |
| 1107 | ...) | 1108 | ...) |
| 1108 | @end example | 1109 | @end smallexample |
| 1109 | 1110 | ||
| 1110 | The Edebug specification says which parts of a call to the macro are | 1111 | The Edebug specification says which parts of a call to the macro are |
| 1111 | forms to be evaluated. For simple macros, the @var{specification} | 1112 | forms to be evaluated. For simple macros, the @var{specification} |
diff --git a/lispref/errors.texi b/lispref/errors.texi index 8591fb9a45f..a246539b8fd 100644 --- a/lispref/errors.texi +++ b/lispref/errors.texi | |||
| @@ -63,7 +63,7 @@ See @code{/} and @code{%} in @ref{Numbers}. | |||
| 63 | @xref{Function Indirection}. | 63 | @xref{Function Indirection}. |
| 64 | 64 | ||
| 65 | @item cyclic-variable-indirection | 65 | @item cyclic-variable-indirection |
| 66 | @code{"Symbol's chain of variable indirections contains a loop"}@* | 66 | @code{"Symbol's chain of variable indirections\@* contains a loop"}@* |
| 67 | @xref{Variable Aliases}. | 67 | @xref{Variable Aliases}. |
| 68 | 68 | ||
| 69 | @item end-of-buffer | 69 | @item end-of-buffer |
diff --git a/lispref/files.texi b/lispref/files.texi index 766220aa882..93c104e6ccd 100644 --- a/lispref/files.texi +++ b/lispref/files.texi | |||
| @@ -98,9 +98,9 @@ new buffer and reading the file into it. It also returns that buffer. | |||
| 98 | Aside from some technical details, the body of the @code{find-file} | 98 | Aside from some technical details, the body of the @code{find-file} |
| 99 | function is basically equivalent to: | 99 | function is basically equivalent to: |
| 100 | 100 | ||
| 101 | @example | 101 | @smallexample |
| 102 | (switch-to-buffer (find-file-noselect filename nil nil wildcards)) | 102 | (switch-to-buffer (find-file-noselect filename nil nil wildcards)) |
| 103 | @end example | 103 | @end smallexample |
| 104 | 104 | ||
| 105 | @noindent | 105 | @noindent |
| 106 | (See @code{switch-to-buffer} in @ref{Displaying Buffers}.) | 106 | (See @code{switch-to-buffer} in @ref{Displaying Buffers}.) |
| @@ -2731,9 +2731,9 @@ This function tests whether @var{filename} is a remote file. If | |||
| 2731 | If @var{filename} is indeed remote, the return value is a string that | 2731 | If @var{filename} is indeed remote, the return value is a string that |
| 2732 | identifies the remote system. | 2732 | identifies the remote system. |
| 2733 | 2733 | ||
| 2734 | This identifier string may include a host name, a user name, and | 2734 | This identifier string can include a host name and a user name, as |
| 2735 | characters designating the method used to access the remote system. | 2735 | well as characters designating the method used to access the remote |
| 2736 | For example, the remote identifier string for the filename | 2736 | system. For example, the remote identifier string for the filename |
| 2737 | @code{/ssh:user@@host:/some/file} is @code{/ssh:user@@host:}. | 2737 | @code{/ssh:user@@host:/some/file} is @code{/ssh:user@@host:}. |
| 2738 | 2738 | ||
| 2739 | If @code{file-remote-p} returns the same identifier for two different | 2739 | If @code{file-remote-p} returns the same identifier for two different |
diff --git a/lispref/frames.texi b/lispref/frames.texi index ffcc16f6289..10035b76f9f 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1550,13 +1550,13 @@ clients. It takes two optional arguments, @var{type} and | |||
| 1550 | The @var{data-type} argument specifies the form of data conversion to | 1550 | The @var{data-type} argument specifies the form of data conversion to |
| 1551 | use, to convert the raw data obtained from another X client into Lisp | 1551 | use, to convert the raw data obtained from another X client into Lisp |
| 1552 | data. Meaningful values include @code{TEXT}, @code{STRING}, | 1552 | data. Meaningful values include @code{TEXT}, @code{STRING}, |
| 1553 | @code{UTF8_STRING}, | 1553 | @code{UTF8_STRING}, @code{TARGETS}, @code{LENGTH}, @code{DELETE}, |
| 1554 | @code{TARGETS}, @code{LENGTH}, @code{DELETE}, @code{FILE_NAME}, | 1554 | @code{FILE_NAME}, @code{CHARACTER_POSITION}, @code{NAME}, |
| 1555 | @code{CHARACTER_POSITION}, @code{LINE_NUMBER}, @code{COLUMN_NUMBER}, | 1555 | @code{LINE_NUMBER}, @code{COLUMN_NUMBER}, @code{OWNER_OS}, |
| 1556 | @code{OWNER_OS}, @code{HOST_NAME}, @code{USER}, @code{CLASS}, | 1556 | @code{HOST_NAME}, @code{USER}, @code{CLASS}, @code{ATOM}, and |
| 1557 | @code{NAME}, @code{ATOM}, and @code{INTEGER}. (These are symbols with | 1557 | @code{INTEGER}. (These are symbols with upper-case names in accord |
| 1558 | upper-case names in accord with X conventions.) The default for | 1558 | with X conventions.) The default for @var{data-type} is |
| 1559 | @var{data-type} is @code{STRING}. | 1559 | @code{STRING}. |
| 1560 | @end defun | 1560 | @end defun |
| 1561 | 1561 | ||
| 1562 | @cindex cut buffer | 1562 | @cindex cut buffer |
| @@ -1822,8 +1822,8 @@ xterm.vt100.background: yellow | |||
| 1822 | @end example | 1822 | @end example |
| 1823 | 1823 | ||
| 1824 | @noindent | 1824 | @noindent |
| 1825 | in in your X resources file (usually named @file{~/.Xdefaults} or | 1825 | in in your X resources file (whose name is usually @file{~/.Xdefaults} |
| 1826 | @file{~/.Xresources}). Then: | 1826 | or @file{~/.Xresources}). Then: |
| 1827 | 1827 | ||
| 1828 | @example | 1828 | @example |
| 1829 | @group | 1829 | @group |
diff --git a/lispref/functions.texi b/lispref/functions.texi index 409f0125ad8..f58cad69bb7 100644 --- a/lispref/functions.texi +++ b/lispref/functions.texi | |||
| @@ -525,9 +525,9 @@ defines the symbol @var{name} as a function that looks like this: | |||
| 525 | @var{name}. It returns the value @var{name}, but usually we ignore this | 525 | @var{name}. It returns the value @var{name}, but usually we ignore this |
| 526 | value. | 526 | value. |
| 527 | 527 | ||
| 528 | As described previously (@pxref{Lambda Expressions}), | 528 | As described previously, @var{argument-list} is a list of argument |
| 529 | @var{argument-list} is a list of argument names and may include the | 529 | names and may include the keywords @code{&optional} and @code{&rest} |
| 530 | keywords @code{&optional} and @code{&rest}. Also, the first two of the | 530 | (@pxref{Lambda Expressions}). Also, the first two of the |
| 531 | @var{body-forms} may be a documentation string and an interactive | 531 | @var{body-forms} may be a documentation string and an interactive |
| 532 | declaration. | 532 | declaration. |
| 533 | 533 | ||
| @@ -1174,20 +1174,13 @@ You can define a function as an alias and declare it obsolete at the | |||
| 1174 | same time using the macro @code{define-obsolete-function-alias}. | 1174 | same time using the macro @code{define-obsolete-function-alias}. |
| 1175 | 1175 | ||
| 1176 | @defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring | 1176 | @defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring |
| 1177 | This macro marks the function @var{obsolete-name} obsolete and also defines | 1177 | This macro marks the function @var{obsolete-name} obsolete and also |
| 1178 | it as an alias for the function @var{current-name}. A typical call has the | 1178 | defines it as an alias for the function @var{current-name}. It is |
| 1179 | form: | 1179 | equivalent to the following: |
| 1180 | 1180 | ||
| 1181 | @example | 1181 | @example |
| 1182 | (define-obsolete-function-alias 'old-fun 'new-fun "22.1" "Doc.") | 1182 | (defalias @var{obsolete-name} @var{current-name} @var{docstring}) |
| 1183 | @end example | 1183 | (make-obsolete @var{obsolete-name} @var{current-name} @var{when}) |
| 1184 | |||
| 1185 | @noindent | ||
| 1186 | which is equivalent to the following two lines of code: | ||
| 1187 | |||
| 1188 | @example | ||
| 1189 | (defalias 'old-fun 'new-fun "Doc.") | ||
| 1190 | (make-obsolete 'old-fun 'new-fun "22.1") | ||
| 1191 | @end example | 1184 | @end example |
| 1192 | @end defmac | 1185 | @end defmac |
| 1193 | 1186 | ||
diff --git a/lispref/help.texi b/lispref/help.texi index ec6dff13666..2dbea2038cc 100644 --- a/lispref/help.texi +++ b/lispref/help.texi | |||
| @@ -119,7 +119,7 @@ retrieves the text from a file if the value calls for that. If the | |||
| 119 | property value isn't @code{nil}, isn't a string, and doesn't refer to | 119 | property value isn't @code{nil}, isn't a string, and doesn't refer to |
| 120 | text in a file, then it is evaluated to obtain a string. | 120 | text in a file, then it is evaluated to obtain a string. |
| 121 | 121 | ||
| 122 | Finally, @code{documentation-property} passes the string through | 122 | The last thing this function does is pass the string through |
| 123 | @code{substitute-command-keys} to substitute actual key bindings, | 123 | @code{substitute-command-keys} to substitute actual key bindings, |
| 124 | unless @var{verbatim} is non-@code{nil}. | 124 | unless @var{verbatim} is non-@code{nil}. |
| 125 | 125 | ||
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi index 63832ced1b4..79cbe478ea2 100644 --- a/lispref/keymaps.texi +++ b/lispref/keymaps.texi | |||
| @@ -1335,10 +1335,10 @@ a key binding. | |||
| 1335 | instead of @code{kill-line} and @code{kill-word}. It can establish | 1335 | instead of @code{kill-line} and @code{kill-word}. It can establish |
| 1336 | this by making these two command-remapping bindings in its keymap: | 1336 | this by making these two command-remapping bindings in its keymap: |
| 1337 | 1337 | ||
| 1338 | @example | 1338 | @smallexample |
| 1339 | (define-key my-mode-map [remap kill-line] 'my-kill-line) | 1339 | (define-key my-mode-map [remap kill-line] 'my-kill-line) |
| 1340 | (define-key my-mode-map [remap kill-word] 'my-kill-word) | 1340 | (define-key my-mode-map [remap kill-word] 'my-kill-word) |
| 1341 | @end example | 1341 | @end smallexample |
| 1342 | 1342 | ||
| 1343 | Whenever @code{my-mode-map} is an active keymap, if the user types | 1343 | Whenever @code{my-mode-map} is an active keymap, if the user types |
| 1344 | @kbd{C-k}, Emacs will find the standard global binding of | 1344 | @kbd{C-k}, Emacs will find the standard global binding of |
| @@ -1349,10 +1349,10 @@ so instead of running @code{kill-line}, Emacs runs | |||
| 1349 | 1349 | ||
| 1350 | Remapping only works through a single level. In other words, | 1350 | Remapping only works through a single level. In other words, |
| 1351 | 1351 | ||
| 1352 | @example | 1352 | @smallexample |
| 1353 | (define-key my-mode-map [remap kill-line] 'my-kill-line) | 1353 | (define-key my-mode-map [remap kill-line] 'my-kill-line) |
| 1354 | (define-key my-mode-map [remap my-kill-line] 'my-other-kill-line) | 1354 | (define-key my-mode-map [remap my-kill-line] 'my-other-kill-line) |
| 1355 | @end example | 1355 | @end smallexample |
| 1356 | 1356 | ||
| 1357 | @noindent | 1357 | @noindent |
| 1358 | does not have the effect of remapping @code{kill-line} into | 1358 | does not have the effect of remapping @code{kill-line} into |
diff --git a/lispref/modes.texi b/lispref/modes.texi index 2366fca5b96..ac13e30b90c 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -395,7 +395,7 @@ setting up a buffer-local value for the variable | |||
| 395 | @item | 395 | @item |
| 396 | The mode should specify how Imenu should find the definitions or | 396 | The mode should specify how Imenu should find the definitions or |
| 397 | sections of a buffer, by setting up a buffer-local value for the | 397 | sections of a buffer, by setting up a buffer-local value for the |
| 398 | variable @code{imenu-generic-expression}, for the pair of variables | 398 | variable @code{imenu-generic-expression}, for the two variables |
| 399 | @code{imenu-prev-index-position-function} and | 399 | @code{imenu-prev-index-position-function} and |
| 400 | @code{imenu-extract-index-name-function}, or for the variable | 400 | @code{imenu-extract-index-name-function}, or for the variable |
| 401 | @code{imenu-create-index-function} (@pxref{Imenu}). | 401 | @code{imenu-create-index-function} (@pxref{Imenu}). |
| @@ -2290,8 +2290,8 @@ A nested sub-alist element looks like this: | |||
| 2290 | It creates the submenu @var{menu-title} specified by @var{sub-alist}. | 2290 | It creates the submenu @var{menu-title} specified by @var{sub-alist}. |
| 2291 | 2291 | ||
| 2292 | The default value of @code{imenu-create-index-function} is | 2292 | The default value of @code{imenu-create-index-function} is |
| 2293 | @code{imenu-default-create-index-function}. This function uses | 2293 | @code{imenu-default-create-index-function}. This function calls the |
| 2294 | @code{imenu-prev-index-position-function} and | 2294 | value of @code{imenu-prev-index-position-function} and the value of |
| 2295 | @code{imenu-extract-index-name-function} to produce the index alist. | 2295 | @code{imenu-extract-index-name-function} to produce the index alist. |
| 2296 | However, if either of these two variables is @code{nil}, the default | 2296 | However, if either of these two variables is @code{nil}, the default |
| 2297 | function uses @code{imenu-generic-expression} instead. | 2297 | function uses @code{imenu-generic-expression} instead. |
| @@ -2456,7 +2456,7 @@ highlighted (instead of the entire text that @var{matcher} matched). | |||
| 2456 | @end example | 2456 | @end example |
| 2457 | 2457 | ||
| 2458 | If you use @code{regexp-opt} to produce the regular expression | 2458 | If you use @code{regexp-opt} to produce the regular expression |
| 2459 | @var{matcher}, then you can use @code{regexp-opt-depth} (@pxref{Regexp | 2459 | @var{matcher}, you can use @code{regexp-opt-depth} (@pxref{Regexp |
| 2460 | Functions}) to calculate the value for @var{subexp}. | 2460 | Functions}) to calculate the value for @var{subexp}. |
| 2461 | 2461 | ||
| 2462 | @item (@var{matcher} . @var{facespec}) | 2462 | @item (@var{matcher} . @var{facespec}) |
| @@ -2657,8 +2657,7 @@ non-@code{nil} value, they are added at the end of | |||
| 2657 | Some modes provide specialized support you can use in additional | 2657 | Some modes provide specialized support you can use in additional |
| 2658 | highlighting patterns. See the variables | 2658 | highlighting patterns. See the variables |
| 2659 | @code{c-font-lock-extra-types}, @code{c++-font-lock-extra-types}, | 2659 | @code{c-font-lock-extra-types}, @code{c++-font-lock-extra-types}, |
| 2660 | @code{objc-font-lock-extra-types} and | 2660 | and @code{java-font-lock-extra-types}, for example. |
| 2661 | @code{java-font-lock-extra-types}, for example. | ||
| 2662 | 2661 | ||
| 2663 | @strong{Warning:} major mode functions must not call | 2662 | @strong{Warning:} major mode functions must not call |
| 2664 | @code{font-lock-add-keywords} under any circumstances, either directly | 2663 | @code{font-lock-add-keywords} under any circumstances, either directly |
diff --git a/lispref/nonascii.texi b/lispref/nonascii.texi index aaa23e90a48..9683156541d 100644 --- a/lispref/nonascii.texi +++ b/lispref/nonascii.texi | |||
| @@ -1067,11 +1067,11 @@ for decoding (in case @var{operation} does decoding), and | |||
| 1067 | @var{encoding-system} is the coding system for encoding (in case | 1067 | @var{encoding-system} is the coding system for encoding (in case |
| 1068 | @var{operation} does encoding). | 1068 | @var{operation} does encoding). |
| 1069 | 1069 | ||
| 1070 | The argument @var{operation} should be a symbol, one of | 1070 | The argument @var{operation} should be a symbol, any one of |
| 1071 | @code{insert-file-contents}, @code{write-region}, @code{call-process}, | 1071 | @code{insert-file-contents}, @code{write-region}, |
| 1072 | @code{call-process-region}, @code{start-process}, or | 1072 | @code{start-process}, @code{call-process}, @code{call-process-region}, |
| 1073 | @code{open-network-stream}. These are the names of the Emacs I/O primitives | 1073 | or @code{open-network-stream}. These are the names of the Emacs I/O |
| 1074 | that can do coding system conversion. | 1074 | primitives that can do coding system conversion. |
| 1075 | 1075 | ||
| 1076 | The remaining arguments should be the same arguments that might be given | 1076 | The remaining arguments should be the same arguments that might be given |
| 1077 | to that I/O primitive. Depending on the primitive, one of those | 1077 | to that I/O primitive. Depending on the primitive, one of those |
| @@ -1081,9 +1081,9 @@ name is the target. For subprocess primitives, the process name is the | |||
| 1081 | target. For @code{open-network-stream}, the target is the service name | 1081 | target. For @code{open-network-stream}, the target is the service name |
| 1082 | or port number. | 1082 | or port number. |
| 1083 | 1083 | ||
| 1084 | This function looks up the target in @code{file-coding-system-alist}, | 1084 | Depending on @var{operation}, this function looks up the target in |
| 1085 | @code{process-coding-system-alist}, or | 1085 | @code{file-coding-system-alist}, @code{process-coding-system-alist}, |
| 1086 | @code{network-coding-system-alist}, depending on @var{operation}. | 1086 | or @code{network-coding-system-alist}. |
| 1087 | @end defun | 1087 | @end defun |
| 1088 | 1088 | ||
| 1089 | @node Specifying Coding Systems | 1089 | @node Specifying Coding Systems |
diff --git a/lispref/os.texi b/lispref/os.texi index e0c032f3e95..7bc76799210 100644 --- a/lispref/os.texi +++ b/lispref/os.texi | |||
| @@ -91,10 +91,10 @@ name is usually @file{site-start.el}. | |||
| 91 | @cindex @file{site-start.el} | 91 | @cindex @file{site-start.el} |
| 92 | 92 | ||
| 93 | @item | 93 | @item |
| 94 | It loads your init file (usually @file{~/.emacs}), unless @samp{-q} | 94 | It loads your init file (usually @file{~/.emacs}), unless the option |
| 95 | (or @samp{--no-init-file}), @samp{-Q}, or @samp{--batch} was specified | 95 | @samp{-q} (or @samp{--no-init-file}), @samp{-Q}, or @samp{--batch} was |
| 96 | on the command line. The @samp{-u} option can specify another user | 96 | specified on the command line. The @samp{-u} option can specify |
| 97 | whose home directory should be used instead of @file{~}. | 97 | another user whose home directory should be used instead of @file{~}. |
| 98 | 98 | ||
| 99 | @item | 99 | @item |
| 100 | It loads the library @file{default} (if any), unless | 100 | It loads the library @file{default} (if any), unless |
| @@ -606,9 +606,10 @@ through various functions. These variables include the name of the | |||
| 606 | system, the user's @acronym{UID}, and so on. | 606 | system, the user's @acronym{UID}, and so on. |
| 607 | 607 | ||
| 608 | @defvar system-configuration | 608 | @defvar system-configuration |
| 609 | This variable holds the GNU configuration name for the hardware/software | 609 | This variable holds the standard GNU configuration name for the |
| 610 | configuration of your system, as a string. The convenient way to test | 610 | hardware/software configuration of your system, as a string. The |
| 611 | parts of this string is with @code{string-match}. | 611 | convenient way to test parts of this string is with |
| 612 | @code{string-match}. | ||
| 612 | @end defvar | 613 | @end defvar |
| 613 | 614 | ||
| 614 | @defvar system-type | 615 | @defvar system-type |
diff --git a/lispref/processes.texi b/lispref/processes.texi index cdefa256fcd..f88b2c46159 100644 --- a/lispref/processes.texi +++ b/lispref/processes.texi | |||
| @@ -169,7 +169,7 @@ function. | |||
| 169 | (shell-quote-argument "foo > bar") | 169 | (shell-quote-argument "foo > bar") |
| 170 | @result{} "foo\\ \\>\\ bar" | 170 | @result{} "foo\\ \\>\\ bar" |
| 171 | 171 | ||
| 172 | ;; @r{This example shows the behavior on MS-DOS and MS-Windows systems.} | 172 | ;; @r{This example shows the behavior on MS-DOS and MS-Windows.} |
| 173 | (shell-quote-argument "foo > bar") | 173 | (shell-quote-argument "foo > bar") |
| 174 | @result{} "\"foo > bar\"" | 174 | @result{} "\"foo > bar\"" |
| 175 | @end example | 175 | @end example |
| @@ -2277,13 +2277,16 @@ is COOKIES without the directory part." | |||
| 2277 | (buffer-string)))) | 2277 | (buffer-string)))) |
| 2278 | (sel (random (bindat-get-field info :count))) | 2278 | (sel (random (bindat-get-field info :count))) |
| 2279 | (beg (cdar (bindat-get-field info :offset sel))) | 2279 | (beg (cdar (bindat-get-field info :offset sel))) |
| 2280 | (end (or (cdar (bindat-get-field info :offset (1+ sel))) | 2280 | (end (or (cdar (bindat-get-field info |
| 2281 | :offset (1+ sel))) | ||
| 2281 | (nth 7 (file-attributes cookies))))) | 2282 | (nth 7 (file-attributes cookies))))) |
| 2282 | (switch-to-buffer (get-buffer-create | 2283 | (switch-to-buffer |
| 2283 | (format "*Fortune Cookie: %s*" | 2284 | (get-buffer-create |
| 2284 | (file-name-nondirectory cookies)))) | 2285 | (format "*Fortune Cookie: %s*" |
| 2286 | (file-name-nondirectory cookies)))) | ||
| 2285 | (erase-buffer) | 2287 | (erase-buffer) |
| 2286 | (insert-file-contents-literally cookies nil beg (- end 3)))) | 2288 | (insert-file-contents-literally |
| 2289 | cookies nil beg (- end 3)))) | ||
| 2287 | 2290 | ||
| 2288 | (defun fcookie-create-index (cookies &optional index delim) | 2291 | (defun fcookie-create-index (cookies &optional index delim) |
| 2289 | "Scan file COOKIES, and write out its index file. | 2292 | "Scan file COOKIES, and write out its index file. |
| @@ -2311,18 +2314,19 @@ COOKIES, indicates the border between entries." | |||
| 2311 | offsets (cons (1- p) offsets)))) | 2314 | offsets (cons (1- p) offsets)))) |
| 2312 | (with-temp-buffer | 2315 | (with-temp-buffer |
| 2313 | (set-buffer-multibyte nil) | 2316 | (set-buffer-multibyte nil) |
| 2314 | (insert (string-make-unibyte | 2317 | (insert |
| 2315 | (bindat-pack | 2318 | (string-make-unibyte |
| 2316 | fcookie-index-spec | 2319 | (bindat-pack |
| 2317 | `((:version . 2) | 2320 | fcookie-index-spec |
| 2318 | (:count . ,count) | 2321 | `((:version . 2) |
| 2319 | (:longest . ,max) | 2322 | (:count . ,count) |
| 2320 | (:shortest . ,min) | 2323 | (:longest . ,max) |
| 2321 | (:flags . 0) | 2324 | (:shortest . ,min) |
| 2322 | (:delim . ,delim) | 2325 | (:flags . 0) |
| 2323 | (:offset . ,(mapcar (lambda (o) | 2326 | (:delim . ,delim) |
| 2324 | (list (cons :foo o))) | 2327 | (:offset . ,(mapcar (lambda (o) |
| 2325 | (nreverse offsets))))))) | 2328 | (list (cons :foo o))) |
| 2329 | (nreverse offsets))))))) | ||
| 2326 | (let ((coding-system-for-write 'raw-text-unix)) | 2330 | (let ((coding-system-for-write 'raw-text-unix)) |
| 2327 | (write-file (or index (concat cookies ".dat"))))))) | 2331 | (write-file (or index (concat cookies ".dat"))))))) |
| 2328 | @end lisp | 2332 | @end lisp |
| @@ -2392,7 +2396,7 @@ A binary data representation: | |||
| 2392 | The corresponding decoded structure: | 2396 | The corresponding decoded structure: |
| 2393 | 2397 | ||
| 2394 | @lisp | 2398 | @lisp |
| 2395 | (setq decoded-structure (bindat-unpack packet-spec binary-data)) | 2399 | (setq decoded (bindat-unpack packet-spec binary-data)) |
| 2396 | @result{} | 2400 | @result{} |
| 2397 | ((header | 2401 | ((header |
| 2398 | (dest-ip . [192 168 1 100]) | 2402 | (dest-ip . [192 168 1 100]) |
| @@ -2415,7 +2419,7 @@ The corresponding decoded structure: | |||
| 2415 | Fetching data from this structure: | 2419 | Fetching data from this structure: |
| 2416 | 2420 | ||
| 2417 | @lisp | 2421 | @lisp |
| 2418 | (bindat-get-field decoded-structure 'item 1 'id) | 2422 | (bindat-get-field decoded 'item 1 'id) |
| 2419 | @result{} "BCDEFG" | 2423 | @result{} "BCDEFG" |
| 2420 | @end lisp | 2424 | @end lisp |
| 2421 | 2425 | ||
diff --git a/lispref/searching.texi b/lispref/searching.texi index 38a0f4915d7..f2f21458506 100644 --- a/lispref/searching.texi +++ b/lispref/searching.texi | |||
| @@ -244,16 +244,15 @@ first tries to match all three @samp{a}s; but the rest of the pattern is | |||
| 244 | The next alternative is for @samp{a*} to match only two @samp{a}s. With | 244 | The next alternative is for @samp{a*} to match only two @samp{a}s. With |
| 245 | this choice, the rest of the regexp matches successfully.@refill | 245 | this choice, the rest of the regexp matches successfully.@refill |
| 246 | 246 | ||
| 247 | Nested repetition operators can be extremely slow or loop infinitely | 247 | Nested repetition operators take a long time, or even forever, if they |
| 248 | if they use repetition operators inside repetition operators. For | 248 | lead to ambiguous matching. For example, trying to match the regular |
| 249 | example, it could take hours for the regular expression | 249 | expression @samp{\(x+y*\)*a} against the string |
| 250 | @samp{\(x+y*\)*a} to try to match the sequence | 250 | @samp{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz} could take hours before it |
| 251 | @samp{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz}, before it ultimately | 251 | ultimately fails. Emacs must try each way of grouping the 35 |
| 252 | fails. Emacs must try each way of grouping the 35 @samp{x}s before | 252 | @samp{x}s before concluding that none of them can work. Even worse, |
| 253 | concluding that none of them can work. Even worse, @samp{\(x*\)*} can | 253 | @samp{\(x*\)*} can match the null string in infinitely many ways, so |
| 254 | match the null string in infinitely many ways, so it causes an | 254 | it causes an infinite loop. To avoid these problems, check nested |
| 255 | infinite loop. To avoid these problems, check nested repetitions | 255 | repetitions carefully. |
| 256 | carefully. | ||
| 257 | 256 | ||
| 258 | @item @samp{+} | 257 | @item @samp{+} |
| 259 | @cindex @samp{+} in regexp | 258 | @cindex @samp{+} in regexp |
| @@ -347,9 +346,10 @@ different characters. | |||
| 347 | 346 | ||
| 348 | @item @samp{[^ @dots{} ]} | 347 | @item @samp{[^ @dots{} ]} |
| 349 | @cindex @samp{^} in regexp | 348 | @cindex @samp{^} in regexp |
| 350 | @samp{[^} begins a @dfn{complemented character alternative}, which matches any | 349 | @samp{[^} begins a @dfn{complemented character alternative}. This |
| 351 | character except the ones specified. Thus, @samp{[^a-z0-9A-Z]} matches | 350 | matches any character except the ones specified. Thus, |
| 352 | all characters @emph{except} letters and digits. | 351 | @samp{[^a-z0-9A-Z]} matches all characters @emph{except} letters and |
| 352 | digits. | ||
| 353 | 353 | ||
| 354 | @samp{^} is not special in a character alternative unless it is the first | 354 | @samp{^} is not special in a character alternative unless it is the first |
| 355 | character. The character following the @samp{^} is treated as if it | 355 | character. The character following the @samp{^} is treated as if it |
diff --git a/lispref/strings.texi b/lispref/strings.texi index b70e8d9f9d4..d0504684f82 100644 --- a/lispref/strings.texi +++ b/lispref/strings.texi | |||
| @@ -298,7 +298,8 @@ useful. If you need such a result, use an explicit value for | |||
| 298 | @var{separators}: | 298 | @var{separators}: |
| 299 | 299 | ||
| 300 | @example | 300 | @example |
| 301 | (split-string " two words " split-string-default-separators) | 301 | (split-string " two words " |
| 302 | split-string-default-separators) | ||
| 302 | @result{} ("" "two" "words" "") | 303 | @result{} ("" "two" "words" "") |
| 303 | @end example | 304 | @end example |
| 304 | 305 | ||
| @@ -353,8 +354,8 @@ practice: | |||
| 353 | @end defun | 354 | @end defun |
| 354 | 355 | ||
| 355 | @defvar split-string-default-separators | 356 | @defvar split-string-default-separators |
| 356 | The default value of @var{separators} for @code{split-string}, initially | 357 | The default value of @var{separators} for @code{split-string}. Its |
| 357 | @w{@samp{"[ \f\t\n\r\v]+"}}. | 358 | usual value is @w{@samp{"[ \f\t\n\r\v]+"}}. |
| 358 | @end defvar | 359 | @end defvar |
| 359 | 360 | ||
| 360 | @node Modifying Strings | 361 | @node Modifying Strings |
diff --git a/lispref/text.texi b/lispref/text.texi index cddeeb8fbde..5a4d743ab75 100644 --- a/lispref/text.texi +++ b/lispref/text.texi | |||
| @@ -1497,10 +1497,10 @@ of justification. It can be @code{left}, @code{right}, @code{full}, | |||
| 1497 | follow specified justification style (see @code{current-justification}, | 1497 | follow specified justification style (see @code{current-justification}, |
| 1498 | below). @code{nil} means to do full justification. | 1498 | below). @code{nil} means to do full justification. |
| 1499 | 1499 | ||
| 1500 | If @var{eop} is non-@code{nil}, that means do left-justification if | 1500 | If @var{eop} is non-@code{nil}, that means do only left-justification |
| 1501 | @code{current-justification} specifies full justification. This is used | 1501 | if @code{current-justification} specifies full justification. This is |
| 1502 | for the last line of a paragraph; even if the paragraph as a whole is | 1502 | used for the last line of a paragraph; even if the paragraph as a |
| 1503 | fully justified, the last line should not be. | 1503 | whole is fully justified, the last line should not be. |
| 1504 | 1504 | ||
| 1505 | If @var{nosqueeze} is non-@code{nil}, that means do not change interior | 1505 | If @var{nosqueeze} is non-@code{nil}, that means do not change interior |
| 1506 | whitespace. | 1506 | whitespace. |
| @@ -1727,12 +1727,11 @@ Adaptive Fill mode matches this regular expression against the text | |||
| 1727 | starting after the left margin whitespace (if any) on a line; the | 1727 | starting after the left margin whitespace (if any) on a line; the |
| 1728 | characters it matches are that line's candidate for the fill prefix. | 1728 | characters it matches are that line's candidate for the fill prefix. |
| 1729 | 1729 | ||
| 1730 | The default value of this variable is | 1730 | @w{@samp{"[ \t]*\\([-|#;>*]+[ \t]*\\|(?[0-9]+[.)][ \t]*\\)*"}} is the |
| 1731 | @w{@samp{"[ \t]*\\([-|#;>*]+[ \t]*\\|(?[0-9]+[.)][ \t]*\\)*"}}. This | 1731 | default value. This matches a number enclosed in parentheses or |
| 1732 | matches a number enclosed in parentheses or followed by a period, | 1732 | followed by a period, or certain punctuation characters, or any |
| 1733 | or certain punctuation characters, or any sequence of these | 1733 | sequence of these intermingled with whitespace. In particular, it |
| 1734 | intermingled with whitespace. In particular, it matches a sequence of | 1734 | matches a sequence of whitespace, possibly empty. |
| 1735 | whitespace, possibly empty. | ||
| 1736 | @end defopt | 1735 | @end defopt |
| 1737 | 1736 | ||
| 1738 | @defopt adaptive-fill-first-line-regexp | 1737 | @defopt adaptive-fill-first-line-regexp |
| @@ -2969,7 +2968,8 @@ A cons cell of the form @code{(foreground-color . @var{color-name})} or | |||
| 2969 | just the foreground color or just the background color. | 2968 | just the foreground color or just the background color. |
| 2970 | 2969 | ||
| 2971 | @code{(foreground-color . @var{color-name})} is equivalent to | 2970 | @code{(foreground-color . @var{color-name})} is equivalent to |
| 2972 | @code{(:foreground @var{color-name})}, and likewise for the background. | 2971 | specifying @code{(:foreground @var{color-name})}, and likewise for the |
| 2972 | background. | ||
| 2973 | @end itemize | 2973 | @end itemize |
| 2974 | 2974 | ||
| 2975 | You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically | 2975 | You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically |
| @@ -3561,9 +3561,9 @@ The action code is always @code{t}. | |||
| 3561 | 3561 | ||
| 3562 | For example, here is how Info mode handles @key{Mouse-1}: | 3562 | For example, here is how Info mode handles @key{Mouse-1}: |
| 3563 | 3563 | ||
| 3564 | @example | 3564 | @smallexample |
| 3565 | (define-key Info-mode-map [follow-link] 'mouse-face) | 3565 | (define-key Info-mode-map [follow-link] 'mouse-face) |
| 3566 | @end example | 3566 | @end smallexample |
| 3567 | 3567 | ||
| 3568 | @item a function | 3568 | @item a function |
| 3569 | If the condition is a valid function, @var{func}, then a position | 3569 | If the condition is a valid function, @var{func}, then a position |
| @@ -3574,11 +3574,11 @@ action code. | |||
| 3574 | For example, here is how pcvs enables @key{Mouse-1} to follow links on | 3574 | For example, here is how pcvs enables @key{Mouse-1} to follow links on |
| 3575 | file names only: | 3575 | file names only: |
| 3576 | 3576 | ||
| 3577 | @example | 3577 | @smallexample |
| 3578 | (define-key map [follow-link] | 3578 | (define-key map [follow-link] |
| 3579 | (lambda (pos) | 3579 | (lambda (pos) |
| 3580 | (if (eq (get-char-property pos 'face) 'cvs-filename-face) t))) | 3580 | (eq (get-char-property pos 'face) 'cvs-filename-face))) |
| 3581 | @end example | 3581 | @end smallexample |
| 3582 | 3582 | ||
| 3583 | @item anything else | 3583 | @item anything else |
| 3584 | If the condition value is anything else, then the position is inside a | 3584 | If the condition value is anything else, then the position is inside a |