]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: fix old bug in notmuch-mua-mail
authorJonas Bernoulli <jonas@bernoul.li>
Mon, 16 Nov 2020 21:28:22 +0000 (22:28 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 6 Dec 2020 20:17:36 +0000 (16:17 -0400)
This fixes a regression introduced in [1: 7e20d264].  If the argument
RETURN-ACTION was non-nil then we should pass along the value of that
argument.  Instead we passed along the constant symbol `return-action'.

1: 7e20d26480553f57d53bd9ec28cae163c1ac91e3
   emacs: Fix mail composition under Emacs 23

emacs/notmuch-mua.el

index 616b625ca979d5787cfeb610462febc80908fab1..1204fb6ac3de2059fe9b8e21f68fc6d144f4a9a9 100644 (file)
@@ -402,7 +402,7 @@ modified. This function is notmuch adaptation of
     ;; argument. Pass it only if it is supplied by the caller. This
     ;; will never be the case when we're called by `compose-mail' in
     ;; Emacs 23.
-    (when return-action (nconc args '(return-action)))
+    (when return-action (nconc args (list return-action)))
     (apply 'message-setup-1 headers args))
   (notmuch-fcc-header-setup)
   (message-sort-headers)