(gnus-copy-article-buffer): Remove bitmap images with text property
authoryamaoka <yamaoka>
Tue, 25 May 1999 11:01:32 +0000 (11:01 +0000)
committeryamaoka <yamaoka>
Tue, 25 May 1999 11:01:32 +0000 (11:01 +0000)
`x-face-mule-bitmap-image'; don't bind `inhibit-read-only'.

lisp/gnus-msg.el

index 265a8dc..b167da0 100644 (file)
@@ -464,17 +464,16 @@ header line with the old Message-ID."
          ;; Copy over the (displayed) article buffer, delete
          ;; hidden text and remove text properties.
          (widen)
-         (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)))
-           )
+         (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)
+         (gnus-remove-text-with-property 'x-face-mule-bitmap-image)
+         (insert
+          (prog1
+              (format "%s" (buffer-string))
+            (erase-buffer)))
          ;; Find the original headers.
          (set-buffer gnus-original-article-buffer)
          (goto-char (point-min))