summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-09-29 18:24:51 +0000
committerRichard M. Stallman <rms@gnu.org>2002-09-29 18:24:51 +0000
commit5614d6cb270a84614d908de6f534722a458b6db8 (patch)
tree2ee048e51f096c71f21d531fec79011c705177bd
parent5af47e93a2bb05fc5a1a70db47981f1fea3976b8 (diff)
downloademacs-5614d6cb270a84614d908de6f534722a458b6db8.tar.gz
(undo-elt-in-region): Fix one-off error at END.
-rw-r--r--lisp/simple.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 4ef026c084f..182402fecc5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1100,7 +1100,7 @@ we stop and ignore all further elements."
If it crosses the edge, we return nil."
(cond ((integerp undo-elt)
(and (>= undo-elt start)
- (< undo-elt end)))
+ (<= undo-elt end)))
((eq undo-elt nil)
t)
((atom undo-elt)
@@ -1120,16 +1120,16 @@ If it crosses the edge, we return nil."
(cons alist-elt undo-adjusted-markers)))
(and (cdr alist-elt)
(>= (cdr alist-elt) start)
- (< (cdr alist-elt) end))))
+ (<= (cdr alist-elt) end))))
((null (car undo-elt))
;; (nil PROPERTY VALUE BEG . END)
(let ((tail (nthcdr 3 undo-elt)))
(and (>= (car tail) start)
- (< (cdr tail) end))))
+ (<= (cdr tail) end))))
((integerp (car undo-elt))
;; (BEGIN . END)
(and (>= (car undo-elt) start)
- (< (cdr undo-elt) end)))))
+ (<= (cdr undo-elt) end)))))
(defun undo-elt-crosses-region (undo-elt start end)
"Test whether UNDO-ELT crosses one edge of that region START ... END.