[gnus git] branch master updated: =1= message: insert mail-header-separator read-only and intangible
Julien Danjou <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via bd10f37e4630719920f82122d7c7ae7523567762 (commit)
from 4d798bad11b7ace2cd00a63e5535d02c4fb2119b (commit)
- Log -----------------------------------------------------------------
commit bd10f37e4630719920f82122d7c7ae7523567762
Author: Julien Danjou <[email protected]>
Date: Thu Feb 3 16:26:11 2011 +0100
message: insert mail-header-separator read-only and intangible
Signed-off-by: Julien Danjou <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 894bc72..7ea9425 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -9,6 +9,8 @@
* message.el (message-setup-1): Always generate References first.
(message-mail): Return the return value of message-setup, not always t.
+ (message-setup-1): Insert mail-header-separator with read-only and
+ intangible properties set.
* gnus.el (gnus-summary-line-format): Add missing semi-colon for
user-date in docstring.
diff --git a/lisp/gnus-draft.el b/lisp/gnus-draft.el
index 78ef713..02d6393 100644
--- a/lisp/gnus-draft.el
+++ b/lisp/gnus-draft.el
@@ -257,7 +257,8 @@ Obeys the standard process/prefix convention."
(gnus-setup-message 'forward
(let ((article narticle))
(message-mail)
- (erase-buffer)
+ (let ((inhibit-read-only t))
+ (erase-buffer))
(if (not (gnus-request-restore-buffer article group))
(error "Couldn't restore the article")
(when (and restore
diff --git a/lisp/message.el b/lisp/message.el
index 42ca73c..595a803 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -6444,7 +6444,9 @@ are not included."
(funcall message-default-headers)
message-default-headers))
(or (bolp) (insert ?\n)))
- (insert mail-header-separator "\n")
+ (let ((message-forbidden-properties nil))
+ (insert (propertize (concat mail-header-separator "\n")
+ 'read-only t 'rear-nonsticky t 'intangible t)))
(forward-line -1)
;; If a crash happens while replying, the auto-save file would *not* have a
;; `References:' header if `message-generate-headers-first' was nil.
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 2 ++
lisp/gnus-draft.el | 3 ++-
lisp/message.el | 4 +++-
3 files changed, 7 insertions(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project