aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-10-18 10:56:46 +0000
committerRichard M. Stallman2006-10-18 10:56:46 +0000
commit631890d8b95b828d3c56880c74fece58bf8ad4bf (patch)
tree430326e9dca6c1e88843edd5024340021216e649
parent6db11765bf27e549c08ab52daadca5b163aaf95e (diff)
downloademacs-631890d8b95b828d3c56880c74fece58bf8ad4bf.tar.gz
emacs-631890d8b95b828d3c56880c74fece58bf8ad4bf.zip
(insert-for-yank-1): If last inserted char has properties,
mark them as rear-nonsticky.
-rw-r--r--lisp/subr.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 15d819063a4..1f874be60e0 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2195,6 +2195,12 @@ If UNDO is present and non-nil, it is a function that will be called
2195 2195
2196 (unless (nth 2 handler) ;; NOEXCLUDE 2196 (unless (nth 2 handler) ;; NOEXCLUDE
2197 (remove-yank-excluded-properties opoint (point))) 2197 (remove-yank-excluded-properties opoint (point)))
2198
2199 ;; If last inserted char has properties, mark them as rear-nonsticky.
2200 (if (and (> end opoint)
2201 (text-properties-at (1- end)))
2202 (put-text-property (1- end) end 'rear-nonsticky t))
2203
2198 (if (eq yank-undo-function t) ;; not set by FUNCTION 2204 (if (eq yank-undo-function t) ;; not set by FUNCTION
2199 (setq yank-undo-function (nth 3 handler))) ;; UNDO 2205 (setq yank-undo-function (nth 3 handler))) ;; UNDO
2200 (if (nth 4 handler) ;; COMMAND 2206 (if (nth 4 handler) ;; COMMAND