emacs-devel
[Top][All Lists]
Advanced

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

Re: message.el and browse-url.el interaction [was: Re: BUG: notmuch-emac


From: David Edmondson
Subject: Re: message.el and browse-url.el interaction [was: Re: BUG: notmuch-emacs-mua wrong signing MML placement]
Date: Fri, 13 Dec 2019 10:20:15 +0000

On Friday, 2019-12-13 at 09:33:11 +02, Tomi Ollila wrote:

> Small update from my front -- looked message.el and (message-setup-1)
> there in particular, and then tested the following code:
>
> (with-demoted-errors
>  (require 'notmuch)
>  (let ((message-signature-setup-hook message-signature-setup-hook))
>    (add-hook 'message-signature-setup-hook
>      (lambda () (message-goto-body) (insert "testbody")
>                 (if (/= (point) (line-beginning-position))
>                   (newline))))
>    (notmuch-mua-mail "fred" nil nil nil
>       (notmuch-mua-get-switch-function))
> ))
>
> This has moderate chance of working, so I'll have to think it a bit
> further (and clean up the code =D)...

This seems like liberal abuse of `message-signature-setup-hook' :-)

It's also message.el specific, which may not matter. The `compose-mail'
argument approach should in principle work with all mail-user-agent
settings.


dme.
-- 
Why stay in college? Why go to night school?



reply via email to

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