Function: yank-handle-category-property

yank-handle-category-property is a byte-compiled function defined in subr.el.gz.

Signature

(yank-handle-category-property CATEGORY START END)

Documentation

Apply property category CATEGORY's properties between START and END.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
;; This removes `mouse-face' properties in *Help* buffer buttons:
;; https://lists.gnu.org/r/emacs-devel/2002-04/msg00648.html
(defun yank-handle-category-property (category start end)
  "Apply property category CATEGORY's properties between START and END."
  (when category
    (let ((start2 start))
      (while (< start2 end)
	(let ((end2     (next-property-change start2 nil end))
	      (original (text-properties-at start2)))
	  (set-text-properties start2 end2 (symbol-plist category))
	  (add-text-properties start2 end2 original)
	  (setq start2 end2))))))