diff options
author | Alan Mackenzie <acm@muc.de> | 2013-05-27 13:30:21 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2013-05-27 13:30:21 +0000 |
commit | 25c8401c40dd74028cdb8f86ec2b64f60998c939 (patch) | |
tree | d1427d693a0e23eb034a0ed3473e7de8ed09661c /lisp/progmodes/cc-mode.el | |
parent | dde84790b7308d745d1cf635e1dc43c834d1b7bf (diff) | |
download | emacs-25c8401c40dd74028cdb8f86ec2b64f60998c939.tar.gz |
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.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r-- | lisp/progmodes/cc-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
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) |