Function: c-clear-char-property-with-value

c-clear-char-property-with-value is a macro defined in cc-defs.el.gz.

Signature

(c-clear-char-property-with-value FROM TO PROPERTY VALUE)

Documentation

Remove all text-properties PROPERTY from the region [FROM, TO) which have the value VALUE, as tested by equal. These properties are assumed to be over individual characters, having been put there by c-put-char-property. POINT remains unchanged.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defmacro c-clear-char-property-with-value (from to property value)
  "Remove all text-properties PROPERTY from the region [FROM, TO)
which have the value VALUE, as tested by `equal'.  These
properties are assumed to be over individual characters, having
been put there by `c-put-char-property'.  POINT remains unchanged."
  (declare (debug t))
  (if c-use-extents
    ;; XEmacs
      `(let ((-property- ,property))
	 (map-extents (lambda (ext val)
			(if (equal (extent-property ext -property-) val)
			    (delete-extent ext)))
		      nil ,from ,to ,value nil -property-))
    ;; GNU Emacs
    `(c-clear-char-property-with-value-function ,from ,to ,property ,value)))