summaryrefslogtreecommitdiff
path: root/test/lisp/textmodes/css-mode-tests.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2021-03-29 15:32:40 +0000
committerAlan Mackenzie <acm@muc.de>2021-03-29 15:35:50 +0000
commit1440dbed544a76ee3b876cb573b5110211e798bb (patch)
tree10d9084334363f2024db65d2e4637a8479400227 /test/lisp/textmodes/css-mode-tests.el
parent309635af6949ca07da8f6bf8b8e25a1679f7f418 (diff)
downloademacs-1440dbed544a76ee3b876cb573b5110211e798bb.tar.gz
emacs-1440dbed544a76ee3b876cb573b5110211e798bb.tar.bz2
emacs-1440dbed544a76ee3b876cb573b5110211e798bb.zip
Fix an infinite loop in C++ Mode redisplay. This was bug #47191.
* lisp/progmodes/cc-defs.el (c-forward-syntactic-ws, c-backward-syntactic-ws): When point is on the wrong side of a supplied search limit, leave point unmoved rather than setting it to that limit. * lisp/progmodes/cc-engine.el (c-forward-name): After scanning a template argument list (which is not itself subject to a search limit) recalculate the search limit starting from the end point, since these argument lists can legitimately be long. At each of the scanning loops, check point hasn't gone past the limit.
Diffstat (limited to 'test/lisp/textmodes/css-mode-tests.el')
0 files changed, 0 insertions, 0 deletions