Silence the spurious warning, and improve the warning while at it.
Do not merge to master.
;; Don't include a timestamp entry.
(setcdr ptr (cddr ptr))
(setq ptr (cdr ptr))))
- (unless (cdr ptr)
- (message "combine-change-calls: buffer-undo-list broken"))
+ (unless (or (cdr ptr) (null old-bul))
+ (message "combine-change-calls: buffer-undo-list presumably truncated by GC"))
(setcdr ptr nil)
(push ap-elt buffer-undo-list)
(setcdr buffer-undo-list old-bul)))))