# HG changeset patch # User Richard M. Stallman # Date 869524172 0 # Node ID 7ce2d04d5561fce82b580c7a28ee3dccb6998060 # Parent b9b03935853a5505b8b526b876c3b45d6589ceb2 (yank, yank-pop): Bind inhibit-read-only just for remove-text-properties, not for insertion. diff -r b9b03935853a -r 7ce2d04d5561 lisp/simple.el --- a/lisp/simple.el Mon Jul 21 20:30:49 1997 +0000 +++ b/lisp/simple.el Mon Jul 21 22:29:32 1997 +0000 @@ -1498,10 +1498,10 @@ (before (< (point) (mark t)))) (delete-region (point) (mark t)) (set-marker (mark-marker) (point) (current-buffer)) - (let ((opoint (point)) - (inhibit-read-only t)) + (let ((opoint (point))) (insert (current-kill arg)) - (remove-text-properties opoint (point) '(read-only nil))) + (let ((inhibit-read-only t)) + (remove-text-properties opoint (point) '(read-only nil)))) (if before ;; This is like exchange-point-and-mark, but doesn't activate the mark. ;; It is cleaner to avoid activation, even though the command @@ -1523,13 +1523,13 @@ ;; for the following command. (setq this-command t) (push-mark (point)) - (let ((opoint (point)) - (inhibit-read-only t)) + (let ((opoint (point))) (insert (current-kill (cond ((listp arg) 0) ((eq arg '-) -1) (t (1- arg))))) - (remove-text-properties opoint (point) '(read-only nil))) + (let ((inhibit-read-only t)) + (remove-text-properties opoint (point) '(read-only nil)))) (if (consp arg) ;; This is like exchange-point-and-mark, but doesn't activate the mark. ;; It is cleaner to avoid activation, even though the command