aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el51
1 files changed, 23 insertions, 28 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 5901a1e3067..fc3a0b3d218 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -118,8 +118,10 @@ If no other buffer exists, the buffer `*scratch*' is returned."
118 118
119(defcustom next-error-highlight 0.5 119(defcustom next-error-highlight 0.5
120 "*Highlighting of locations in selected source buffers. 120 "*Highlighting of locations in selected source buffers.
121If number, highlight the locus in `next-error' face for given time in seconds. 121If a number, highlight the locus in `next-error' face for the given time
122If t, highlight the locus indefinitely until some other locus replaces it. 122in seconds, or until the next command is executed.
123If t, highlight the locus until the next command is executed, or until
124some other locus replaces it.
123If nil, don't highlight the locus in the source buffer. 125If nil, don't highlight the locus in the source buffer.
124If `fringe-arrow', indicate the locus by the fringe arrow." 126If `fringe-arrow', indicate the locus by the fringe arrow."
125 :type '(choice (number :tag "Highlight for specified time") 127 :type '(choice (number :tag "Highlight for specified time")
@@ -3083,7 +3085,7 @@ START and END specify the portion of the current buffer to be copied."
3083(defvar activate-mark-hook nil 3085(defvar activate-mark-hook nil
3084 "Hook run when the mark becomes active. 3086 "Hook run when the mark becomes active.
3085It is also run at the end of a command, if the mark is active and 3087It is also run at the end of a command, if the mark is active and
3086it is possible that the region may have changed") 3088it is possible that the region may have changed.")
3087 3089
3088(defvar deactivate-mark-hook nil 3090(defvar deactivate-mark-hook nil
3089 "Hook run when the mark becomes inactive.") 3091 "Hook run when the mark becomes inactive.")
@@ -3193,28 +3195,28 @@ will pop twice."
3193 :group 'editing) 3195 :group 'editing)
3194 3196
3195(defun set-mark-command (arg) 3197(defun set-mark-command (arg)
3196 "Set mark at where point is, or jump to mark. 3198 "Set mark where point is, or jump to mark.
3197With no prefix argument, set mark, and push old mark position on local 3199Setting the mark also sets the \"region\", which is the closest
3198mark ring; also push mark on global mark ring if last mark was set in 3200equivalent in Emacs to what some editors call the \"selection\".
3201
3202With no prefix argument, set mark and push old mark position on local
3203mark ring. Also, push mark on global mark ring, if last mark was set in
3199another buffer. Immediately repeating the command activates 3204another buffer. Immediately repeating the command activates
3200`transient-mark-mode' temporarily. 3205`transient-mark-mode' temporarily.
3201 3206
3202With argument, e.g. \\[universal-argument] \\[set-mark-command], \ 3207With prefix argument \(e.g., \\[universal-argument] \\[set-mark-command]\), \
3203jump to mark, and pop a new position 3208jump to mark, and set mark from
3204for mark off the local mark ring \(this does not affect the global 3209position popped off the local mark ring \(this does not affect the global
3205mark ring\). Use \\[pop-global-mark] to jump to a mark off the global 3210mark ring\). Use \\[pop-global-mark] to jump to a mark popped off the global
3206mark ring \(see `pop-global-mark'\). 3211mark ring \(see `pop-global-mark'\).
3207 3212
3208If `set-mark-command-repeat-pop' is non-nil, repeating 3213If `set-mark-command-repeat-pop' is non-nil, repeating
3209the \\[set-mark-command] command with no prefix pops the next position 3214the \\[set-mark-command] command with no prefix argument pops the next position
3210off the local (or global) mark ring and jumps there. 3215off the local (or global) mark ring and jumps there.
3211 3216
3212With a double \\[universal-argument] prefix argument, e.g. \\[universal-argument] \ 3217With a double \\[universal-argument] prefix argument \(e.g., \\[universal-argument] \
3213\\[universal-argument] \\[set-mark-command], unconditionally 3218\\[universal-argument] \\[set-mark-command]\), unconditionally
3214set mark where point is. 3219set mark where point is, even if `set-mark-command-repeat-pop' is non-nil.
3215
3216Setting the mark also sets the \"region\", which is the closest
3217equivalent in Emacs to what some editors call the \"selection\".
3218 3220
3219Novice Emacs Lisp programmers often try to use the mark for the wrong 3221Novice Emacs Lisp programmers often try to use the mark for the wrong
3220purposes. See the documentation of `set-mark' for more information." 3222purposes. See the documentation of `set-mark' for more information."
@@ -4468,7 +4470,7 @@ it skips the contents of comments that end before point."
4468 (save-excursion 4470 (save-excursion
4469 (save-restriction 4471 (save-restriction
4470 (if blink-matching-paren-distance 4472 (if blink-matching-paren-distance
4471 (narrow-to-region (max (point-min) 4473 (narrow-to-region (max (minibuffer-prompt-end)
4472 (- (point) blink-matching-paren-distance)) 4474 (- (point) blink-matching-paren-distance))
4473 oldpos)) 4475 oldpos))
4474 (condition-case () 4476 (condition-case ()
@@ -4718,16 +4720,9 @@ SEND-ACTIONS is a list of actions to call when the message is sent.
4718Each action has the form (FUNCTION . ARGS)." 4720Each action has the form (FUNCTION . ARGS)."
4719 (interactive 4721 (interactive
4720 (list nil nil nil current-prefix-arg)) 4722 (list nil nil nil current-prefix-arg))
4721 (let ((function (get mail-user-agent 'composefunc)) 4723 (let ((function (get mail-user-agent 'composefunc)))
4722 result-buffer) 4724 (funcall function to subject other-headers continue
4723 (if switch-function 4725 switch-function yank-action send-actions)))
4724 (save-window-excursion
4725 (prog1
4726 (funcall function to subject other-headers continue
4727 nil yank-action send-actions)
4728 (funcall switch-function (current-buffer))))
4729 (funcall function to subject other-headers continue
4730 nil yank-action send-actions))))
4731 4726
4732(defun compose-mail-other-window (&optional to subject other-headers continue 4727(defun compose-mail-other-window (&optional to subject other-headers continue
4733 yank-action send-actions) 4728 yank-action send-actions)