projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33828e4
)
Fix a kill-append regression
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 11 Apr 2022 10:40:50 +0000
(12:40 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 11 Apr 2022 10:40:56 +0000
(12:40 +0200)
* lisp/simple.el (kill-append): Fix a regression when
kill-ring-max is zero (bug#54842).
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index a8ca9600aff285bed3e64a23b2dd706459b1895c..b9cb957064df8acc569f85e279ac8ecd1b69b28a 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-5183,7
+5183,7
@@
If `kill-append-merge-undo' is non-nil, remove the last undo
boundary in the current buffer."
(let ((cur (car kill-ring)))
(kill-new (if before-p (concat string cur) (concat cur string))
- (or (
string= cur ""
)
+ (or (
= (length cur) 0
)
(null (get-text-property 0 'yank-handler cur)))))
(when (and kill-append-merge-undo (not buffer-read-only))
(let ((prev buffer-undo-list)