]> git.eshelyaron.com Git - emacs.git/commit
Fix c-tentative-buffer-changes to be nestable in c-save-buffer-state
authorAlan Mackenzie <acm@muc.de>
Fri, 20 Aug 2021 21:12:37 +0000 (21:12 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 20 Aug 2021 21:12:37 +0000 (21:12 +0000)
commit13824c44d28427931a7e3284adec9a3a38cd2323
tree01ac8626d8f2f4cbd8c4f11d0cf9f8dbbbf39549
parent681faf9f0bc41972932b72ef34c026419b6eb54d
Fix c-tentative-buffer-changes to be nestable in c-save-buffer-state

* lisp/progmodes/cc-defs.el (c-tentative-buffer-changes)
(c-tnt-chng-record-state, c-tnt-chng-cleanup): Enhance such that a
buffer-undo-list of t is handled specially, so that a nil isn't consed onto
it.  Thus garbage collection can't later remove the (nil . t) from the end of
the buffer-undo-list, causing an infinite loop.
lisp/progmodes/cc-defs.el