emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 446d5b14a9: Ensure that In-Reply-To is saved in drafts in Message


From: Lars Ingebrigtsen
Subject: master 446d5b14a9: Ensure that In-Reply-To is saved in drafts in Message
Date: Wed, 29 Jun 2022 07:01:28 -0400 (EDT)

branch: master
commit 446d5b14a90e35cd0d67cd22592cde7a6d2891f9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Ensure that In-Reply-To is saved in drafts in Message
    
    * lisp/gnus/message.el (message-hidden-headers): Hide In-Reply-To
    now that we pre-generate it.
    (message-setup-1): Pre-generate In-Reply-To so that it'll be saved
    in drafts (bug#47639).
---
 lisp/gnus/message.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 6973d8a86b..48115a4165 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1468,11 +1468,11 @@ candidates:
       (memq feature message-shoot-gnksa-feet)))
 
 (defcustom message-hidden-headers '("^References:" "^Face:" "^X-Face:"
-                                   "^X-Draft-From:")
+                                   "^X-Draft-From:" "^In-Reply-To:")
   "Regexp of headers to be hidden when composing new messages.
 This can also be a list of regexps to match headers.  Or a list
 starting with `not' and followed by regexps."
-  :version "22.1"
+  :version "29.1"
   :group 'message
   :link '(custom-manual "(message)Message Headers")
   :type '(choice
@@ -6881,13 +6881,14 @@ are not included."
     (or (bolp) (insert ?\n)))
   (insert (concat mail-header-separator "\n"))
   (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.
-  ;; Therefore, always generate it first.
+  ;; If a crash happens while replying, the auto-save file would *not*
+  ;; have a `References:' header if `message-generate-headers-first'
+  ;; was nil.  Therefore, always generate it first.  (And why not
+  ;; include the `In-Reply-To' header as well.)
   (let ((message-generate-headers-first
          (if (eq message-generate-headers-first t)
              t
-           (append message-generate-headers-first '(References)))))
+           (append message-generate-headers-first '(References In-Reply-To)))))
     (when (message-news-p)
       (when message-default-news-headers
         (insert message-default-news-headers)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]