# HG changeset patch # User Chong Yidong # Date 1171062556 0 # Node ID 8c99ad9fd6c03f553ef6f5db04c173821dd16744 # Parent 982864b316bfc6313930107760c93038177edfb7 (insert-for-yank-1): Prevent read-only properties from interfering with text property operations. diff -r 982864b316bf -r 8c99ad9fd6c0 lisp/subr.el --- a/lisp/subr.el Fri Feb 09 23:08:54 2007 +0000 +++ b/lisp/subr.el Fri Feb 09 23:09:16 2007 +0000 @@ -2171,6 +2171,7 @@ (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) @@ -2179,6 +2180,10 @@ (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.