+2004-11-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * message.el (message-strip-forbidden-properties): Bind
+ buffer-read-only (etc) to nil.
+
2004-11-23 Katsumi Yamaoka <yamaoka@jpl.org>
* rfc2047.el (rfc2047-header-encoding-alist): Add In-Reply-To to
"Strip forbidden properties between BEGIN and END, ignoring the third arg.
This function is intended to be called from `after-change-functions'.
See also `message-forbidden-properties'."
- (when (and message-strip-special-text-properties
- (message-tamago-not-in-use-p begin)
- ;; Check whether the invisible MIME part is not inserted.
- (not (text-property-any begin end 'mime-edit-invisible t)))
- (dolist (from-to (message-text-with-property 'message-hidden
- begin end t))
- (remove-text-properties (car from-to) (cdr from-to)
- message-forbidden-properties))))
+ (let ((buffer-read-only nil)
+ (inhibit-read-only t))
+ (when (and message-strip-special-text-properties
+ (message-tamago-not-in-use-p begin)
+ ;; Check whether the invisible MIME part is not inserted.
+ (not (text-property-any begin end 'mime-edit-invisible t)))
+ (dolist (from-to (message-text-with-property 'message-hidden
+ begin end t))
+ (remove-text-properties (car from-to) (cdr from-to)
+ message-forbidden-properties)))))
;;;###autoload
(define-derived-mode message-mode text-mode "Message"