]> git.eshelyaron.com Git - emacs.git/commitdiff
(kill-region): Use `equal' instead of `eq' to compare markers `beg'
authorBrian Fox <bfox@gnu.org>
Tue, 21 Sep 1993 07:43:20 +0000 (07:43 +0000)
committerBrian Fox <bfox@gnu.org>
Tue, 21 Sep 1993 07:43:20 +0000 (07:43 +0000)
and `end'.  They might be two different markers that point to the same
place.

lisp/simple.el

index 58edc738d1fabf3b55bf9f0d3f9ecc40bee7c6e1..581134f80e1adf83ac6cb10cc52b76931d931fc5 100644 (file)
@@ -1041,7 +1041,7 @@ 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)
-            (eq beg end)))
+            (equal 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)