diff options
| author | K. Handa | 2015-09-01 20:46:15 +0900 |
|---|---|---|
| committer | K. Handa | 2015-09-01 20:46:15 +0900 |
| commit | 3e0e2339cd379eeba8d9bc758f2e8e574144e252 (patch) | |
| tree | 9d119efed6e52e5c24dbd84836148157271799a8 /doc/lispref | |
| parent | 524eeb2e5e158d98ea52fe5ebe4768c4433ba8b2 (diff) | |
| parent | ff0a92f6461941902eb9e974bdd2ff9adacb7bc4 (diff) | |
| download | emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.tar.gz emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/control.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 14 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 16 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 2 |
8 files changed, 25 insertions, 26 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 421f5cc530f..29d1bd588e3 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi | |||
| @@ -315,7 +315,7 @@ between a few different constant values: | |||
| 315 | @example | 315 | @example |
| 316 | (pcase (get-return-code x) | 316 | (pcase (get-return-code x) |
| 317 | (`success (message "Done!")) | 317 | (`success (message "Done!")) |
| 318 | (`would-block (message "Sorry, can't do it now")) | 318 | (`would-block (message "Sorry, can’t do it now")) |
| 319 | (`read-only (message "The shmliblick is read-only")) | 319 | (`read-only (message "The shmliblick is read-only")) |
| 320 | (`access-denied (message "You do not have the needed rights")) | 320 | (`access-denied (message "You do not have the needed rights")) |
| 321 | (code (message "Unknown return code %S" code))) | 321 | (code (message "Unknown return code %S" code))) |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 36404f4dff9..9d82edc9a98 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -632,13 +632,13 @@ for logging the warning. By default, it is @file{*Warnings*}. | |||
| 632 | @end defun | 632 | @end defun |
| 633 | 633 | ||
| 634 | @defun lwarn type level message &rest args | 634 | @defun lwarn type level message &rest args |
| 635 | This function reports a warning using the value of @code{(format | 635 | This function reports a warning using the value of @code{(format-message |
| 636 | @var{message} @var{args}...)} as the message in the @file{*Warnings*} | 636 | @var{message} @var{args}...)} as the message in the @file{*Warnings*} |
| 637 | buffer. In other respects it is equivalent to @code{display-warning}. | 637 | buffer. In other respects it is equivalent to @code{display-warning}. |
| 638 | @end defun | 638 | @end defun |
| 639 | 639 | ||
| 640 | @defun warn message &rest args | 640 | @defun warn message &rest args |
| 641 | This function reports a warning using the value of @code{(format | 641 | This function reports a warning using the value of @code{(format-message |
| 642 | @var{message} @var{args}...)} as the message, @code{(emacs)} as the | 642 | @var{message} @var{args}...)} as the message, @code{(emacs)} as the |
| 643 | type, and @code{:warning} as the severity level. It exists for | 643 | type, and @code{:warning} as the severity level. It exists for |
| 644 | compatibility only; we recommend not using it, because you should | 644 | compatibility only; we recommend not using it, because you should |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index a853d2fbab5..20eaf5dee1e 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1561,7 +1561,7 @@ Around advice such as: | |||
| 1561 | 1561 | ||
| 1562 | @example | 1562 | @example |
| 1563 | (defadvice foo (around foo-around) | 1563 | (defadvice foo (around foo-around) |
| 1564 | "Ignore case in `foo'." | 1564 | "Ignore case in ‘foo’." |
| 1565 | (let ((case-fold-search t)) | 1565 | (let ((case-fold-search t)) |
| 1566 | ad-do-it)) | 1566 | ad-do-it)) |
| 1567 | (ad-activate 'foo) | 1567 | (ad-activate 'foo) |
| @@ -1571,7 +1571,7 @@ could translate into: | |||
| 1571 | 1571 | ||
| 1572 | @example | 1572 | @example |
| 1573 | (defun foo--foo-around (orig-fun &rest args) | 1573 | (defun foo--foo-around (orig-fun &rest args) |
| 1574 | "Ignore case in `foo'." | 1574 | "Ignore case in ‘foo’." |
| 1575 | (let ((case-fold-search t)) | 1575 | (let ((case-fold-search t)) |
| 1576 | (apply orig-fun args))) | 1576 | (apply orig-fun args))) |
| 1577 | (advice-add 'foo :around #'foo--foo-around) | 1577 | (advice-add 'foo :around #'foo--foo-around) |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index a8b6bb19c5f..f00e481275f 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1155,9 +1155,9 @@ Many other modes, such as `mail-mode', `outline-mode' and | |||
| 1155 | "Major mode for editing text written for humans to read. | 1155 | "Major mode for editing text written for humans to read. |
| 1156 | In this mode, paragraphs are delimited only by blank or white lines. | 1156 | In this mode, paragraphs are delimited only by blank or white lines. |
| 1157 | You can thus get the full benefit of adaptive filling | 1157 | You can thus get the full benefit of adaptive filling |
| 1158 | (see the variable `adaptive-fill-mode'). | 1158 | (see the variable ‘adaptive-fill-mode’). |
| 1159 | \\@{text-mode-map@} | 1159 | \\@{text-mode-map@} |
| 1160 | Turning on Text mode runs the normal hook `text-mode-hook'." | 1160 | Turning on Text mode runs the normal hook ‘text-mode-hook’." |
| 1161 | @end group | 1161 | @end group |
| 1162 | @group | 1162 | @group |
| 1163 | (set (make-local-variable 'text-mode-variant) t) | 1163 | (set (make-local-variable 'text-mode-variant) t) |
| @@ -1252,7 +1252,7 @@ And here is the code to set up the keymap for Lisp mode: | |||
| 1252 | @dots{} | 1252 | @dots{} |
| 1253 | map) | 1253 | map) |
| 1254 | "Keymap for ordinary Lisp mode. | 1254 | "Keymap for ordinary Lisp mode. |
| 1255 | All commands in `lisp-mode-shared-map' are inherited by this map.") | 1255 | All commands in ‘lisp-mode-shared-map’ are inherited by this map.") |
| 1256 | @end group | 1256 | @end group |
| 1257 | @end smallexample | 1257 | @end smallexample |
| 1258 | 1258 | ||
| @@ -1268,12 +1268,12 @@ Delete converts tabs to spaces as it moves back. | |||
| 1268 | Blank lines separate paragraphs. Semicolons start comments. | 1268 | Blank lines separate paragraphs. Semicolons start comments. |
| 1269 | 1269 | ||
| 1270 | \\@{lisp-mode-map@} | 1270 | \\@{lisp-mode-map@} |
| 1271 | Note that `run-lisp' may be used either to start an inferior Lisp job | 1271 | Note that ‘run-lisp’ may be used either to start an inferior Lisp job |
| 1272 | or to switch back to an existing one. | 1272 | or to switch back to an existing one. |
| 1273 | @end group | 1273 | @end group |
| 1274 | 1274 | ||
| 1275 | @group | 1275 | @group |
| 1276 | Entry to this mode calls the value of `lisp-mode-hook' | 1276 | Entry to this mode calls the value of ‘lisp-mode-hook’ |
| 1277 | if that value is non-nil." | 1277 | if that value is non-nil." |
| 1278 | (lisp-mode-variables nil t) | 1278 | (lisp-mode-variables nil t) |
| 1279 | (set (make-local-variable 'find-tag-default-function) | 1279 | (set (make-local-variable 'find-tag-default-function) |
| @@ -1447,7 +1447,7 @@ will load the library that defines the mode. For example: | |||
| 1447 | (defcustom msb-mode nil | 1447 | (defcustom msb-mode nil |
| 1448 | "Toggle msb-mode. | 1448 | "Toggle msb-mode. |
| 1449 | Setting this variable directly does not take effect; | 1449 | Setting this variable directly does not take effect; |
| 1450 | use either \\[customize] or the function `msb-mode'." | 1450 | use either \\[customize] or the function ‘msb-mode’." |
| 1451 | :set 'custom-set-minor-mode | 1451 | :set 'custom-set-minor-mode |
| 1452 | :initialize 'custom-initialize-default | 1452 | :initialize 'custom-initialize-default |
| 1453 | :version "20.4" | 1453 | :version "20.4" |
| @@ -1605,7 +1605,7 @@ for this macro. | |||
| 1605 | Interactively with no argument, this command toggles the mode. | 1605 | Interactively with no argument, this command toggles the mode. |
| 1606 | A positive prefix argument enables the mode, any other prefix | 1606 | A positive prefix argument enables the mode, any other prefix |
| 1607 | argument disables it. From Lisp, argument omitted or nil enables | 1607 | argument disables it. From Lisp, argument omitted or nil enables |
| 1608 | the mode, `toggle' toggles the state. | 1608 | the mode, ‘toggle’ toggles the state. |
| 1609 | 1609 | ||
| 1610 | When Hungry mode is enabled, the control delete key | 1610 | When Hungry mode is enabled, the control delete key |
| 1611 | gobbles all preceding whitespace except the last. | 1611 | gobbles all preceding whitespace except the last. |
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 4b5a1b4a6ff..64ebb45f23b 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -1927,7 +1927,7 @@ idleness. Here's an example: | |||
| 1927 | 1927 | ||
| 1928 | @example | 1928 | @example |
| 1929 | (defvar my-resume-timer nil | 1929 | (defvar my-resume-timer nil |
| 1930 | "Timer for `my-timer-function' to reschedule itself, or nil.") | 1930 | "Timer for ‘my-timer-function’ to reschedule itself, or nil.") |
| 1931 | 1931 | ||
| 1932 | (defun my-timer-function () | 1932 | (defun my-timer-function () |
| 1933 | ;; @r{If the user types a command while @code{my-resume-timer}} | 1933 | ;; @r{If the user types a command while @code{my-resume-timer}} |
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index eb152283fbb..12ed881dadb 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -833,10 +833,9 @@ vector or string (@pxref{Iteration} for more information about the | |||
| 833 | 833 | ||
| 834 | @defmac seq-let arguments sequence body@dots{} | 834 | @defmac seq-let arguments sequence body@dots{} |
| 835 | @cindex sequence destructuring | 835 | @cindex sequence destructuring |
| 836 | This macro binds the variables in defined in the sequence | 836 | This macro binds the variables defined in @var{arguments} to the |
| 837 | @var{arguments} to the elements of the sequence @var{sequence}. | 837 | elements of the sequence @var{sequence}. @var{arguments} can itself |
| 838 | @var{arguments} can itself include sequences allowing for nested | 838 | include sequences allowing for nested destructuring. |
| 839 | destructuring. | ||
| 840 | 839 | ||
| 841 | The @var{arguments} sequence can also include the @code{&rest} marker | 840 | The @var{arguments} sequence can also include the @code{&rest} marker |
| 842 | followed by a variable name to be bound to the rest of | 841 | followed by a variable name to be bound to the rest of |
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 08e8e877a9f..d882be485ef 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -969,12 +969,12 @@ is not truncated. | |||
| 969 | 969 | ||
| 970 | @example | 970 | @example |
| 971 | @group | 971 | @group |
| 972 | (format "The word '%7s' has %d letters in it." | 972 | (format "The word ‘%7s’ has %d letters in it." |
| 973 | "foo" (length "foo")) | 973 | "foo" (length "foo")) |
| 974 | @result{} "The word ' foo' has 3 letters in it." | 974 | @result{} "The word ‘ foo’ has 3 letters in it." |
| 975 | (format "The word '%7s' has %d letters in it." | 975 | (format "The word ‘%7s’ has %d letters in it." |
| 976 | "specification" (length "specification")) | 976 | "specification" (length "specification")) |
| 977 | @result{} "The word 'specification' has 13 letters in it." | 977 | @result{} "The word ‘specification’ has 13 letters in it." |
| 978 | @end group | 978 | @end group |
| 979 | @end example | 979 | @end example |
| 980 | 980 | ||
| @@ -1013,12 +1013,12 @@ ignored. | |||
| 1013 | (format "%06d is padded on the left with zeros" 123) | 1013 | (format "%06d is padded on the left with zeros" 123) |
| 1014 | @result{} "000123 is padded on the left with zeros" | 1014 | @result{} "000123 is padded on the left with zeros" |
| 1015 | 1015 | ||
| 1016 | (format "'%-6d' is padded on the right" 123) | 1016 | (format "‘%-6d’ is padded on the right" 123) |
| 1017 | @result{} "'123 ' is padded on the right" | 1017 | @result{} "‘123 ’ is padded on the right" |
| 1018 | 1018 | ||
| 1019 | (format "The word '%-7s' actually has %d letters in it." | 1019 | (format "The word ‘%-7s’ actually has %d letters in it." |
| 1020 | "foo" (length "foo")) | 1020 | "foo" (length "foo")) |
| 1021 | @result{} "The word 'foo ' actually has 3 letters in it." | 1021 | @result{} "The word ‘foo ’ actually has 3 letters in it." |
| 1022 | @end group | 1022 | @end group |
| 1023 | @end example | 1023 | @end example |
| 1024 | 1024 | ||
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index e63e634db04..245825ada60 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -1960,7 +1960,7 @@ Called from a program, there are three arguments: | |||
| 1960 | @group | 1960 | @group |
| 1961 | REVERSE (non-nil means reverse order),\ | 1961 | REVERSE (non-nil means reverse order),\ |
| 1962 | BEG and END (region to sort). | 1962 | BEG and END (region to sort). |
| 1963 | The variable `sort-fold-case' determines\ | 1963 | The variable ‘sort-fold-case’ determines\ |
| 1964 | whether alphabetic case affects | 1964 | whether alphabetic case affects |
| 1965 | the sort order." | 1965 | the sort order." |
| 1966 | @end group | 1966 | @end group |