* lisp/simple.el (primitive-undo): Fix time comparison.
The old code was a circa-2013 mistranslation of what used to be in
src/undo.c’s Fprimitive_undo.
(setq visited-file-time
(with-current-buffer (buffer-base-buffer)
(visited-file-modtime))))
- (when (or (equal time visited-file-time)
- (and (consp time)
- (equal (list (car time) (cdr time))
- visited-file-time)))
+ (when (time-equal-p time visited-file-time)
(unlock-buffer)
(set-buffer-modified-p nil))))
;; Element (nil PROP VAL BEG . END) is property change.