diff options
| author | Brian Fox | 1993-09-21 07:43:20 +0000 |
|---|---|---|
| committer | Brian Fox | 1993-09-21 07:43:20 +0000 |
| commit | 7e37cd30c65126d82b38d86d2acb822aa0f25604 (patch) | |
| tree | 61db28d55dc86868be848261033eed046f7d2a51 | |
| parent | 760a35286c14d3ce5c0ec84bf5e2adcc446ddebe (diff) | |
| download | emacs-7e37cd30c65126d82b38d86d2acb822aa0f25604.tar.gz emacs-7e37cd30c65126d82b38d86d2acb822aa0f25604.zip | |
(kill-region): Use `equal' instead of `eq' to compare markers `beg'
and `end'. They might be two different markers that point to the same
place.
| -rw-r--r-- | lisp/simple.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 58edc738d1f..581134f80e1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1041,7 +1041,7 @@ to make one entry in the kill ring." | |||
| 1041 | ;; ring to share the same string object. This code does that. | 1041 | ;; ring to share the same string object. This code does that. |
| 1042 | ((not (or (eq buffer-undo-list t) | 1042 | ((not (or (eq buffer-undo-list t) |
| 1043 | (eq last-command 'kill-region) | 1043 | (eq last-command 'kill-region) |
| 1044 | (eq beg end))) | 1044 | (equal beg end))) |
| 1045 | ;; Don't let the undo list be truncated before we can even access it. | 1045 | ;; Don't let the undo list be truncated before we can even access it. |
| 1046 | (let ((undo-strong-limit (+ (- (max beg end) (min beg end)) 100)) | 1046 | (let ((undo-strong-limit (+ (- (max beg end) (min beg end)) 100)) |
| 1047 | (old-list buffer-undo-list) | 1047 | (old-list buffer-undo-list) |