aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/simple.el52
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 @@
12008-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
12008-11-17 Juri Linkov <juri@jurta.org> 102008-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.
670This is useful for inserting control characters. 670This is useful for inserting control characters.
671With argument, insert ARG copies of the character.
671 672
672If the first character you type after this command is an octal digit, 673If the first character you type after this command is an octal digit,
673you should type a sequence of octal digits which specify a character code. 674you should type a sequence of octal digits which specify a character code.
@@ -1151,9 +1152,10 @@ the minibuffer, then read and evaluate the result."
1151A complex command is one which used the minibuffer. 1152A complex command is one which used the minibuffer.
1152The command is placed in the minibuffer as a Lisp form for editing. 1153The command is placed in the minibuffer as a Lisp form for editing.
1153The result is executed, repeating the command as changed. 1154The result is executed, repeating the command as changed.
1154If the command has been changed or is not the most recent previous command 1155If the command has been changed or is not the most recent previous
1155it is added to the front of the command history. 1156command it is added to the front of the command history.
1156You can use the minibuffer history commands \\<minibuffer-local-map>\\[next-history-element] and \\[previous-history-element] 1157You can use the minibuffer history commands \
1158\\<minibuffer-local-map>\\[next-history-element] and \\[previous-history-element]
1157to get different commands to edit and resubmit." 1159to 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.
1584Go to the history element by the absolute history position `hist-pos'." 1586Go 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.
1608Repeat this command to undo more changes. 1610Repeat this command to undo more changes.
1609A numeric argument serves as a repeat count. 1611A numeric ARG serves as a repeat count.
1610 1612
1611In Transient Mark mode when the mark is active, only undo changes within 1613In Transient Mark mode when the mark is active, only undo changes within
1612the current region. Similarly, when not in Transient Mark mode, just \\[universal-argument] 1614the 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.
1710Repeat this command to undo more changes. 1712Repeat this command to undo more changes.
1711A numeric argument serves as a repeat count. 1713A numeric ARG serves as a repeat count.
1712Contrary to `undo', this will not redo a previous undo." 1714Contrary 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
2051Output*' even though that buffer is not automatically displayed. 2053Output*' even though that buffer is not automatically displayed.
2052 2054
2053To specify a coding system for converting non-ASCII characters 2055To specify a coding system for converting non-ASCII characters
2054in the shell command output, use \\[universal-coding-system-argument] 2056in the shell command output, use \\[universal-coding-system-argument] \
2055before this command. 2057before this command.
2056 2058
2057Noninteractive callers can specify coding systems by binding 2059Noninteractive callers can specify coding systems by binding
@@ -2069,8 +2071,8 @@ and you did not specify \"insert it in the current buffer\",
2069the output can be displayed in the echo area or in its buffer. 2071the output can be displayed in the echo area or in its buffer.
2070If the output is short enough to display in the echo area 2072If 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.
2073the buffer containing the output is displayed. 2075Otherwise,the buffer containing the output is displayed.
2074 2076
2075If there is output and an error, and you did not specify \"insert it 2077If there is output and an error, and you did not specify \"insert it
2076in the current buffer\", a message about the error goes at the end 2078in 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.
3076With argument, rotate that many kills forward (or backward, if negative)." 3078With 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.
3136Case is ignored if `case-fold-search' is non-nil in the current buffer. 3138Case is ignored if `case-fold-search' is non-nil in the current buffer.
3137Goes backward if ARG is negative; error if CHAR not found." 3139Goes 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.
3155With prefix argument, kill that many lines from point. 3157With prefix argument ARG, kill that many lines from point.
3156Negative arguments kill lines backward. 3158Negative arguments kill lines backward.
3157With zero argument, kills the text before point on the current line. 3159With 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.
3206With prefix arg, kill that many lines starting from the current line. 3208With prefix ARG, kill that many lines starting from the current line.
3207If arg is negative, kill backward. Also kill the preceding newline. 3209If 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.\)
3209If arg is zero, kill current line but exclude the trailing newline." 3211If 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.
3558If no prefix arg and mark is already set there, just activate it. 3560If no prefix ARG and mark is already set there, just activate it.
3559Display `Mark set' unless the optional second arg NOMSG is non-nil." 3561Display `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."
3690This command works even when the mark is not active, 3692This command works even when the mark is not active,
3691and it reactivates the mark. 3693and it reactivates the mark.
3692 3694
3693If Transient Mark mode is on, a prefix arg deactivates the mark 3695If Transient Mark mode is on, a prefix ARG deactivates the mark
3694if it is active, and otherwise avoids reactivating it. If 3696if it is active, and otherwise avoids reactivating it. If
3695Transient Mark mode is off, a prefix arg enables Transient Mark 3697Transient Mark mode is off, a prefix ARG enables Transient Mark
3696mode temporarily." 3698mode 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].
4359Those commands will move to this position in the line moved to 4361Those commands will move to this position in the line moved to
4360rather than trying to keep the same horizontal position. 4362rather than trying to keep the same horizontal position.
4361With a non-nil argument, clears out the goal column 4363With a non-nil argument ARG, clears out the goal column
4362so that \\[next-line] and \\[previous-line] resume vertical motion. 4364so that \\[next-line] and \\[previous-line] resume vertical motion.
4363The goal column is stored in the variable `goal-column'." 4365The 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."
4412If there are only whitespace characters there, kill through the 4414If there are only whitespace characters there, kill through the
4413newline as well. 4415newline as well.
4414 4416
4415With prefix argument, kill that many lines from point. 4417With prefix argument ARG, kill that many lines from point.
4416Negative arguments kill lines backward. 4418Negative arguments kill lines backward.
4417With zero argument, kill the text before point on the current line. 4419With 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.
4727With argument, do this that many times." 4729With 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.
4758With argument, do this that many times." 4760With 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.
4764With argument, do this that many times." 4766With argument ARG, do this that many times."
4765 (interactive "p") 4767 (interactive "p")
4766 (kill-word (- arg))) 4768 (kill-word (- arg)))
4767 4769