diff options
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6d7e3d0a3d9..b023a7b780f 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2549,7 +2549,9 @@ to make one entry in the kill ring. | |||
| 2549 | In Lisp code, optional third arg YANK-HANDLER, if non-nil, | 2549 | In Lisp code, optional third arg YANK-HANDLER, if non-nil, |
| 2550 | specifies the yank-handler text property to be set on the killed | 2550 | specifies the yank-handler text property to be set on the killed |
| 2551 | text. See `insert-for-yank'." | 2551 | text. See `insert-for-yank'." |
| 2552 | (interactive "r") | 2552 | ;; Pass point first, then mark, because the order matters |
| 2553 | ;; when calling kill-append. | ||
| 2554 | (interactive (list (point) (mark))) | ||
| 2553 | (condition-case nil | 2555 | (condition-case nil |
| 2554 | (let ((string (filter-buffer-substring beg end t))) | 2556 | (let ((string (filter-buffer-substring beg end t))) |
| 2555 | (when string ;STRING is nil if BEG = END | 2557 | (when string ;STRING is nil if BEG = END |
| @@ -3643,10 +3645,14 @@ Outline mode sets this." | |||
| 3643 | (setq new (point)) | 3645 | (setq new (point)) |
| 3644 | 3646 | ||
| 3645 | ;; Process intangibility within a line. | 3647 | ;; Process intangibility within a line. |
| 3646 | ;; Move to the chosen destination position from above, | 3648 | ;; With inhibit-point-motion-hooks bound to nil, a call to |
| 3647 | ;; with intangibility processing enabled. | 3649 | ;; goto-char moves point past intangible text. |
| 3648 | 3650 | ||
| 3649 | ;; Avoid calling point-entered and point-left. | 3651 | ;; However, inhibit-point-motion-hooks controls both the |
| 3652 | ;; intangibility and the point-entered/point-left hooks. The | ||
| 3653 | ;; following hack avoids calling the point-* hooks | ||
| 3654 | ;; unnecessarily. Note that we move *forward* past intangible | ||
| 3655 | ;; text when the initial and final points are the same. | ||
| 3650 | (goto-char new) | 3656 | (goto-char new) |
| 3651 | (let ((inhibit-point-motion-hooks nil)) | 3657 | (let ((inhibit-point-motion-hooks nil)) |
| 3652 | (goto-char new) | 3658 | (goto-char new) |
| @@ -4241,7 +4247,7 @@ The variable `selective-display' has a separate value for each buffer." | |||
| 4241 | (defvaralias 'indicate-unused-lines 'indicate-empty-lines) | 4247 | (defvaralias 'indicate-unused-lines 'indicate-empty-lines) |
| 4242 | (defvaralias 'default-indicate-unused-lines 'default-indicate-empty-lines) | 4248 | (defvaralias 'default-indicate-unused-lines 'default-indicate-empty-lines) |
| 4243 | 4249 | ||
| 4244 | (defun toggle-truncate-lines (arg) | 4250 | (defun toggle-truncate-lines (&optional arg) |
| 4245 | "Toggle whether to fold or truncate long lines on the screen. | 4251 | "Toggle whether to fold or truncate long lines on the screen. |
| 4246 | With arg, truncate long lines iff arg is positive. | 4252 | With arg, truncate long lines iff arg is positive. |
| 4247 | Note that in side-by-side windows, truncation is always enabled." | 4253 | Note that in side-by-side windows, truncation is always enabled." |