diff options
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/simple.el | 52 |
2 files changed, 36 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93fcad496d3..fb36bfc9348 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-11-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * simple.el (quoted-insert, minibuffer-history-isearch-pop-state, undo) | ||
| 4 | (undo-only, rotate-yank-pointer, kill-whole-line, push-mark-command) | ||
| 5 | (exchange-point-and-mark, set-goal-column, kill-line, backward-word) | ||
| 6 | (kill-word, backward-kill-word, zap-to-char): Doc fixes. | ||
| 7 | (shell-command, repeat-complex-command): Reflow docstrings. | ||
| 8 | (pop-to-mark-command): Fix typos in docstring. | ||
| 9 | |||
| 1 | 2008-11-17 Juri Linkov <juri@jurta.org> | 10 | 2008-11-17 Juri Linkov <juri@jurta.org> |
| 2 | 11 | ||
| 3 | * isearch.el (isearch-filter-predicate): Rename from | 12 | * isearch.el (isearch-filter-predicate): Rename from |
diff --git a/lisp/simple.el b/lisp/simple.el index ac3ce2b248b..d8470cab4a3 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -668,6 +668,7 @@ column specified by the function `current-left-margin'." | |||
| 668 | (defun quoted-insert (arg) | 668 | (defun quoted-insert (arg) |
| 669 | "Read next input character and insert it. | 669 | "Read next input character and insert it. |
| 670 | This is useful for inserting control characters. | 670 | This is useful for inserting control characters. |
| 671 | With argument, insert ARG copies of the character. | ||
| 671 | 672 | ||
| 672 | If the first character you type after this command is an octal digit, | 673 | If the first character you type after this command is an octal digit, |
| 673 | you should type a sequence of octal digits which specify a character code. | 674 | you should type a sequence of octal digits which specify a character code. |
| @@ -1151,9 +1152,10 @@ the minibuffer, then read and evaluate the result." | |||
| 1151 | A complex command is one which used the minibuffer. | 1152 | A complex command is one which used the minibuffer. |
| 1152 | The command is placed in the minibuffer as a Lisp form for editing. | 1153 | The command is placed in the minibuffer as a Lisp form for editing. |
| 1153 | The result is executed, repeating the command as changed. | 1154 | The result is executed, repeating the command as changed. |
| 1154 | If the command has been changed or is not the most recent previous command | 1155 | If the command has been changed or is not the most recent previous |
| 1155 | it is added to the front of the command history. | 1156 | command it is added to the front of the command history. |
| 1156 | You can use the minibuffer history commands \\<minibuffer-local-map>\\[next-history-element] and \\[previous-history-element] | 1157 | You can use the minibuffer history commands \ |
| 1158 | \\<minibuffer-local-map>\\[next-history-element] and \\[previous-history-element] | ||
| 1157 | to get different commands to edit and resubmit." | 1159 | to get different commands to edit and resubmit." |
| 1158 | (interactive "p") | 1160 | (interactive "p") |
| 1159 | (let ((elt (nth (1- arg) command-history)) | 1161 | (let ((elt (nth (1- arg) command-history)) |
| @@ -1581,7 +1583,7 @@ in the search status stack." | |||
| 1581 | 1583 | ||
| 1582 | (defun minibuffer-history-isearch-pop-state (cmd hist-pos) | 1584 | (defun minibuffer-history-isearch-pop-state (cmd hist-pos) |
| 1583 | "Restore the minibuffer history search state. | 1585 | "Restore the minibuffer history search state. |
| 1584 | Go to the history element by the absolute history position `hist-pos'." | 1586 | Go to the history element by the absolute history position HIST-POS." |
| 1585 | (goto-history-element hist-pos)) | 1587 | (goto-history-element hist-pos)) |
| 1586 | 1588 | ||
| 1587 | 1589 | ||
| @@ -1606,7 +1608,7 @@ If t, we undid all the way to the end of it.") | |||
| 1606 | (defun undo (&optional arg) | 1608 | (defun undo (&optional arg) |
| 1607 | "Undo some previous changes. | 1609 | "Undo some previous changes. |
| 1608 | Repeat this command to undo more changes. | 1610 | Repeat this command to undo more changes. |
| 1609 | A numeric argument serves as a repeat count. | 1611 | A numeric ARG serves as a repeat count. |
| 1610 | 1612 | ||
| 1611 | In Transient Mark mode when the mark is active, only undo changes within | 1613 | In Transient Mark mode when the mark is active, only undo changes within |
| 1612 | the current region. Similarly, when not in Transient Mark mode, just \\[universal-argument] | 1614 | the current region. Similarly, when not in Transient Mark mode, just \\[universal-argument] |
| @@ -1708,7 +1710,7 @@ No argument or nil as argument means do this for the current buffer." | |||
| 1708 | (defun undo-only (&optional arg) | 1710 | (defun undo-only (&optional arg) |
| 1709 | "Undo some previous changes. | 1711 | "Undo some previous changes. |
| 1710 | Repeat this command to undo more changes. | 1712 | Repeat this command to undo more changes. |
| 1711 | A numeric argument serves as a repeat count. | 1713 | A numeric ARG serves as a repeat count. |
| 1712 | Contrary to `undo', this will not redo a previous undo." | 1714 | Contrary to `undo', this will not redo a previous undo." |
| 1713 | (interactive "*p") | 1715 | (interactive "*p") |
| 1714 | (let ((undo-no-redo t)) (undo arg))) | 1716 | (let ((undo-no-redo t)) (undo arg))) |
| @@ -2051,7 +2053,7 @@ there, but it is nonetheless available in buffer `*Shell Command | |||
| 2051 | Output*' even though that buffer is not automatically displayed. | 2053 | Output*' even though that buffer is not automatically displayed. |
| 2052 | 2054 | ||
| 2053 | To specify a coding system for converting non-ASCII characters | 2055 | To specify a coding system for converting non-ASCII characters |
| 2054 | in the shell command output, use \\[universal-coding-system-argument] | 2056 | in the shell command output, use \\[universal-coding-system-argument] \ |
| 2055 | before this command. | 2057 | before this command. |
| 2056 | 2058 | ||
| 2057 | Noninteractive callers can specify coding systems by binding | 2059 | Noninteractive callers can specify coding systems by binding |
| @@ -2069,8 +2071,8 @@ and you did not specify \"insert it in the current buffer\", | |||
| 2069 | the output can be displayed in the echo area or in its buffer. | 2071 | the output can be displayed in the echo area or in its buffer. |
| 2070 | If the output is short enough to display in the echo area | 2072 | If the output is short enough to display in the echo area |
| 2071 | \(determined by the variable `max-mini-window-height' if | 2073 | \(determined by the variable `max-mini-window-height' if |
| 2072 | `resize-mini-windows' is non-nil), it is shown there. Otherwise, | 2074 | `resize-mini-windows' is non-nil), it is shown there. |
| 2073 | the buffer containing the output is displayed. | 2075 | Otherwise,the buffer containing the output is displayed. |
| 2074 | 2076 | ||
| 2075 | If there is output and an error, and you did not specify \"insert it | 2077 | If there is output and an error, and you did not specify \"insert it |
| 2076 | in the current buffer\", a message about the error goes at the end | 2078 | in the current buffer\", a message about the error goes at the end |
| @@ -3073,7 +3075,7 @@ See also the command `yank-pop' (\\[yank-pop])." | |||
| 3073 | 3075 | ||
| 3074 | (defun rotate-yank-pointer (arg) | 3076 | (defun rotate-yank-pointer (arg) |
| 3075 | "Rotate the yanking point in the kill ring. | 3077 | "Rotate the yanking point in the kill ring. |
| 3076 | With argument, rotate that many kills forward (or backward, if negative)." | 3078 | With ARG, rotate that many kills forward (or backward, if negative)." |
| 3077 | (interactive "p") | 3079 | (interactive "p") |
| 3078 | (current-kill arg)) | 3080 | (current-kill arg)) |
| 3079 | 3081 | ||
| @@ -3132,7 +3134,7 @@ and KILLP is t if a prefix arg was specified." | |||
| 3132 | killp)) | 3134 | killp)) |
| 3133 | 3135 | ||
| 3134 | (defun zap-to-char (arg char) | 3136 | (defun zap-to-char (arg char) |
| 3135 | "Kill up to and including ARG'th occurrence of CHAR. | 3137 | "Kill up to and including ARGth occurrence of CHAR. |
| 3136 | Case is ignored if `case-fold-search' is non-nil in the current buffer. | 3138 | Case is ignored if `case-fold-search' is non-nil in the current buffer. |
| 3137 | Goes backward if ARG is negative; error if CHAR not found." | 3139 | Goes backward if ARG is negative; error if CHAR not found." |
| 3138 | (interactive "p\ncZap to char: ") | 3140 | (interactive "p\ncZap to char: ") |
| @@ -3152,7 +3154,7 @@ Goes backward if ARG is negative; error if CHAR not found." | |||
| 3152 | 3154 | ||
| 3153 | (defun kill-line (&optional arg) | 3155 | (defun kill-line (&optional arg) |
| 3154 | "Kill the rest of the current line; if no nonblanks there, kill thru newline. | 3156 | "Kill the rest of the current line; if no nonblanks there, kill thru newline. |
| 3155 | With prefix argument, kill that many lines from point. | 3157 | With prefix argument ARG, kill that many lines from point. |
| 3156 | Negative arguments kill lines backward. | 3158 | Negative arguments kill lines backward. |
| 3157 | With zero argument, kills the text before point on the current line. | 3159 | With zero argument, kills the text before point on the current line. |
| 3158 | 3160 | ||
| @@ -3203,10 +3205,10 @@ even beep.)" | |||
| 3203 | 3205 | ||
| 3204 | (defun kill-whole-line (&optional arg) | 3206 | (defun kill-whole-line (&optional arg) |
| 3205 | "Kill current line. | 3207 | "Kill current line. |
| 3206 | With prefix arg, kill that many lines starting from the current line. | 3208 | With prefix ARG, kill that many lines starting from the current line. |
| 3207 | If arg is negative, kill backward. Also kill the preceding newline. | 3209 | If ARG is negative, kill backward. Also kill the preceding newline. |
| 3208 | \(This is meant to make \\[repeat] work well with negative arguments.\) | 3210 | \(This is meant to make \\[repeat] work well with negative arguments.\) |
| 3209 | If arg is zero, kill current line but exclude the trailing newline." | 3211 | If ARG is zero, kill current line but exclude the trailing newline." |
| 3210 | (interactive "p") | 3212 | (interactive "p") |
| 3211 | (if (and (> arg 0) (eobp) (save-excursion (forward-visible-line 0) (eobp))) | 3213 | (if (and (> arg 0) (eobp) (save-excursion (forward-visible-line 0) (eobp))) |
| 3212 | (signal 'end-of-buffer nil)) | 3214 | (signal 'end-of-buffer nil)) |
| @@ -3543,8 +3545,8 @@ Start discarding off end if gets this big." | |||
| 3543 | :group 'editing-basics) | 3545 | :group 'editing-basics) |
| 3544 | 3546 | ||
| 3545 | (defun pop-to-mark-command () | 3547 | (defun pop-to-mark-command () |
| 3546 | "Jump to mark, and pop a new position for mark off the ring | 3548 | "Jump to mark, and pop a new position for mark off the ring. |
| 3547 | \(does not affect global mark ring\)." | 3549 | \(Does not affect global mark ring\)." |
| 3548 | (interactive) | 3550 | (interactive) |
| 3549 | (if (null (mark t)) | 3551 | (if (null (mark t)) |
| 3550 | (error "No mark set in this buffer") | 3552 | (error "No mark set in this buffer") |
| @@ -3555,7 +3557,7 @@ Start discarding off end if gets this big." | |||
| 3555 | 3557 | ||
| 3556 | (defun push-mark-command (arg &optional nomsg) | 3558 | (defun push-mark-command (arg &optional nomsg) |
| 3557 | "Set mark at where point is. | 3559 | "Set mark at where point is. |
| 3558 | If no prefix arg and mark is already set there, just activate it. | 3560 | If no prefix ARG and mark is already set there, just activate it. |
| 3559 | Display `Mark set' unless the optional second arg NOMSG is non-nil." | 3561 | Display `Mark set' unless the optional second arg NOMSG is non-nil." |
| 3560 | (interactive "P") | 3562 | (interactive "P") |
| 3561 | (let ((mark (marker-position (mark-marker)))) | 3563 | (let ((mark (marker-position (mark-marker)))) |
| @@ -3690,9 +3692,9 @@ Does not set point. Does nothing if mark ring is empty." | |||
| 3690 | This command works even when the mark is not active, | 3692 | This command works even when the mark is not active, |
| 3691 | and it reactivates the mark. | 3693 | and it reactivates the mark. |
| 3692 | 3694 | ||
| 3693 | If Transient Mark mode is on, a prefix arg deactivates the mark | 3695 | If Transient Mark mode is on, a prefix ARG deactivates the mark |
| 3694 | if it is active, and otherwise avoids reactivating it. If | 3696 | if it is active, and otherwise avoids reactivating it. If |
| 3695 | Transient Mark mode is off, a prefix arg enables Transient Mark | 3697 | Transient Mark mode is off, a prefix ARG enables Transient Mark |
| 3696 | mode temporarily." | 3698 | mode temporarily." |
| 3697 | (interactive "P") | 3699 | (interactive "P") |
| 3698 | (let ((omark (mark t)) | 3700 | (let ((omark (mark t)) |
| @@ -4358,7 +4360,7 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 4358 | "Set the current horizontal position as a goal for \\[next-line] and \\[previous-line]. | 4360 | "Set the current horizontal position as a goal for \\[next-line] and \\[previous-line]. |
| 4359 | Those commands will move to this position in the line moved to | 4361 | Those commands will move to this position in the line moved to |
| 4360 | rather than trying to keep the same horizontal position. | 4362 | rather than trying to keep the same horizontal position. |
| 4361 | With a non-nil argument, clears out the goal column | 4363 | With a non-nil argument ARG, clears out the goal column |
| 4362 | so that \\[next-line] and \\[previous-line] resume vertical motion. | 4364 | so that \\[next-line] and \\[previous-line] resume vertical motion. |
| 4363 | The goal column is stored in the variable `goal-column'." | 4365 | The goal column is stored in the variable `goal-column'." |
| 4364 | (interactive "P") | 4366 | (interactive "P") |
| @@ -4412,7 +4414,7 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 4412 | If there are only whitespace characters there, kill through the | 4414 | If there are only whitespace characters there, kill through the |
| 4413 | newline as well. | 4415 | newline as well. |
| 4414 | 4416 | ||
| 4415 | With prefix argument, kill that many lines from point. | 4417 | With prefix argument ARG, kill that many lines from point. |
| 4416 | Negative arguments kill lines backward. | 4418 | Negative arguments kill lines backward. |
| 4417 | With zero argument, kill the text before point on the current line. | 4419 | With zero argument, kill the text before point on the current line. |
| 4418 | 4420 | ||
| @@ -4724,7 +4726,7 @@ With argument 0, interchanges line point is in with line mark is in." | |||
| 4724 | 4726 | ||
| 4725 | (defun backward-word (&optional arg) | 4727 | (defun backward-word (&optional arg) |
| 4726 | "Move backward until encountering the beginning of a word. | 4728 | "Move backward until encountering the beginning of a word. |
| 4727 | With argument, do this that many times." | 4729 | With argument ARG, do this that many times." |
| 4728 | (interactive "^p") | 4730 | (interactive "^p") |
| 4729 | (forward-word (- (or arg 1)))) | 4731 | (forward-word (- (or arg 1)))) |
| 4730 | 4732 | ||
| @@ -4755,13 +4757,13 @@ it marks the next ARG words after the ones already marked." | |||
| 4755 | 4757 | ||
| 4756 | (defun kill-word (arg) | 4758 | (defun kill-word (arg) |
| 4757 | "Kill characters forward until encountering the end of a word. | 4759 | "Kill characters forward until encountering the end of a word. |
| 4758 | With argument, do this that many times." | 4760 | With argument ARG, do this that many times." |
| 4759 | (interactive "p") | 4761 | (interactive "p") |
| 4760 | (kill-region (point) (progn (forward-word arg) (point)))) | 4762 | (kill-region (point) (progn (forward-word arg) (point)))) |
| 4761 | 4763 | ||
| 4762 | (defun backward-kill-word (arg) | 4764 | (defun backward-kill-word (arg) |
| 4763 | "Kill characters backward until encountering the beginning of a word. | 4765 | "Kill characters backward until encountering the beginning of a word. |
| 4764 | With argument, do this that many times." | 4766 | With argument ARG, do this that many times." |
| 4765 | (interactive "p") | 4767 | (interactive "p") |
| 4766 | (kill-word (- arg))) | 4768 | (kill-word (- arg))) |
| 4767 | 4769 | ||