]> git.eshelyaron.com Git - emacs.git/commitdiff
(yank, yank-pop): Clear out read-only prop.
authorRichard M. Stallman <rms@gnu.org>
Wed, 16 Jul 1997 05:33:34 +0000 (05:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 16 Jul 1997 05:33:34 +0000 (05:33 +0000)
lisp/simple.el

index a4bb36f8714d5158ef88f235a025ed3b23a878fb..6349f1058ae74c9c4adc6ee83069cd3bc2e97bdd 100644 (file)
@@ -1492,7 +1492,10 @@ comes the newest one."
        (before (< (point) (mark t))))
     (delete-region (point) (mark t))
     (set-marker (mark-marker) (point) (current-buffer))
-    (insert (current-kill arg))
+    (let ((opoint (point))
+         (inhibit-read-only t))
+      (insert (current-kill arg))
+      (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
@@ -1514,10 +1517,13 @@ See also the command \\[yank-pop]."
   ;; for the following command.
   (setq this-command t)
   (push-mark (point))
-  (insert (current-kill (cond
-                        ((listp arg) 0)
-                        ((eq arg '-) -1)
-                        (t (1- arg)))))
+  (let ((opoint (point))
+       (inhibit-read-only t))
+    (insert (current-kill (cond
+                          ((listp arg) 0)
+                          ((eq arg '-) -1)
+                          (t (1- arg)))))
+    (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