Function: c-clear-syntax-table-with-value-trim-caches

c-clear-syntax-table-with-value-trim-caches is a macro defined in cc-defs.el.gz.

Signature

(c-clear-syntax-table-with-value-trim-caches FROM TO VALUE)

Documentation

Remove all syntax-table text-properties with value VALUE from [FROM, TO) and invalidate the four caches from the first position, if any, where a property was removed. Return the position of the first property removed, if any, else nil. POINT and the match data remain unchanged.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defmacro c-clear-syntax-table-with-value-trim-caches (from to value)
  "Remove all `syntax-table' text-properties with value VALUE from [FROM, TO)
and invalidate the four caches from the first position, if any, where a
property was removed.  Return the position of the first property removed,
if any, else nil.  POINT and the match data remain unchanged."
  (declare (debug t))
  `(let ((first
	  (c-clear-char-property-with-value ,from ,to 'syntax-table ,value)))
     (when first
       (c-truncate-lit-pos/state-cache first))
     first))