]> git.eshelyaron.com Git - emacs.git/commit
Maintain c-syntax-table-hwm when changing syntax-table text properties
authorAlan Mackenzie <acm@muc.de>
Sun, 16 Jun 2019 11:52:01 +0000 (11:52 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 16 Jun 2019 11:52:01 +0000 (11:52 +0000)
commitf0bf0d0779d6a8430b95ce55d66ee836611ef44f
tree59490c884fa108aa4dcb19ef1584042f6722aa44
parentb2fb3dc58ceef543951e39b137a21d3e74e042cd
Maintain c-syntax-table-hwm when changing syntax-table text properties

* lisp/progmodes/cc-defs.el: (c-syntax-table-hwm): Move the defvar to here
from cc-mode.el, since the variable is needed at compile time in
c-emacs-features.
(c-min-property-position): New macro.
(c-put-char-property, c-clear-char-property, c-clear-char-properties)
(c-clear-char-property-with-value-function)
(c-clear-char-property-with-value-on-char-function)
(c-put-char-properties-on-char): Adjust c-syntax-table-hwm appropriately when
syntax-table text properties are changed.

* lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Remove the now
unneeded setting of c-syntax-table-hwm, and the unneeded declaration of
c-syntax-table-hwm.
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el