]> git.eshelyaron.com Git - emacs.git/commitdiff
(kill-new): Put yank-handler property on the entire string.
authorLuc Teirlinck <teirllm@auburn.edu>
Fri, 13 Feb 2004 23:10:59 +0000 (23:10 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Fri, 13 Feb 2004 23:10:59 +0000 (23:10 +0000)
lisp/ChangeLog
lisp/simple.el

index 8a93bde35756ce23b46385fdd4b6225bf0cc63ad..6e6f513b0e9dd996f3e0bbacea961fc0385251eb 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-13  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * simple.el (kill-new): Put yank-handler property on the entire
+       string.
+
 2004-02-11  Luc Teirlinck  <teirllm@auburn.edu>
 
        * simple.el (kill-append): Doc fix.
index 4fa209f161e24a3bfd6c024137b5744449c228d2..8017878dd2ace507c9b96e80aeaa77285eca4435 100644 (file)
@@ -1842,7 +1842,8 @@ may access and use elements from the kill-ring directly, the STRING
 argument should still be a \"useful\" string for such uses."
   (if (> (length string) 0)
       (if yank-handler
-         (put-text-property 0 1 'yank-handler yank-handler string))
+         (put-text-property 0 (length string)
+                            'yank-handler yank-handler string))
     (if yank-handler
        (signal 'args-out-of-range
                (list string "yank-handler specified for empty string"))))