]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove extra message-set-auto-save-file-name call in Gnus drafts
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 10 May 2024 15:49:57 +0000 (08:49 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 May 2024 15:48:45 +0000 (17:48 +0200)
Bug#70579

* lisp/gnus/gnus-draft.el (gnus-draft-setup): This function is already
being called as part of the message-mail -> message-mode call
above. Running it twice results in a jump in assigned article numbers,
and the corresponding active value of the drafts group.

(cherry picked from commit b1e94b7bd3b18fdae66d172c7c72398d6f0d5225)

lisp/gnus/gnus-draft.el

index 1fc2b33fffb452a2eaaf987fc01aa1a9cc8d9679..7c52e8750e4bb3b3dd63f7b9c1badd151db91713 100644 (file)
@@ -262,8 +262,7 @@ If DONT-POP is nil, display the buffer after setting it up."
             (setq ga
                   (message-fetch-field gnus-draft-meta-information-header)))
           (insert mail-header-separator)
-          (forward-line 1)
-          (message-set-auto-save-file-name))))
+          (forward-line 1))))
     (gnus-backlog-remove-article group narticle)
     (when (and ga
                (ignore-errors (setq ga (car (read-from-string ga)))))