From: Alan Mackenzie Date: Mon, 27 May 2013 13:30:21 +0000 (+0000) Subject: Remove spurious syntax-table text properties inserted by C-y. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~171 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25c8401c40dd74028cdb8f86ec2b64f60998c939;p=emacs.git Remove spurious syntax-table text properties inserted by C-y. * progmodes/cc-mode.el (c-after-change): Also clear hard syntax-table property with value nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 05360ad63da..8f070f1c9e7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-05-27 Alan Mackenzie + + Remove spurious syntax-table text properties inserted by C-y. + * progmodes/cc-mode.el (c-after-change): Also clear hard + syntax-table property with value nil. + 2013-05-27 Michael Albinus * net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay' diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index d7416ae86cf..345bbb7745c 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -1077,12 +1077,13 @@ Note that the style variables are always made local to the buffer." (setq beg end))) ;; C-y is capable of spuriously converting category properties - ;; c--as-paren-syntax into hard syntax-table properties. Remove - ;; these when it happens. + ;; c--as-paren-syntax and c-cpp-delimiter into hard syntax-table + ;; properties. Remove these when it happens. (c-clear-char-property-with-value beg end 'syntax-table c-<-as-paren-syntax) (c-clear-char-property-with-value beg end 'syntax-table c->-as-paren-syntax) + (c-clear-char-property-with-value beg end 'syntax-table nil) (c-trim-found-types beg end old-len) ; maybe we don't need all of these. (c-invalidate-sws-region-after beg end)