Function: enriched-handle-display-prop

enriched-handle-display-prop is a byte-compiled function defined in enriched.el.gz.

Signature

(enriched-handle-display-prop OLD NEW)

Documentation

Return a list of annotations for a change in the display property.

OLD is the old value of the property, NEW is the new value. Value is a list (CLOSE OPEN), where CLOSE is a list of annotations to close and OPEN a list of annotations to open. Each of these lists has the form (ANNOTATION PARAM ...).

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/enriched.el.gz
;;; Handling the `display' property.


(defun enriched-handle-display-prop (old new)
  "Return a list of annotations for a change in the `display' property.
OLD is the old value of the property, NEW is the new value.  Value
is a list `(CLOSE OPEN)', where CLOSE is a list of annotations to
close and OPEN a list of annotations to open.  Each of these lists
has the form `(ANNOTATION PARAM ...)'."
  (let ((annotation "x-display")
	(param (prin1-to-string (or old new))))
    (if (null old)
        (cons nil (list (list annotation param)))
      (cons (list (list annotation param)) nil))))