Function: iimage-modification-hook

iimage-modification-hook is a byte-compiled function defined in iimage.el.gz.

Signature

(iimage-modification-hook BEG END)

Documentation

Remove display property if a display region BEG..END is modified.

Source Code

;; Defined in /usr/src/emacs/lisp/iimage.el.gz
(defun iimage-modification-hook (beg end)
  "Remove display property if a display region BEG..END is modified."
  ;;(debug-print "ii1 begin %d, end %d\n" beg end)
  (let ((inhibit-modification-hooks t)
        (beg (previous-single-property-change end 'display
                                              nil (line-beginning-position)))
        (end (next-single-property-change     beg 'display
                                              nil (line-end-position))))
    (when (and beg end (plist-get (text-properties-at beg) 'display))
      ;;(debug-print "ii2 begin %d, end %d\n" beg end)
      (remove-text-properties beg end
                              '(display nil modification-hooks nil)))))