diff options
| author | Luc Teirlinck | 2004-02-13 23:10:59 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-02-13 23:10:59 +0000 |
| commit | 7e46b7bf2402b2a333f597edf591c9b39c773838 (patch) | |
| tree | 9b6c022044c7ce9d43f14435338e90e221bdbc58 /lisp | |
| parent | 6f6b0433436856f8e6c1c506f49c976687a59d4d (diff) | |
| download | emacs-7e46b7bf2402b2a333f597edf591c9b39c773838.tar.gz emacs-7e46b7bf2402b2a333f597edf591c9b39c773838.zip | |
(kill-new): Put yank-handler property on the entire string.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 3 |
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 @@ | |||
| 1 | 2004-02-13 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * simple.el (kill-new): Put yank-handler property on the entire | ||
| 4 | string. | ||
| 5 | |||
| 1 | 2004-02-11 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2004-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 | |||
| 1842 | argument should still be a \"useful\" string for such uses." | 1842 | argument 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")))) |