summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-engine.el
diff options
context:
space:
mode:
authorWilson Snyder <wsnyder@wsnyder.org>2019-05-06 18:35:59 -0400
committerWilson Snyder <wsnyder@wsnyder.org>2019-05-06 18:35:59 -0400
commit921d279e15256a07168033b0c50f1fc82e22ef7f (patch)
treee048888bb4983009668a594f6ba83e3baa1b6ea3 /lisp/progmodes/cc-engine.el
parent01963fbbe10d290ba037cd523d21ebbcd2536b40 (diff)
parent6fa99f06b92b593082d7181ba59ab7eebda45f81 (diff)
downloademacs-921d279e15256a07168033b0c50f1fc82e22ef7f.tar.gz
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp/progmodes/cc-engine.el')
-rw-r--r--lisp/progmodes/cc-engine.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 7e6a46ea6e0..a2762ca2097 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -1143,6 +1143,9 @@ comment at the start of cc-engine.el for more info."
;; Have we moved into a macro?
((and (not macro-start)
(c-beginning-of-macro))
+ (save-excursion
+ (c-backward-syntactic-ws)
+ (setq before-sws-pos (point)))
;; Have we crossed a statement boundary? If not,
;; keep going back until we find one or a "real" sexp.
(and