Avoid spuriously marking the buffer as modified because of c-is-sws.
2012-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
+ * progmodes/cc-engine.el (c-forward-sws, c-backward-sws):
+ Avoid spuriously marking the buffer as modified because of c-is-sws.
+
* progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"
as not-a-comment (bug#11946).
;; high as possible.
(setq rung-pos (point)))
+ (with-silent-modifications
(while
(progn
(while
(1- last-put-in-sws-pos))
(c-remove-is-and-in-sws (1- last-put-in-sws-pos)
last-put-in-sws-pos))))
- )))
+ ))))
(defun c-backward-sws ()
;; Used by `c-backward-syntactic-ws' to implement the unbounded search.
(goto-char (setq rung-pos rung-is-marked))
(goto-char simple-ws-beg))
+ (with-silent-modifications
(while
(progn
(while
last-put-in-sws-pos)
(c-remove-is-and-in-sws last-put-in-sws-pos
(1+ last-put-in-sws-pos)))))
- )))
+ ))))
\f
;; Other whitespace tools