aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLuc Teirlinck2004-02-13 23:10:59 +0000
committerLuc Teirlinck2004-02-13 23:10:59 +0000
commit7e46b7bf2402b2a333f597edf591c9b39c773838 (patch)
tree9b6c022044c7ce9d43f14435338e90e221bdbc58 /lisp
parent6f6b0433436856f8e6c1c506f49c976687a59d4d (diff)
downloademacs-7e46b7bf2402b2a333f597edf591c9b39c773838.tar.gz
emacs-7e46b7bf2402b2a333f597edf591c9b39c773838.zip
(kill-new): Put yank-handler property on the entire string.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a93bde3575..6e6f513b0e9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12004-02-13 Luc Teirlinck <teirllm@auburn.edu>
2
3 * simple.el (kill-new): Put yank-handler property on the entire
4 string.
5
12004-02-11 Luc Teirlinck <teirllm@auburn.edu> 62004-02-11 Luc Teirlinck <teirllm@auburn.edu>
2 7
3 * simple.el (kill-append): Doc fix. 8 * simple.el (kill-append): Doc fix.
diff --git a/lisp/simple.el b/lisp/simple.el
index 4fa209f161e..8017878dd2a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1842,7 +1842,8 @@ may access and use elements from the kill-ring directly, the STRING
1842argument should still be a \"useful\" string for such uses." 1842argument should still be a \"useful\" string for such uses."
1843 (if (> (length string) 0) 1843 (if (> (length string) 0)
1844 (if yank-handler 1844 (if yank-handler
1845 (put-text-property 0 1 'yank-handler yank-handler string)) 1845 (put-text-property 0 (length string)
1846 'yank-handler yank-handler string))
1846 (if yank-handler 1847 (if yank-handler
1847 (signal 'args-out-of-range 1848 (signal 'args-out-of-range
1848 (list string "yank-handler specified for empty string")))) 1849 (list string "yank-handler specified for empty string"))))