]> git.eshelyaron.com Git - emacs.git/commit
Detect when we hit limit in backward search in c-just-after-func-arglist-p
authorAlan Mackenzie <acm@muc.de>
Mon, 28 Jan 2019 10:54:42 +0000 (10:54 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 28 Jan 2019 10:54:42 +0000 (10:54 +0000)
commit239386806ec637419786bd1ab21e002bf2d501c1
treec04efa021c81a23a913728189355ae83f0b059b4
parentd81aa8516ef6df79d6d602d4f732d8a65bf1677c
Detect when we hit limit in backward search in c-just-after-func-arglist-p

This fixes a bug reported by Yasushi SHOJI <yasushi.shoji@gmail.com> to
emacs-devel on 2018-11-26, where wrong analysis and fontification occurred.

* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Add new parameter
HIT-LIM which, if non-nil causes the function to return nil rather than 'same
when we reach the backward search limit without finding the beginning of
statement.
(c-just-after-func-arglist-p): Supply argument t to this new parameter in call
to c-beginning-of-statement-1.
lisp/progmodes/cc-engine.el