comparison lisp/simple.el @ 73209:4a27744452bb

(undo-elt-crosses-region): Fix the inequalities.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Oct 2006 02:29:19 +0000
parents 181f8fa16272
children 400487787181 bb0e318b7c53
comparison
equal deleted inserted replaced
73208:4a95d08e5126 73209:4a27744452bb
1646 is not *inside* the region START...END." 1646 is not *inside* the region START...END."
1647 (cond ((atom undo-elt) nil) 1647 (cond ((atom undo-elt) nil)
1648 ((null (car undo-elt)) 1648 ((null (car undo-elt))
1649 ;; (nil PROPERTY VALUE BEG . END) 1649 ;; (nil PROPERTY VALUE BEG . END)
1650 (let ((tail (nthcdr 3 undo-elt))) 1650 (let ((tail (nthcdr 3 undo-elt)))
1651 (not (or (< (car tail) end) 1651 (and (< (car tail) end)
1652 (> (cdr tail) start))))) 1652 (> (cdr tail) start))))
1653 ((integerp (car undo-elt)) 1653 ((integerp (car undo-elt))
1654 ;; (BEGIN . END) 1654 ;; (BEGIN . END)
1655 (not (or (< (car undo-elt) end) 1655 (and (< (car undo-elt) end)
1656 (> (cdr undo-elt) start)))))) 1656 (> (cdr undo-elt) start)))))
1657 1657
1658 ;; Return the first affected buffer position and the delta for an undo element 1658 ;; Return the first affected buffer position and the delta for an undo element
1659 ;; delta is defined as the change in subsequent buffer positions if we *did* 1659 ;; delta is defined as the change in subsequent buffer positions if we *did*
1660 ;; the undo. 1660 ;; the undo.
1661 (defun undo-delta (undo-elt) 1661 (defun undo-delta (undo-elt)