diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-02-09 23:09:16 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-02-09 23:09:16 +0000 |
commit | 029fd82cce8317b74e5934240b134f556a008f81 (patch) | |
tree | 4b45b2860bd657dbf0e537663fd148a892979e08 /lisp/subr.el | |
parent | 0c92208b5be37ef61fcb9043109e540c57d05e00 (diff) | |
download | emacs-029fd82cce8317b74e5934240b134f556a008f81.tar.gz |
(insert-for-yank-1): Prevent read-only properties from interfering
with text property operations.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 45815a6f0f8..846acf52385 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2171,6 +2171,7 @@ If UNDO is present and non-nil, it is a function that will be called (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 @@ If UNDO is present and non-nil, it is a function that will be called (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. |