]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix infinite loop in noise macro near end of buffer
authorAlan Mackenzie <acm@muc.de>
Sat, 18 Jun 2022 11:23:06 +0000 (11:23 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 18 Jun 2022 11:23:06 +0000 (11:23 +0000)
commitba1508ed17f57642421f510fd9e1ac35e17bf208
tree9a5068c2b816923a98686cf8566302fd66769500
parent2cb5ed66c094cc1ea937c72eb7958c2dc674ac7f
CC Mode: Fix infinite loop in noise macro near end of buffer

This fixes bug #55771.  Also fix an inaccuracy in c-defun-name-1 with the same
cause.

* lisp/progmodes/cc-cmds.el (c-defun-name-1)
* lisp/progmodes/cc-engine.el (c-forward-noise-clause): Check the return
value of c-forward-token-2 and act upon it when not zero.
lisp/progmodes/cc-cmds.el
lisp/progmodes/cc-engine.el