with text property operations.
(get-text-property 0 'yank-handler string)))
(param (or (nth 1 handler) string))
(opoint (point))
+ (inhibit-read-only inhibit-read-only)
end)
(setq yank-undo-function t)
(insert param))
(setq end (point))
+ ;; Prevent read-only properties from interfering with the
+ ;; following text property changes.
+ (setq inhibit-read-only t)
+
;; What should we do with `font-lock-face' properties?
(if font-lock-defaults
;; No, just wipe them.