* [PATCH] emacs: Autoload notmuch-user-agent related functions
@ 2024-03-19 21:31 jlicht
2024-04-04 11:21 ` David Bremner
0 siblings, 1 reply; 4+ messages in thread
From: jlicht @ 2024-03-19 21:31 UTC (permalink / raw)
To: notmuch; +Cc: Jelle Licht
From: Jelle Licht <jlicht@fsfe.org>
With this change, users with mail-user-agent set to
'notmuch-user-agent can start composing emails without having to
require 'notmuch-mua first.
---
emacs/notmuch-mua.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index e4b7e9d1..7ef77ea5 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -401,6 +401,7 @@ instead of `message-mode' and SWITCH-FUNCTION is mandatory."
(addr (and good-tokens (mapconcat #'identity good-tokens ", "))))
(message-replace-header header addr))))))
+;;;#autoload
(defun notmuch-mua-mail (&optional to subject other-headers _continue
switch-function yank-action send-actions
return-action &rest _ignored)
@@ -622,20 +623,23 @@ unencrypted. Really send? "))))
(message-send-and-exit arg)
(message-send arg)))))
+;;;#autoload
(defun notmuch-mua-send-and-exit (&optional arg)
(interactive "P")
(notmuch-mua-send-common arg t))
+;;;#autoload
(defun notmuch-mua-send (&optional arg)
(interactive "P")
(notmuch-mua-send-common arg))
+;;;#autoload
(defun notmuch-mua-kill-buffer ()
(interactive)
(message-kill-buffer))
;;; _
-
+;;;#autoload
(define-mail-user-agent 'notmuch-user-agent
'notmuch-mua-mail
'notmuch-mua-send-and-exit
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: Autoload notmuch-user-agent related functions
2024-03-19 21:31 [PATCH] emacs: Autoload notmuch-user-agent related functions jlicht
@ 2024-04-04 11:21 ` David Bremner
2024-06-09 21:10 ` Jelle Licht
0 siblings, 1 reply; 4+ messages in thread
From: David Bremner @ 2024-04-04 11:21 UTC (permalink / raw)
To: jlicht, notmuch; +Cc: Jelle Licht
jlicht@fsfe.org writes:
>
> ;;; _
> -
> +;;;#autoload
> (define-mail-user-agent 'notmuch-user-agent
> 'notmuch-mua-mail
> 'notmuch-mua-send-and-exit
Applied to master with the deleted blank line put back
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: Autoload notmuch-user-agent related functions
2024-04-04 11:21 ` David Bremner
@ 2024-06-09 21:10 ` Jelle Licht
2024-06-10 9:57 ` David Bremner
0 siblings, 1 reply; 4+ messages in thread
From: Jelle Licht @ 2024-06-09 21:10 UTC (permalink / raw)
To: David Bremner, notmuch
Hi David,
David Bremner <david@tethera.net> writes:
> jlicht@fsfe.org writes:
>
>>
>> ;;; _
>> -
>> +;;;#autoload
>> (define-mail-user-agent 'notmuch-user-agent
>> 'notmuch-mua-mail
>> 'notmuch-mua-send-and-exit
>
> Applied to master with the deleted blank line put back
Thanks for applying the patch, but I just noticed I made a mistake; each
of the lines now have a ";;;#autoload" comment, instead of the proper
";;;###autoload" cookie. My apologies. Should I send a patch fixing
this, or will you push a fix yourself?
Kind regards,
Jelle Licht
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: Autoload notmuch-user-agent related functions
2024-06-09 21:10 ` Jelle Licht
@ 2024-06-10 9:57 ` David Bremner
0 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2024-06-10 9:57 UTC (permalink / raw)
To: Jelle Licht, notmuch
Jelle Licht <jlicht@fsfe.org> writes:
> Thanks for applying the patch, but I just noticed I made a mistake; each
> of the lines now have a ";;;#autoload" comment, instead of the proper
> ";;;###autoload" cookie. My apologies. Should I send a patch fixing
> this, or will you push a fix yourself?
Please send a patch, thanks
d
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-10 9:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-19 21:31 [PATCH] emacs: Autoload notmuch-user-agent related functions jlicht
2024-04-04 11:21 ` David Bremner
2024-06-09 21:10 ` Jelle Licht
2024-06-10 9:57 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).