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

Correct loop termination condition in c-syntactic-skip-backward.

progmodes/cc-engine.el (c-syntactic-skip-backward): Correct for the
situation where, after moving back out of a literal, skip-chars-backward
doesn't move further, yet checks have still to be done.
parent cb8b2367
2014-08-02 Alan Mackenzie <acm@muc.de>
Correct loop termination condition in c-syntactic-skip-backward.
* progmodes/cc-engine.el (c-syntactic-skip-backward): Correct for
the situation where, after moving back out of a literal,
skip-chars-backward doesn't move further, yet checks have still to
be done.
2014-08-01 Eli Zaretskii <eliz@gnu.org>
 
* tutorial.el (tutorial--display-changes): Accept punctuation
......
......@@ -4245,16 +4245,18 @@ comment at the start of cc-engine.el for more info."
;; loops when it hasn't succeeded.
(while
(and
(< (skip-chars-backward skip-chars limit) 0)
(let ((pos (point)))
(while (and
(< (skip-chars-backward skip-chars limit) 0)
;; Don't stop inside a literal.
(when (setq lit-beg (c-ssb-lit-begin))
(goto-char lit-beg)
t)))
(< (point) pos))
(let ((pos (point)) state-2 pps-end-pos)
(cond
;; Don't stop inside a literal
((setq lit-beg (c-ssb-lit-begin))
(goto-char lit-beg)
t)
((and paren-level
(save-excursion
(setq state-2 (parse-partial-sexp
......
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