diff options
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 51 |
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. |
| 121 | If number, highlight the locus in `next-error' face for given time in seconds. | 121 | If a number, highlight the locus in `next-error' face for the given time |
| 122 | If t, highlight the locus indefinitely until some other locus replaces it. | 122 | in seconds, or until the next command is executed. |
| 123 | If t, highlight the locus until the next command is executed, or until | ||
| 124 | some other locus replaces it. | ||
| 123 | If nil, don't highlight the locus in the source buffer. | 125 | If nil, don't highlight the locus in the source buffer. |
| 124 | If `fringe-arrow', indicate the locus by the fringe arrow." | 126 | If `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. |
| 3085 | It is also run at the end of a command, if the mark is active and | 3087 | It is also run at the end of a command, if the mark is active and |
| 3086 | it is possible that the region may have changed") | 3088 | it 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. |
| 3197 | With no prefix argument, set mark, and push old mark position on local | 3199 | Setting the mark also sets the \"region\", which is the closest |
| 3198 | mark ring; also push mark on global mark ring if last mark was set in | 3200 | equivalent in Emacs to what some editors call the \"selection\". |
| 3201 | |||
| 3202 | With no prefix argument, set mark and push old mark position on local | ||
| 3203 | mark ring. Also, push mark on global mark ring, if last mark was set in | ||
| 3199 | another buffer. Immediately repeating the command activates | 3204 | another buffer. Immediately repeating the command activates |
| 3200 | `transient-mark-mode' temporarily. | 3205 | `transient-mark-mode' temporarily. |
| 3201 | 3206 | ||
| 3202 | With argument, e.g. \\[universal-argument] \\[set-mark-command], \ | 3207 | With prefix argument \(e.g., \\[universal-argument] \\[set-mark-command]\), \ |
| 3203 | jump to mark, and pop a new position | 3208 | jump to mark, and set mark from |
| 3204 | for mark off the local mark ring \(this does not affect the global | 3209 | position popped off the local mark ring \(this does not affect the global |
| 3205 | mark ring\). Use \\[pop-global-mark] to jump to a mark off the global | 3210 | mark ring\). Use \\[pop-global-mark] to jump to a mark popped off the global |
| 3206 | mark ring \(see `pop-global-mark'\). | 3211 | mark ring \(see `pop-global-mark'\). |
| 3207 | 3212 | ||
| 3208 | If `set-mark-command-repeat-pop' is non-nil, repeating | 3213 | If `set-mark-command-repeat-pop' is non-nil, repeating |
| 3209 | the \\[set-mark-command] command with no prefix pops the next position | 3214 | the \\[set-mark-command] command with no prefix argument pops the next position |
| 3210 | off the local (or global) mark ring and jumps there. | 3215 | off the local (or global) mark ring and jumps there. |
| 3211 | 3216 | ||
| 3212 | With a double \\[universal-argument] prefix argument, e.g. \\[universal-argument] \ | 3217 | With a double \\[universal-argument] prefix argument \(e.g., \\[universal-argument] \ |
| 3213 | \\[universal-argument] \\[set-mark-command], unconditionally | 3218 | \\[universal-argument] \\[set-mark-command]\), unconditionally |
| 3214 | set mark where point is. | 3219 | set mark where point is, even if `set-mark-command-repeat-pop' is non-nil. |
| 3215 | |||
| 3216 | Setting the mark also sets the \"region\", which is the closest | ||
| 3217 | equivalent in Emacs to what some editors call the \"selection\". | ||
| 3218 | 3220 | ||
| 3219 | Novice Emacs Lisp programmers often try to use the mark for the wrong | 3221 | Novice Emacs Lisp programmers often try to use the mark for the wrong |
| 3220 | purposes. See the documentation of `set-mark' for more information." | 3222 | purposes. 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. | |||
| 4718 | Each action has the form (FUNCTION . ARGS)." | 4720 | Each 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) |