summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/ert.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-04-10 21:01:38 +0000
committerAlan Mackenzie <acm@muc.de>2017-04-10 21:01:38 +0000
commit230e25fd67fd654f04b8c744db0e170353a7f3b3 (patch)
treeca4c9def3c497739dd48e5d8c708b5addf51f4de /lisp/emacs-lisp/ert.el
parent3ccd0ff1064a2836c379b13c2d5f4b11c5da1f88 (diff)
downloademacs-230e25fd67fd654f04b8c744db0e170353a7f3b3.tar.gz
emacs-230e25fd67fd654f04b8c744db0e170353a7f3b3.tar.bz2
emacs-230e25fd67fd654f04b8c744db0e170353a7f3b3.zip
Fix a loop in C Mode caused by inadequate analysis of comments.
After M-;, and the insertion of the opening "/*", the CC Mode after-change function got confused, since the new comment opener matched the end of a subsequent comment, but moving back over that comment did not come back to the starting point. Fix this. * lisp/progmodes/cc-engine.el (c-end-of-macro): Add a limit parameter, wherer point is left if no end-of-macro is found before it. (c-forward-sws): Change the `safe-start' mechanism. Now `safe-start' is non-nil except where we have an unclosed block comment at the end of a macro. This enables us to populate the cache more fully, at the cost of some run time.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
0 files changed, 0 insertions, 0 deletions