mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(kill-region): Use = to compare positions.
This commit is contained in:
parent
8d8aa69a5b
commit
713dca1ca4
@ -1120,7 +1120,8 @@ to make one entry in the kill ring."
|
||||
;; ring to share the same string object. This code does that.
|
||||
((not (or (eq buffer-undo-list t)
|
||||
(eq last-command 'kill-region)
|
||||
(equal beg end)))
|
||||
;; Use = since positions may be numbers or markers.
|
||||
(= beg end)))
|
||||
;; Don't let the undo list be truncated before we can even access it.
|
||||
(let ((undo-strong-limit (+ (- (max beg end) (min beg end)) 100))
|
||||
(old-list buffer-undo-list)
|
||||
|
Loading…
Reference in New Issue
Block a user