Commit dbe81e16 authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

Fix slow scrolling in C++ buffers with lots of template delimiters.

* lisp/progmodes/cc-engine.el (c-update-brace-stack): bind
c-parse-and-markup-<>-arglists and c-restricted-<>-arglists to t around the
call to c-forward-<>-arglist, to force the marking of template delimiters with
syntax-table text properties.
parent 8dc00b2f
Pipeline #1483 passed with stage
in 52 minutes and 36 seconds
......@@ -5529,7 +5529,9 @@ comment at the start of cc-engine.el for more info."
(prog1 (looking-at "\\s(")
(forward-char))))
(backward-char)
(if (c-forward-<>-arglist nil) ; Should always work.
(if (let ((c-parse-and-markup-<>-arglists t)
(c-restricted-<>-arglists t))
(c-forward-<>-arglist nil)) ; Should always work.
(when (> (point) to)
(setq bound-<> (point)))
(forward-char)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment