Function: c-put-char-properties

c-put-char-properties is a macro defined in cc-defs.el.gz.

Signature

(c-put-char-properties FROM TO PROPERTY VALUE)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defmacro c-put-char-properties (from to property value)
  ;; Put the given PROPERTY with the given VALUE on the characters between
  ;; FROM and TO.  PROPERTY is assumed to be constant.  The return value is
  ;; undefined.
  ;;
  ;; This macro does hidden buffer changes.
  (declare (debug t))
  (setq property (eval property))
  `(let ((-from- ,from))
	 (progn
	   ,@(when (and (fboundp 'syntax-ppss)
			(eq `,property 'syntax-table))
	       `((setq c-syntax-table-hwm (min c-syntax-table-hwm -from-))))
	   (put-text-property -from- ,to ',property ,value))))