(gnus-copy-article-buffer): Bind `inhibit-read-only' to t during modifying the
authoryamaoka <yamaoka>
Mon, 24 May 1999 13:17:45 +0000 (13:17 +0000)
committeryamaoka <yamaoka>
Mon, 24 May 1999 13:17:45 +0000 (13:17 +0000)
destination buffer.

lisp/gnus-msg.el

index 186810c..265a8dc 100644 (file)
@@ -464,15 +464,17 @@ header line with the old Message-ID."
          ;; Copy over the (displayed) article buffer, delete
          ;; hidden text and remove text properties.
          (widen)
-         (copy-to-buffer gnus-article-copy (point-min) (point-max))
-         (set-buffer gnus-article-copy)
-         (gnus-article-delete-text-of-type 'annotation)
-         (gnus-remove-text-with-property 'gnus-prev)
-         (gnus-remove-text-with-property 'gnus-next)
-         (insert
-          (prog1
-              (format "%s" (buffer-string))
-            (erase-buffer)))
+         (let ((inhibit-read-only t))
+           (copy-to-buffer gnus-article-copy (point-min) (point-max))
+           (set-buffer gnus-article-copy)
+           (gnus-article-delete-text-of-type 'annotation)
+           (gnus-remove-text-with-property 'gnus-prev)
+           (gnus-remove-text-with-property 'gnus-next)
+           (insert
+            (prog1
+                (format "%s" (buffer-string))
+              (erase-buffer)))
+           )
          ;; Find the original headers.
          (set-buffer gnus-original-article-buffer)
          (goto-char (point-min))