diff options
| author | Chong Yidong | 2011-05-29 13:18:46 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-29 13:18:46 -0400 |
| commit | 049bcbcba62635103d4d212b3c3cf7dc0ef21f36 (patch) | |
| tree | 5b09006846727d818678497c81568f8d7f9523cb | |
| parent | c92a1e54c44d3939a1ac57b45def3424d0e4cf13 (diff) | |
| download | emacs-049bcbcba62635103d4d212b3c3cf7dc0ef21f36.tar.gz emacs-049bcbcba62635103d4d212b3c3cf7dc0ef21f36.zip | |
Tweaks to lisp manual to remove over/underflows in printed version.
* help.texi (Accessing Documentation):
* display.texi (Pixel Specification):
* processes.texi (Serial Ports, Serial Ports):
* nonascii.texi (Character Properties, Default Coding Systems):
* text.texi (Changing Properties, Special Properties):
* windows.texi (Window Start and End):
* modes.texi (SMIE Indentation Example, SMIE Tricks):
* keymaps.texi (Searching Keymaps, Tool Bar):
* minibuf.texi (Basic Completion):
* compile.texi (Eval During Compile):
* strings.texi (Formatting Strings): Tweaks to avoid overflowing
7x9 paper in printed manual.
* lists.texi (Sets And Lists): Fix misplaced text.
| -rw-r--r-- | doc/lispref/ChangeLog | 17 | ||||
| -rw-r--r-- | doc/lispref/compile.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 27 | ||||
| -rw-r--r-- | doc/lispref/elisp.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/help.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 27 | ||||
| -rw-r--r-- | doc/lispref/lists.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 13 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 26 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 33 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 36 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 13 | ||||
| -rw-r--r-- | doc/lispref/tips.texi | 3 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 8 |
15 files changed, 115 insertions, 108 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c8a45ffc4d3..fd8a9945cf9 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2011-05-29 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * help.texi (Accessing Documentation): | ||
| 4 | * display.texi (Pixel Specification): | ||
| 5 | * processes.texi (Serial Ports, Serial Ports): | ||
| 6 | * nonascii.texi (Character Properties, Default Coding Systems): | ||
| 7 | * text.texi (Changing Properties, Special Properties): | ||
| 8 | * windows.texi (Window Start and End): | ||
| 9 | * modes.texi (SMIE Indentation Example, SMIE Tricks): | ||
| 10 | * keymaps.texi (Searching Keymaps, Tool Bar): | ||
| 11 | * minibuf.texi (Basic Completion): | ||
| 12 | * compile.texi (Eval During Compile): | ||
| 13 | * strings.texi (Formatting Strings): Tweaks to avoid overflowing | ||
| 14 | 7x9 paper in printed manual. | ||
| 15 | |||
| 16 | * lists.texi (Sets And Lists): Fix misplaced text. | ||
| 17 | |||
| 1 | 2011-05-06 Stefan Monnier <monnier@iro.umontreal.ca> | 18 | 2011-05-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 19 | ||
| 3 | * modes.texi (Region to Refontify): Rename from "Region to Fontify". | 20 | * modes.texi (Region to Refontify): Rename from "Region to Fontify". |
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 928955b0239..b91e1626233 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -452,7 +452,7 @@ used to load it for compiling, but not executing. For example, | |||
| 452 | 452 | ||
| 453 | @lisp | 453 | @lisp |
| 454 | (eval-when-compile | 454 | (eval-when-compile |
| 455 | (require 'my-macro-package)) ;; only macros needed from this | 455 | (require 'my-macro-package)) |
| 456 | @end lisp | 456 | @end lisp |
| 457 | 457 | ||
| 458 | The same sort of thing goes for macros and @code{defsubst} functions | 458 | The same sort of thing goes for macros and @code{defsubst} functions |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 8a884401546..4a647ef15a2 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -1443,9 +1443,9 @@ specify a particular attribute for certain text. @xref{Face | |||
| 1443 | Attributes}. | 1443 | Attributes}. |
| 1444 | 1444 | ||
| 1445 | @item | 1445 | @item |
| 1446 | A cons cell, either of the form @code{(foreground-color . @var{color-name})} or | 1446 | A cons cell, either of the form @code{(fg-color . @var{color-name})} |
| 1447 | @code{(background-color . @var{color-name})}. These elements specify | 1447 | or @code{(bg-color . @var{color-name})}. These elements specify just |
| 1448 | just the foreground color or just the background color. | 1448 | the foreground color or just the background color. |
| 1449 | 1449 | ||
| 1450 | @code{(foreground-color . @var{color-name})} has the same effect as | 1450 | @code{(foreground-color . @var{color-name})} has the same effect as |
| 1451 | @code{(:foreground @var{color-name})}; likewise for the background. | 1451 | @code{(:foreground @var{color-name})}; likewise for the background. |
| @@ -3821,9 +3821,10 @@ pixels per inch, millimeter, and centimeter, respectively. The | |||
| 3821 | and height of the current face. An image specification @code{image} | 3821 | and height of the current face. An image specification @code{image} |
| 3822 | corresponds to the width or height of the image. | 3822 | corresponds to the width or height of the image. |
| 3823 | 3823 | ||
| 3824 | The @code{left-fringe}, @code{right-fringe}, @code{left-margin}, | 3824 | The elements @code{left-fringe}, @code{right-fringe}, |
| 3825 | @code{right-margin}, @code{scroll-bar}, and @code{text} elements | 3825 | @code{left-margin}, @code{right-margin}, @code{scroll-bar}, and |
| 3826 | specify to the width of the corresponding area of the window. | 3826 | @code{text} specify to the width of the corresponding area of the |
| 3827 | window. | ||
| 3827 | 3828 | ||
| 3828 | The @code{left}, @code{center}, and @code{right} positions can be | 3829 | The @code{left}, @code{center}, and @code{right} positions can be |
| 3829 | used with @code{:align-to} to specify a position relative to the left | 3830 | used with @code{:align-to} to specify a position relative to the left |
| @@ -4613,16 +4614,14 @@ If @var{no-error} is non-@code{nil} and a suitable path can't be | |||
| 4613 | found, don't signal an error. Instead, return a list of directories as | 4614 | found, don't signal an error. Instead, return a list of directories as |
| 4614 | before, except that @code{nil} appears in place of the image directory. | 4615 | before, except that @code{nil} appears in place of the image directory. |
| 4615 | 4616 | ||
| 4616 | Here is an example that uses a common idiom to provide compatibility | 4617 | Here is an example of using @code{image-load-path-for-library}: |
| 4617 | with versions of Emacs that lack the variable @code{image-load-path}: | ||
| 4618 | 4618 | ||
| 4619 | @example | 4619 | @example |
| 4620 | (defvar image-load-path) ; shush compiler | 4620 | (defvar image-load-path) ; shush compiler |
| 4621 | (let* ((load-path (image-load-path-for-library | 4621 | (let* ((load-path (image-load-path-for-library |
| 4622 | "mh-e" "mh-logo.xpm")) | 4622 | "mh-e" "mh-logo.xpm")) |
| 4623 | (image-load-path (cons (car load-path) | 4623 | (image-load-path (cons (car load-path) |
| 4624 | (when (boundp 'image-load-path) | 4624 | image-load-path))) |
| 4625 | image-load-path)))) | ||
| 4626 | (mh-tool-bar-folder-buttons-init)) | 4625 | (mh-tool-bar-folder-buttons-init)) |
| 4627 | @end example | 4626 | @end example |
| 4628 | @end defun | 4627 | @end defun |
| @@ -5351,8 +5350,10 @@ value) in various ways. | |||
| 5351 | (aref colorcomp-data 2))) | 5350 | (aref colorcomp-data 2))) |
| 5352 | (samp " (sample text) ")) | 5351 | (samp " (sample text) ")) |
| 5353 | (insert "Color\t: " | 5352 | (insert "Color\t: " |
| 5354 | (propertize samp 'face `(foreground-color . ,cstr)) | 5353 | (propertize samp 'face |
| 5355 | (propertize samp 'face `(background-color . ,cstr)) | 5354 | `(foreground-color . ,cstr)) |
| 5355 | (propertize samp 'face | ||
| 5356 | `(background-color . ,cstr)) | ||
| 5356 | "\n")))) | 5357 | "\n")))) |
| 5357 | 5358 | ||
| 5358 | (defun colorcomp (color) | 5359 | (defun colorcomp (color) |
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi index 93a8acdff0c..b140a1343dc 100644 --- a/doc/lispref/elisp.texi +++ b/doc/lispref/elisp.texi | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | @c in general, keep the following line commented out, unless doing a | 14 | @c in general, keep the following line commented out, unless doing a |
| 15 | @c copy of this manual that will be published. The manual should go | 15 | @c copy of this manual that will be published. The manual should go |
| 16 | @c onto the distribution in the full, 8.5 x 11" size. | 16 | @c onto the distribution in the full, 8.5 x 11" size. |
| 17 | @c set smallbook | 17 | @c @smallbook |
| 18 | 18 | ||
| 19 | @ifset smallbook | 19 | @ifset smallbook |
| 20 | @smallbook | 20 | @smallbook |
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 496ad6226f4..f1db33582ff 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi | |||
| @@ -144,9 +144,9 @@ unless @var{verbatim} is non-@code{nil}. | |||
| 144 | @end defun | 144 | @end defun |
| 145 | 145 | ||
| 146 | @defun documentation function &optional verbatim | 146 | @defun documentation function &optional verbatim |
| 147 | This function returns the documentation string of @var{function}. | 147 | This function returns the documentation string of @var{function}. It |
| 148 | @code{documentation} handles macros, named keyboard macros, and | 148 | handles macros, named keyboard macros, and special forms, as well as |
| 149 | special forms, as well as ordinary functions. | 149 | ordinary functions. |
| 150 | 150 | ||
| 151 | If @var{function} is a symbol, this function first looks for the | 151 | If @var{function} is a symbol, this function first looks for the |
| 152 | @code{function-documentation} property of that symbol; if that has a | 152 | @code{function-documentation} property of that symbol; if that has a |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 1d485ab67ba..b1f02d6b26e 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -720,17 +720,18 @@ pseudo-Lisp description of the order and conditions for searching | |||
| 720 | them: | 720 | them: |
| 721 | 721 | ||
| 722 | @lisp | 722 | @lisp |
| 723 | (or (if overriding-terminal-local-map | 723 | (or (cond |
| 724 | (@var{find-in} overriding-terminal-local-map) | 724 | (overriding-terminal-local-map |
| 725 | (if overriding-local-map | 725 | (@var{find-in} overriding-terminal-local-map)) |
| 726 | (@var{find-in} overriding-local-map) | 726 | (overriding-local-map |
| 727 | (or (@var{find-in} (get-char-property (point) 'keymap)) | 727 | (@var{find-in} overriding-local-map)) |
| 728 | (@var{find-in-any} emulation-mode-map-alists) | 728 | (or (@var{find-in} (get-char-property (point) 'keymap)) |
| 729 | (@var{find-in-any} minor-mode-overriding-map-alist) | 729 | (@var{find-in-any} emulation-mode-map-alists) |
| 730 | (@var{find-in-any} minor-mode-map-alist) | 730 | (@var{find-in-any} minor-mode-overriding-map-alist) |
| 731 | (if (get-text-property (point) 'local-map) | 731 | (@var{find-in-any} minor-mode-map-alist) |
| 732 | (@var{find-in} (get-char-property (point) 'local-map)) | 732 | (if (get-text-property (point) 'local-map) |
| 733 | (@var{find-in} (current-local-map)))))) | 733 | (@var{find-in} (get-char-property (point) 'local-map)) |
| 734 | (@var{find-in} (current-local-map))))) | ||
| 734 | (@var{find-in} (current-global-map))) | 735 | (@var{find-in} (current-global-map))) |
| 735 | @end lisp | 736 | @end lisp |
| 736 | 737 | ||
| @@ -2661,8 +2662,8 @@ using an indirection through @code{tool-bar-map}. | |||
| 2661 | By default, the global map binds @code{[tool-bar]} as follows: | 2662 | By default, the global map binds @code{[tool-bar]} as follows: |
| 2662 | @example | 2663 | @example |
| 2663 | (global-set-key [tool-bar] | 2664 | (global-set-key [tool-bar] |
| 2664 | '(menu-item "tool bar" ignore | 2665 | '(menu-item "tool bar" ignore |
| 2665 | :filter (lambda (ignore) tool-bar-map))) | 2666 | :filter (lambda (ignore) tool-bar-map))) |
| 2666 | @end example | 2667 | @end example |
| 2667 | @noindent | 2668 | @noindent |
| 2668 | Thus the tool bar map is derived dynamically from the value of variable | 2669 | Thus the tool bar map is derived dynamically from the value of variable |
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 4435af43c8c..b45277acfb3 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi | |||
| @@ -1356,10 +1356,10 @@ and the @code{(4)} in the @code{sample-list} are not @code{eq}: | |||
| 1356 | (delq '(4) sample-list) | 1356 | (delq '(4) sample-list) |
| 1357 | @result{} (a c (4)) | 1357 | @result{} (a c (4)) |
| 1358 | @end group | 1358 | @end group |
| 1359 | @end example | ||
| 1359 | 1360 | ||
| 1360 | If you want to delete elements that are @code{equal} to a given value, | 1361 | If you want to delete elements that are @code{equal} to a given value, |
| 1361 | use @code{delete} (see below). | 1362 | use @code{delete} (see below). |
| 1362 | @end example | ||
| 1363 | 1363 | ||
| 1364 | @defun remq object list | 1364 | @defun remq object list |
| 1365 | This function returns a copy of @var{list}, with all elements removed | 1365 | This function returns a copy of @var{list}, with all elements removed |
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 9b09a304bd0..b2ffc5fede7 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -839,12 +839,13 @@ variable as ``risky'' with a non-@code{nil} | |||
| 839 | @code{risky-local-variable} property. @xref{File Local Variables}. | 839 | @code{risky-local-variable} property. @xref{File Local Variables}. |
| 840 | 840 | ||
| 841 | @defvar completion-ignore-case | 841 | @defvar completion-ignore-case |
| 842 | If the value of this variable is non-@code{nil}, Emacs does not | 842 | If the value of this variable is non-@code{nil}, case is not |
| 843 | consider case significant in completion. Note, however, that this | 843 | considered significant in completion. Within @code{read-file-name}, |
| 844 | variable is overridden by @code{read-file-name-completion-ignore-case} | 844 | this variable is overridden by |
| 845 | within @code{read-file-name} (@pxref{Reading File Names}), and by | 845 | @code{read-file-name-completion-ignore-case} (@pxref{Reading File |
| 846 | @code{read-buffer-completion-ignore-case} within @code{read-buffer} | 846 | Names}); within @code{read-buffer}, it is overridden by |
| 847 | (@pxref{High-Level Completion}). | 847 | @code{read-buffer-completion-ignore-case} (@pxref{High-Level |
| 848 | Completion}). | ||
| 848 | @end defvar | 849 | @end defvar |
| 849 | 850 | ||
| 850 | @defvar completion-regexp-list | 851 | @defvar completion-regexp-list |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 1c72619c833..3f3eb2cd1f6 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1024,8 +1024,8 @@ Turning on text-mode runs the hook `text-mode-hook'." | |||
| 1024 | @end group | 1024 | @end group |
| 1025 | @group | 1025 | @group |
| 1026 | ;; @r{These four lines are absent from the current version} | 1026 | ;; @r{These four lines are absent from the current version} |
| 1027 | ;; @r{not because this is done some other way, but rather} | 1027 | ;; @r{not because this is done some other way, but because} |
| 1028 | ;; @r{because nowadays Text mode uses the normal definition of paragraphs.} | 1028 | ;; @r{nowadays Text mode uses the normal definition of paragraphs.} |
| 1029 | (set (make-local-variable 'paragraph-start) | 1029 | (set (make-local-variable 'paragraph-start) |
| 1030 | (concat "[ \t]*$\\|" page-delimiter)) | 1030 | (concat "[ \t]*$\\|" page-delimiter)) |
| 1031 | (set (make-local-variable 'paragraph-separate) paragraph-start) | 1031 | (set (make-local-variable 'paragraph-separate) paragraph-start) |
| @@ -1117,12 +1117,15 @@ modes should understand the Lisp conventions for comments. The rest of | |||
| 1117 | 1117 | ||
| 1118 | @smallexample | 1118 | @smallexample |
| 1119 | @group | 1119 | @group |
| 1120 | (set (make-local-variable 'paragraph-start) (concat page-delimiter "\\|$" )) | 1120 | (set (make-local-variable 'paragraph-start) |
| 1121 | (set (make-local-variable 'paragraph-separate) paragraph-start) | 1121 | (concat page-delimiter "\\|$" )) |
| 1122 | (set (make-local-variable 'paragraph-separate) | ||
| 1123 | paragraph-start) | ||
| 1122 | @dots{} | 1124 | @dots{} |
| 1123 | @end group | 1125 | @end group |
| 1124 | @group | 1126 | @group |
| 1125 | (set (make-local-variable 'comment-indent-function) 'lisp-comment-indent)) | 1127 | (set (make-local-variable 'comment-indent-function) |
| 1128 | 'lisp-comment-indent)) | ||
| 1126 | @dots{} | 1129 | @dots{} |
| 1127 | @end group | 1130 | @end group |
| 1128 | @end smallexample | 1131 | @end smallexample |
| @@ -3590,7 +3593,9 @@ natural to have a BNF grammar that looks like this: | |||
| 3590 | (inst ("IF" exp "THEN" insts "ELSE" insts "END") | 3593 | (inst ("IF" exp "THEN" insts "ELSE" insts "END") |
| 3591 | ("CASE" exp "OF" cases "END") | 3594 | ("CASE" exp "OF" cases "END") |
| 3592 | ...) | 3595 | ...) |
| 3593 | (cases (cases "|" cases) (caselabel ":" insts) ("ELSE" insts)) | 3596 | (cases (cases "|" cases) |
| 3597 | (caselabel ":" insts) | ||
| 3598 | ("ELSE" insts)) | ||
| 3594 | ... | 3599 | ... |
| 3595 | @end example | 3600 | @end example |
| 3596 | 3601 | ||
| @@ -3791,7 +3796,9 @@ block). | |||
| 3791 | Here is an example of an indentation function: | 3796 | Here is an example of an indentation function: |
| 3792 | 3797 | ||
| 3793 | @example | 3798 | @example |
| 3794 | (eval-when-compile (require 'cl)) ;For the `case' macro. | 3799 | ;; For the `case' macro. |
| 3800 | (eval-when-compile (require 'cl)) | ||
| 3801 | |||
| 3795 | (defun sample-smie-rules (kind token) | 3802 | (defun sample-smie-rules (kind token) |
| 3796 | (case kind | 3803 | (case kind |
| 3797 | (:elem (case token | 3804 | (:elem (case token |
| @@ -3872,9 +3879,10 @@ and is always at the beginning of a line, we can use a more efficient | |||
| 3872 | rule: | 3879 | rule: |
| 3873 | @example | 3880 | @example |
| 3874 | ((equal token "if") | 3881 | ((equal token "if") |
| 3875 | (and (not (smie-rule-bolp)) (smie-rule-prev-p "else") | 3882 | (and (not (smie-rule-bolp)) |
| 3883 | (smie-rule-prev-p "else") | ||
| 3876 | (save-excursion | 3884 | (save-excursion |
| 3877 | (sample-smie-backward-token) ;Jump before the "else". | 3885 | (sample-smie-backward-token) |
| 3878 | (cons 'column (current-column))))) | 3886 | (cons 'column (current-column))))) |
| 3879 | @end example | 3887 | @end example |
| 3880 | 3888 | ||
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 3093613ccaa..b66a5446e45 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -378,17 +378,17 @@ properties that Emacs knows about: | |||
| 378 | 378 | ||
| 379 | @table @code | 379 | @table @code |
| 380 | @item name | 380 | @item name |
| 381 | This property corresponds to the Unicode @code{Name} property. The | 381 | Corresponds to the @code{Name} Unicode property. The value is a |
| 382 | value is a string consisting of upper-case Latin letters A to Z, | 382 | string consisting of upper-case Latin letters A to Z, digits, spaces, |
| 383 | digits, spaces, and hyphen @samp{-} characters. | 383 | and hyphen @samp{-} characters. |
| 384 | 384 | ||
| 385 | @item general-category | 385 | @item general-category |
| 386 | This property corresponds to the Unicode @code{General_Category} | 386 | Corresponds to the @code{General_Category} Unicode property. The |
| 387 | property. The value is a symbol whose name is a 2-letter abbreviation | 387 | value is a symbol whose name is a 2-letter abbreviation of the |
| 388 | of the character's classification. | 388 | character's classification. |
| 389 | 389 | ||
| 390 | @item canonical-combining-class | 390 | @item canonical-combining-class |
| 391 | Corresponds to the Unicode @code{Canonical_Combining_Class} property. | 391 | Corresponds to the @code{Canonical_Combining_Class} Unicode property. |
| 392 | The value is an integer number. | 392 | The value is an integer number. |
| 393 | 393 | ||
| 394 | @item bidi-class | 394 | @item bidi-class |
| @@ -469,15 +469,18 @@ This function returns the value of @var{char}'s @var{propname} property. | |||
| 469 | @result{} Nd | 469 | @result{} Nd |
| 470 | @end group | 470 | @end group |
| 471 | @group | 471 | @group |
| 472 | (get-char-code-property ?\u2084 'digit-value) ; subscript 4 | 472 | ;; subscript 4 |
| 473 | (get-char-code-property ?\u2084 'digit-value) | ||
| 473 | @result{} 4 | 474 | @result{} 4 |
| 474 | @end group | 475 | @end group |
| 475 | @group | 476 | @group |
| 476 | (get-char-code-property ?\u2155 'numeric-value) ; one fifth | 477 | ;; one fifth |
| 478 | (get-char-code-property ?\u2155 'numeric-value) | ||
| 477 | @result{} 1/5 | 479 | @result{} 1/5 |
| 478 | @end group | 480 | @end group |
| 479 | @group | 481 | @group |
| 480 | (get-char-code-property ?\u2163 'numeric-value) ; Roman IV | 482 | ;; Roman IV |
| 483 | (get-char-code-property ?\u2163 'numeric-value) | ||
| 481 | @result{} \4 | 484 | @result{} \4 |
| 482 | @end group | 485 | @end group |
| 483 | @end example | 486 | @end example |
| @@ -1447,11 +1450,11 @@ for decoding (in case @var{operation} does decoding), and | |||
| 1447 | @var{encoding-system} is the coding system for encoding (in case | 1450 | @var{encoding-system} is the coding system for encoding (in case |
| 1448 | @var{operation} does encoding). | 1451 | @var{operation} does encoding). |
| 1449 | 1452 | ||
| 1450 | The argument @var{operation} is a symbol, one of @code{write-region}, | 1453 | The argument @var{operation} is a symbol; it should be one of |
| 1451 | @code{start-process}, @code{call-process}, @code{call-process-region}, | 1454 | @code{write-region}, @code{start-process}, @code{call-process}, |
| 1452 | @code{insert-file-contents}, or @code{open-network-stream}. These are | 1455 | @code{call-process-region}, @code{insert-file-contents}, or |
| 1453 | the names of the Emacs I/O primitives that can do character code and | 1456 | @code{open-network-stream}. These are the names of the Emacs I/O |
| 1454 | eol conversion. | 1457 | primitives that can do character code and eol conversion. |
| 1455 | 1458 | ||
| 1456 | The remaining arguments should be the same arguments that might be given | 1459 | The remaining arguments should be the same arguments that might be given |
| 1457 | to the corresponding I/O primitive. Depending on the primitive, one | 1460 | to the corresponding I/O primitive. Depending on the primitive, one |
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index d5598f55388..f3f68a79471 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -1795,9 +1795,9 @@ nice values get scheduled more favorably.) | |||
| 1795 | The number of threads in the process. | 1795 | The number of threads in the process. |
| 1796 | 1796 | ||
| 1797 | @item start | 1797 | @item start |
| 1798 | The time the process was started, in the @w{@code{(@var{high} | 1798 | The time when the process was started, in the same |
| 1799 | @var{low} @var{microsec})}} format used by @code{current-time} and | 1799 | @w{@code{(@var{high} @var{low} @var{microsec})}} format used by |
| 1800 | @code{file-attributes}. | 1800 | @code{current-time} and @code{file-attributes}. |
| 1801 | 1801 | ||
| 1802 | @item etime | 1802 | @item etime |
| 1803 | The time elapsed since the process started, in the @w{@code{(@var{high} | 1803 | The time elapsed since the process started, in the @w{@code{(@var{high} |
| @@ -2483,25 +2483,17 @@ Install @var{plist} as the initial plist of the process. | |||
| 2483 | @itemx :parity | 2483 | @itemx :parity |
| 2484 | @itemx :stopbits | 2484 | @itemx :stopbits |
| 2485 | @itemx :flowcontrol | 2485 | @itemx :flowcontrol |
| 2486 | These arguments are handled by @code{serial-process-configure}, which | 2486 | These are handled by @code{serial-process-configure}, which is called |
| 2487 | is called by @code{make-serial-process}. | 2487 | by @code{make-serial-process}. |
| 2488 | @end table | 2488 | @end table |
| 2489 | 2489 | ||
| 2490 | The original argument list, possibly modified by later configuration, | 2490 | The original argument list, possibly modified by later configuration, |
| 2491 | is available via the function @code{process-contact}. | 2491 | is available via the function @code{process-contact}. |
| 2492 | 2492 | ||
| 2493 | Examples: | 2493 | Here is an example: |
| 2494 | 2494 | ||
| 2495 | @example | 2495 | @example |
| 2496 | (make-serial-process :port "/dev/ttyS0" :speed 9600) | 2496 | (make-serial-process :port "/dev/ttyS0" :speed 9600) |
| 2497 | |||
| 2498 | (make-serial-process :port "COM1" :speed 115200 :stopbits 2) | ||
| 2499 | |||
| 2500 | (make-serial-process :port "\\\\.\\COM13" :speed 1200 | ||
| 2501 | :bytesize 7 :parity 'odd) | ||
| 2502 | |||
| 2503 | (make-serial-process :port "/dev/tty.BlueConsole-SPP-1" | ||
| 2504 | :speed nil) | ||
| 2505 | @end example | 2497 | @end example |
| 2506 | @end defun | 2498 | @end defun |
| 2507 | 2499 | ||
| @@ -2561,19 +2553,9 @@ flow control). If @var{flowcontrol} is not given, it defaults to no | |||
| 2561 | flow control. | 2553 | flow control. |
| 2562 | @end table | 2554 | @end table |
| 2563 | 2555 | ||
| 2564 | @code{serial-process-configure} is called by @code{make-serial-process} for the | 2556 | @code{serial-process-configure} is called by |
| 2565 | initial configuration of the serial port. | 2557 | @code{make-serial-process} for the initial configuration of the serial |
| 2566 | 2558 | port. | |
| 2567 | Examples: | ||
| 2568 | |||
| 2569 | @example | ||
| 2570 | (serial-process-configure :process "/dev/ttyS0" :speed 1200) | ||
| 2571 | |||
| 2572 | (serial-process-configure :buffer "COM1" :stopbits 1 | ||
| 2573 | :parity 'odd :flowcontrol 'hw) | ||
| 2574 | |||
| 2575 | (serial-process-configure :port "\\\\.\\COM13" :bytesize 7) | ||
| 2576 | @end example | ||
| 2577 | @end defun | 2559 | @end defun |
| 2578 | 2560 | ||
| 2579 | @node Byte Packing | 2561 | @node Byte Packing |
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 925c92050e4..87b9f4368fb 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -829,12 +829,12 @@ is not truncated. | |||
| 829 | 829 | ||
| 830 | @example | 830 | @example |
| 831 | @group | 831 | @group |
| 832 | (format "The word `%7s' actually has %d letters in it." | 832 | (format "The word `%7s' has %d letters in it." |
| 833 | "foo" (length "foo")) | 833 | "foo" (length "foo")) |
| 834 | @result{} "The word ` foo' actually has 3 letters in it." | 834 | @result{} "The word ` foo' has 3 letters in it." |
| 835 | (format "The word `%7s' actually has %d letters in it." | 835 | (format "The word `%7s' has %d letters in it." |
| 836 | "specification" (length "specification")) | 836 | "specification" (length "specification")) |
| 837 | @result{} "The word `specification' actually has 13 letters in it." | 837 | @result{} "The word `specification' has 13 letters in it." |
| 838 | @end group | 838 | @end group |
| 839 | @end example | 839 | @end example |
| 840 | 840 | ||
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index e11913e9931..f4dce6a1bc6 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -2810,9 +2810,9 @@ construct each part with @code{propertize} and then combine them with | |||
| 2810 | @end smallexample | 2810 | @end smallexample |
| 2811 | @end defun | 2811 | @end defun |
| 2812 | 2812 | ||
| 2813 | See also the function @code{buffer-substring-no-properties} | 2813 | @xref{Buffer Contents}, for the function |
| 2814 | (@pxref{Buffer Contents}) which copies text from the buffer | 2814 | @code{buffer-substring-no-properties}, which copies text from the |
| 2815 | but does not copy its properties. | 2815 | buffer but does not copy its properties. |
| 2816 | 2816 | ||
| 2817 | @node Property Search | 2817 | @node Property Search |
| 2818 | @subsection Text Property Search Functions | 2818 | @subsection Text Property Search Functions |
| @@ -2996,13 +2996,6 @@ face attribute name and @var{value} is a meaningful value for that | |||
| 2996 | attribute. With this feature, you do not need to create a face each | 2996 | attribute. With this feature, you do not need to create a face each |
| 2997 | time you want to specify a particular attribute for certain text. | 2997 | time you want to specify a particular attribute for certain text. |
| 2998 | @xref{Face Attributes}. | 2998 | @xref{Face Attributes}. |
| 2999 | |||
| 3000 | @item | ||
| 3001 | A cons cell with the form @code{(foreground-color . @var{color-name})} | ||
| 3002 | or @code{(background-color . @var{color-name})}. These are old, | ||
| 3003 | deprecated equivalents for @code{(:foreground @var{color-name})} and | ||
| 3004 | @code{(:background @var{color-name})}. Please convert code that uses | ||
| 3005 | them. | ||
| 3006 | @end itemize | 2999 | @end itemize |
| 3007 | 3000 | ||
| 3008 | It works to use the latter two forms directly as the value | 3001 | It works to use the latter two forms directly as the value |
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index 5dd845efbdb..9be6c061bf1 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi | |||
| @@ -256,7 +256,8 @@ file if you distribute copies. Use a notice like this one: | |||
| 256 | ;; GNU General Public License for more details. | 256 | ;; GNU General Public License for more details. |
| 257 | 257 | ||
| 258 | ;; You should have received a copy of the GNU General Public License | 258 | ;; You should have received a copy of the GNU General Public License |
| 259 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>. | 259 | ;; along with this program. If not, see |
| 260 | ;; <http://www.gnu.org/licenses/>. | ||
| 260 | @end smallexample | 261 | @end smallexample |
| 261 | 262 | ||
| 262 | If you have signed papers to assign the copyright to the Foundation, | 263 | If you have signed papers to assign the copyright to the Foundation, |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index f17fc3c718b..ee9d1a8374e 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -1463,10 +1463,10 @@ to the current position of point in @var{window}; @var{window}, to the | |||
| 1463 | selected window. If @var{position} is @code{t}, that means to check the | 1463 | selected window. If @var{position} is @code{t}, that means to check the |
| 1464 | last visible position in @var{window}. | 1464 | last visible position in @var{window}. |
| 1465 | 1465 | ||
| 1466 | The @code{pos-visible-in-window-p} function considers only vertical | 1466 | This function considers only vertical scrolling. If @var{position} is |
| 1467 | scrolling. If @var{position} is out of view only because @var{window} | 1467 | out of view only because @var{window} has been scrolled horizontally, |
| 1468 | has been scrolled horizontally, @code{pos-visible-in-window-p} returns | 1468 | @code{pos-visible-in-window-p} returns non-@code{nil} anyway. |
| 1469 | non-@code{nil} anyway. @xref{Horizontal Scrolling}. | 1469 | @xref{Horizontal Scrolling}. |
| 1470 | 1470 | ||
| 1471 | If @var{position} is visible, @code{pos-visible-in-window-p} returns | 1471 | If @var{position} is visible, @code{pos-visible-in-window-p} returns |
| 1472 | @code{t} if @var{partially} is @code{nil}; if @var{partially} is | 1472 | @code{t} if @var{partially} is @code{nil}; if @var{partially} is |