Function: c-put-overlay
c-put-overlay is a macro defined in cc-defs.el.gz.
Signature
(c-put-overlay FROM TO PROPERTY VALUE)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
;; Macros to put overlays (Emacs) or extents (XEmacs) on buffer text.
;; For our purposes, these are characterized by being possible to
;; remove again without affecting the other text properties in the
;; buffer that got overridden when they were put.
(defmacro c-put-overlay (from to property value)
;; Put an overlay/extent covering the given range in the current
;; buffer. It's currently undefined whether it's front/end sticky
;; or not. The overlay/extent object is returned.
(declare (debug t))
(if (cc-bytecomp-fboundp 'make-overlay)
;; Emacs.
`(let ((ol (make-overlay ,from ,to)))
(overlay-put ol ,property ,value)
ol)
;; XEmacs.
`(let ((ext (make-extent ,from ,to)))
(set-extent-property ext ,property ,value)
ext)))