Commit 8a7cda9b authored by Kai Großjohann's avatar Kai Großjohann

(kill-region): If nothing was killed, and the

previous command was not a kill, break kill sequence.
parent 7076c5cd
2003-05-28 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net>
* simple.el (kill-region): If nothing was killed, and the
previous command was not a kill, break kill sequence.
2003-05-28 Richard M. Stallman <rms@gnu.org>
* textmodes/refill.el (refill-fill-paragraph-at):
......
......@@ -1913,7 +1913,8 @@ text property to be set on the killed text. See `insert-for-yank'."
(if (eq last-command 'kill-region)
(kill-append string (< end beg) yank-handler)
(kill-new string nil yank-handler)))
(setq this-command 'kill-region))
(when (or string (eq last-command 'kill-region))
(setq this-command 'kill-region)))
((buffer-read-only text-read-only)
;; The code above failed because the buffer, or some of the characters
;; in the region, are read-only.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment