diff options
| author | Juanma Barranquero | 2013-06-11 18:51:12 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-06-11 18:51:12 +0200 |
| commit | fa6bc6fd5023120ba9ecfb34cf88a84e5b3ab2a4 (patch) | |
| tree | 913f3fa55c517b249cc39a1b3ba4bf5718f66579 | |
| parent | cf1f9b9a81606d6fd0e5b2854cdc6e9a2e3e9291 (diff) | |
| download | emacs-fa6bc6fd5023120ba9ecfb34cf88a84e5b3ab2a4.tar.gz emacs-fa6bc6fd5023120ba9ecfb34cf88a84e5b3ab2a4.zip | |
Fix typos.
* lisp/replace.el (query-replace, occur-read-regexp-defaults-function)
(replace-search):
* lisp/subr.el (declare-function, number-sequence, local-set-key)
(substitute-key-definition, locate-user-emacs-file)
(with-silent-modifications, split-string, eval-after-load):
Fix typos, remove unneeded backslashes and reflow some docstrings.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/ChangeLog.2 | 6 | ||||
| -rw-r--r-- | lisp/replace.el | 8 | ||||
| -rw-r--r-- | lisp/subr.el | 38 | ||||
| -rw-r--r-- | src/ChangeLog.3 | 2 |
5 files changed, 36 insertions, 27 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 61759162f79..872f6cd12e3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2013-06-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * replace.el (query-replace, occur-read-regexp-defaults-function) | ||
| 4 | (replace-search): | ||
| 5 | * subr.el (declare-function, number-sequence, local-set-key) | ||
| 6 | (substitute-key-definition, locate-user-emacs-file) | ||
| 7 | (with-silent-modifications, split-string, eval-after-load): | ||
| 8 | Fix typos, remove unneeded backslashes and reflow some docstrings. | ||
| 9 | |||
| 1 | 2013-06-11 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2013-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 11 | ||
| 3 | * international/mule-conf.el (file-coding-system-alist): Use utf-8 as | 12 | * international/mule-conf.el (file-coding-system-alist): Use utf-8 as |
diff --git a/lisp/ChangeLog.2 b/lisp/ChangeLog.2 index 3832f342d6f..fddc98a612d 100644 --- a/lisp/ChangeLog.2 +++ b/lisp/ChangeLog.2 | |||
| @@ -777,7 +777,7 @@ | |||
| 777 | 777 | ||
| 778 | 1987-12-21 Richard Stallman (rms@frosted-flakes) | 778 | 1987-12-21 Richard Stallman (rms@frosted-flakes) |
| 779 | 779 | ||
| 780 | * window.el (split-widow-{vertically,horizontally}): | 780 | * window.el (split-window-{vertically,horizontally}): |
| 781 | Make the arg optional. | 781 | Make the arg optional. |
| 782 | 782 | ||
| 783 | 1987-12-09 Richard Stallman (rms@frosted-flakes) | 783 | 1987-12-09 Richard Stallman (rms@frosted-flakes) |
| @@ -1392,7 +1392,7 @@ | |||
| 1392 | * shell.el: Minor doc fixes. | 1392 | * shell.el: Minor doc fixes. |
| 1393 | 1393 | ||
| 1394 | * rmail.el (rmail-get-new-mail): | 1394 | * rmail.el (rmail-get-new-mail): |
| 1395 | Handle errors competently. (Don't attempt to | 1395 | Handle errors competently. (Don't attempt to |
| 1396 | handle them, rather than botching the job) | 1396 | handle them, rather than botching the job) |
| 1397 | 1397 | ||
| 1398 | * rmail.el (rmail-insert-inbox-text): | 1398 | * rmail.el (rmail-insert-inbox-text): |
| @@ -3032,7 +3032,7 @@ | |||
| 3032 | 3032 | ||
| 3033 | Rename "kill" -> "delete" for both function-names and documentation. | 3033 | Rename "kill" -> "delete" for both function-names and documentation. |
| 3034 | 3034 | ||
| 3035 | Define C-d as Buffer-menu-delete-backwards. (also in ebuff-menu) | 3035 | Define C-d as Buffer-menu-delete-backwards (also in ebuff-menu). |
| 3036 | 3036 | ||
| 3037 | Save space: Merge buffer-menu-{execute,do-saves,do-kills}. | 3037 | Save space: Merge buffer-menu-{execute,do-saves,do-kills}. |
| 3038 | 3038 | ||
diff --git a/lisp/replace.el b/lisp/replace.el index af05bd11fb2..24cfccf60fd 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -246,7 +246,7 @@ Matching is independent of case if `case-fold-search' is non-nil and | |||
| 246 | FROM-STRING has no uppercase letters. Replacement transfers the case | 246 | FROM-STRING has no uppercase letters. Replacement transfers the case |
| 247 | pattern of the old text to the new text, if `case-replace' and | 247 | pattern of the old text to the new text, if `case-replace' and |
| 248 | `case-fold-search' are non-nil and FROM-STRING has no uppercase | 248 | `case-fold-search' are non-nil and FROM-STRING has no uppercase |
| 249 | letters. \(Transferring the case pattern means that if the old text | 249 | letters. (Transferring the case pattern means that if the old text |
| 250 | matched is all caps, or capitalized, then its replacement is upcased | 250 | matched is all caps, or capitalized, then its replacement is upcased |
| 251 | or capitalized.) | 251 | or capitalized.) |
| 252 | 252 | ||
| @@ -1175,8 +1175,8 @@ is called only during interactive use. | |||
| 1175 | 1175 | ||
| 1176 | For example, to check for occurrence of symbol at point use | 1176 | For example, to check for occurrence of symbol at point use |
| 1177 | 1177 | ||
| 1178 | \(setq occur-read-regexp-defaults-function | 1178 | (setq occur-read-regexp-defaults-function |
| 1179 | 'find-tag-default-as-regexp\).") | 1179 | 'find-tag-default-as-regexp).") |
| 1180 | 1180 | ||
| 1181 | (defun occur-read-regexp-defaults () | 1181 | (defun occur-read-regexp-defaults () |
| 1182 | "Return the latest regexp from `regexp-history'. | 1182 | "Return the latest regexp from `regexp-history'. |
| @@ -1874,7 +1874,7 @@ It is called with three arguments, as if it were | |||
| 1874 | 1874 | ||
| 1875 | (defun replace-search (search-string limit regexp-flag delimited-flag | 1875 | (defun replace-search (search-string limit regexp-flag delimited-flag |
| 1876 | case-fold-search) | 1876 | case-fold-search) |
| 1877 | "Search for the next occurence of SEARCH-STRING to replace." | 1877 | "Search for the next occurrence of SEARCH-STRING to replace." |
| 1878 | ;; Let-bind global isearch-* variables to values used | 1878 | ;; Let-bind global isearch-* variables to values used |
| 1879 | ;; to search the next replacement. These let-bindings | 1879 | ;; to search the next replacement. These let-bindings |
| 1880 | ;; should be effective both at the time of calling | 1880 | ;; should be effective both at the time of calling |
diff --git a/lisp/subr.el b/lisp/subr.el index 65943aea337..fe9de835f71 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -41,11 +41,11 @@ Each element of this list holds the arguments to one call to `defcustom'.") | |||
| 41 | 41 | ||
| 42 | (defmacro declare-function (_fn _file &optional _arglist _fileonly) | 42 | (defmacro declare-function (_fn _file &optional _arglist _fileonly) |
| 43 | "Tell the byte-compiler that function FN is defined, in FILE. | 43 | "Tell the byte-compiler that function FN is defined, in FILE. |
| 44 | Optional ARGLIST is the argument list used by the function. The | 44 | Optional ARGLIST is the argument list used by the function. |
| 45 | FILE argument is not used by the byte-compiler, but by the | 45 | The FILE argument is not used by the byte-compiler, but by the |
| 46 | `check-declare' package, which checks that FILE contains a | 46 | `check-declare' package, which checks that FILE contains a |
| 47 | definition for FN. ARGLIST is used by both the byte-compiler and | 47 | definition for FN. ARGLIST is used by both the byte-compiler |
| 48 | `check-declare' to check for consistency. | 48 | and `check-declare' to check for consistency. |
| 49 | 49 | ||
| 50 | FILE can be either a Lisp file (in which case the \".el\" | 50 | FILE can be either a Lisp file (in which case the \".el\" |
| 51 | extension is optional), or a C file. C files are expanded | 51 | extension is optional), or a C file. C files are expanded |
| @@ -396,9 +396,9 @@ non-nil." | |||
| 396 | (defun number-sequence (from &optional to inc) | 396 | (defun number-sequence (from &optional to inc) |
| 397 | "Return a sequence of numbers from FROM to TO (both inclusive) as a list. | 397 | "Return a sequence of numbers from FROM to TO (both inclusive) as a list. |
| 398 | INC is the increment used between numbers in the sequence and defaults to 1. | 398 | INC is the increment used between numbers in the sequence and defaults to 1. |
| 399 | So, the Nth element of the list is \(+ FROM \(* N INC)) where N counts from | 399 | So, the Nth element of the list is (+ FROM (* N INC)) where N counts from |
| 400 | zero. TO is only included if there is an N for which TO = FROM + N * INC. | 400 | zero. TO is only included if there is an N for which TO = FROM + N * INC. |
| 401 | If TO is nil or numerically equal to FROM, return \(FROM). | 401 | If TO is nil or numerically equal to FROM, return (FROM). |
| 402 | If INC is positive and TO is less than FROM, or INC is negative | 402 | If INC is positive and TO is less than FROM, or INC is negative |
| 403 | and TO is larger than FROM, return nil. | 403 | and TO is larger than FROM, return nil. |
| 404 | If INC is zero and TO is neither nil nor numerically equal to | 404 | If INC is zero and TO is neither nil nor numerically equal to |
| @@ -408,11 +408,11 @@ This function is primarily designed for integer arguments. | |||
| 408 | Nevertheless, FROM, TO and INC can be integer or float. However, | 408 | Nevertheless, FROM, TO and INC can be integer or float. However, |
| 409 | floating point arithmetic is inexact. For instance, depending on | 409 | floating point arithmetic is inexact. For instance, depending on |
| 410 | the machine, it may quite well happen that | 410 | the machine, it may quite well happen that |
| 411 | \(number-sequence 0.4 0.6 0.2) returns the one element list \(0.4), | 411 | \(number-sequence 0.4 0.6 0.2) returns the one element list (0.4), |
| 412 | whereas \(number-sequence 0.4 0.8 0.2) returns a list with three | 412 | whereas (number-sequence 0.4 0.8 0.2) returns a list with three |
| 413 | elements. Thus, if some of the arguments are floats and one wants | 413 | elements. Thus, if some of the arguments are floats and one wants |
| 414 | to make sure that TO is included, one may have to explicitly write | 414 | to make sure that TO is included, one may have to explicitly write |
| 415 | TO as \(+ FROM \(* N INC)) or use a variable whose value was | 415 | TO as (+ FROM (* N INC)) or use a variable whose value was |
| 416 | computed with this exact expression. Alternatively, you can, | 416 | computed with this exact expression. Alternatively, you can, |
| 417 | of course, also replace TO with a slightly larger value | 417 | of course, also replace TO with a slightly larger value |
| 418 | \(or a slightly more negative value if INC is negative)." | 418 | \(or a slightly more negative value if INC is negative)." |
| @@ -784,8 +784,8 @@ KEY is a key sequence; noninteractively, it is a string or vector | |||
| 784 | of characters or event types, and non-ASCII characters with codes | 784 | of characters or event types, and non-ASCII characters with codes |
| 785 | above 127 (such as ISO Latin-1) can be included if you use a vector. | 785 | above 127 (such as ISO Latin-1) can be included if you use a vector. |
| 786 | 786 | ||
| 787 | The binding goes in the current buffer's local map, | 787 | The binding goes in the current buffer's local map, which in most |
| 788 | which in most cases is shared with all other buffers in the same major mode." | 788 | cases is shared with all other buffers in the same major mode." |
| 789 | (interactive "KSet key locally: \nCSet key %s locally to command: ") | 789 | (interactive "KSet key locally: \nCSet key %s locally to command: ") |
| 790 | (let ((map (current-local-map))) | 790 | (let ((map (current-local-map))) |
| 791 | (or map | 791 | (or map |
| @@ -821,7 +821,7 @@ in KEYMAP as NEWDEF those keys which are defined as OLDDEF in OLDMAP. | |||
| 821 | 821 | ||
| 822 | If you don't specify OLDMAP, you can usually get the same results | 822 | If you don't specify OLDMAP, you can usually get the same results |
| 823 | in a cleaner way with command remapping, like this: | 823 | in a cleaner way with command remapping, like this: |
| 824 | \(define-key KEYMAP [remap OLDDEF] NEWDEF) | 824 | (define-key KEYMAP [remap OLDDEF] NEWDEF) |
| 825 | \n(fn OLDDEF NEWDEF KEYMAP &optional OLDMAP)" | 825 | \n(fn OLDDEF NEWDEF KEYMAP &optional OLDMAP)" |
| 826 | ;; Don't document PREFIX in the doc string because we don't want to | 826 | ;; Don't document PREFIX in the doc string because we don't want to |
| 827 | ;; advertise it. It's meant for recursive calls only. Here's its | 827 | ;; advertise it. It's meant for recursive calls only. Here's its |
| @@ -2540,7 +2540,7 @@ Set this to nil at your own risk..." | |||
| 2540 | (defun locate-user-emacs-file (new-name &optional old-name) | 2540 | (defun locate-user-emacs-file (new-name &optional old-name) |
| 2541 | "Return an absolute per-user Emacs-specific file name. | 2541 | "Return an absolute per-user Emacs-specific file name. |
| 2542 | If NEW-NAME exists in `user-emacs-directory', return it. | 2542 | If NEW-NAME exists in `user-emacs-directory', return it. |
| 2543 | Else If OLD-NAME is non-nil and ~/OLD-NAME exists, return ~/OLD-NAME. | 2543 | Else if OLD-NAME is non-nil and ~/OLD-NAME exists, return ~/OLD-NAME. |
| 2544 | Else return NEW-NAME in `user-emacs-directory', creating the | 2544 | Else return NEW-NAME in `user-emacs-directory', creating the |
| 2545 | directory if it does not exist." | 2545 | directory if it does not exist." |
| 2546 | (convert-standard-filename | 2546 | (convert-standard-filename |
| @@ -3231,7 +3231,7 @@ than cosmetic ones, undo data may become corrupted. | |||
| 3231 | 3231 | ||
| 3232 | This macro will run BODY normally, but doesn't count its buffer | 3232 | This macro will run BODY normally, but doesn't count its buffer |
| 3233 | modifications as being buffer modifications. This affects things | 3233 | modifications as being buffer modifications. This affects things |
| 3234 | like buffer-modified-p, checking whether the file is locked by | 3234 | like `buffer-modified-p', checking whether the file is locked by |
| 3235 | someone else, running buffer modification hooks, and other things | 3235 | someone else, running buffer modification hooks, and other things |
| 3236 | of that nature. | 3236 | of that nature. |
| 3237 | 3237 | ||
| @@ -3536,7 +3536,7 @@ which separates, but is not part of, the substrings. If nil it defaults to | |||
| 3536 | `split-string-default-separators', normally \"[ \\f\\t\\n\\r\\v]+\", and | 3536 | `split-string-default-separators', normally \"[ \\f\\t\\n\\r\\v]+\", and |
| 3537 | OMIT-NULLS is forced to t. | 3537 | OMIT-NULLS is forced to t. |
| 3538 | 3538 | ||
| 3539 | If OMIT-NULLS is t, zero-length substrings are omitted from the list \(so | 3539 | If OMIT-NULLS is t, zero-length substrings are omitted from the list (so |
| 3540 | that for the default value of SEPARATORS leading and trailing whitespace | 3540 | that for the default value of SEPARATORS leading and trailing whitespace |
| 3541 | are effectively trimmed). If nil, all zero-length substrings are retained, | 3541 | are effectively trimmed). If nil, all zero-length substrings are retained, |
| 3542 | which correctly parses CSV format, for example. | 3542 | which correctly parses CSV format, for example. |
| @@ -3733,18 +3733,18 @@ If FILE is already loaded, evaluate FORM right now. | |||
| 3733 | If a matching file is loaded again, FORM will be evaluated again. | 3733 | If a matching file is loaded again, FORM will be evaluated again. |
| 3734 | 3734 | ||
| 3735 | If FILE is a string, it may be either an absolute or a relative file | 3735 | If FILE is a string, it may be either an absolute or a relative file |
| 3736 | name, and may have an extension \(e.g. \".el\") or may lack one, and | 3736 | name, and may have an extension (e.g. \".el\") or may lack one, and |
| 3737 | additionally may or may not have an extension denoting a compressed | 3737 | additionally may or may not have an extension denoting a compressed |
| 3738 | format \(e.g. \".gz\"). | 3738 | format (e.g. \".gz\"). |
| 3739 | 3739 | ||
| 3740 | When FILE is absolute, this first converts it to a true name by chasing | 3740 | When FILE is absolute, this first converts it to a true name by chasing |
| 3741 | symbolic links. Only a file of this name \(see next paragraph regarding | 3741 | symbolic links. Only a file of this name (see next paragraph regarding |
| 3742 | extensions) will trigger the evaluation of FORM. When FILE is relative, | 3742 | extensions) will trigger the evaluation of FORM. When FILE is relative, |
| 3743 | a file whose absolute true name ends in FILE will trigger evaluation. | 3743 | a file whose absolute true name ends in FILE will trigger evaluation. |
| 3744 | 3744 | ||
| 3745 | When FILE lacks an extension, a file name with any extension will trigger | 3745 | When FILE lacks an extension, a file name with any extension will trigger |
| 3746 | evaluation. Otherwise, its extension must match FILE's. A further | 3746 | evaluation. Otherwise, its extension must match FILE's. A further |
| 3747 | extension for a compressed format \(e.g. \".gz\") on FILE will not affect | 3747 | extension for a compressed format (e.g. \".gz\") on FILE will not affect |
| 3748 | this name matching. | 3748 | this name matching. |
| 3749 | 3749 | ||
| 3750 | Alternatively, FILE can be a feature (i.e. a symbol), in which case FORM | 3750 | Alternatively, FILE can be a feature (i.e. a symbol), in which case FORM |
diff --git a/src/ChangeLog.3 b/src/ChangeLog.3 index 2f798e1f0bc..fb1b96f738c 100644 --- a/src/ChangeLog.3 +++ b/src/ChangeLog.3 | |||
| @@ -15447,7 +15447,7 @@ | |||
| 15447 | * xterm.c (XTread_socket_hook): For X11, on map and unmap events | 15447 | * xterm.c (XTread_socket_hook): For X11, on map and unmap events |
| 15448 | check the window manager hints for iconification status. | 15448 | check the window manager hints for iconification status. |
| 15449 | 15449 | ||
| 15450 | * xterm.c (x_make_widow_icon): For X11, just request | 15450 | * xterm.c (x_make_window_icon): For X11, just request |
| 15451 | iconification of the window manager. | 15451 | iconification of the window manager. |
| 15452 | 15452 | ||
| 15453 | 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) | 15453 | 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) |