From 713dca1ca455566a6fc5a640f99c18a2789d6c43 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 22 Nov 1994 02:52:14 +0000 Subject: [PATCH] (kill-region): Use = to compare positions. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 1f0162cdedd..16e333ed72e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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)