all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Edmondson <dme-zDQXUQW/Few@public.gmane.org>
To: Tomi Ollila <tomi.ollila-X3B1VOXEql0@public.gmane.org>,
	notmuch-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org
Cc: emacs-devel-mXXj517/zsQ@public.gmane.org
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	[thread overview]
Message-ID: <m2mubwsf1c.fsf@dme.org> (raw)
In-Reply-To: <m2h824llxk.fsf-2dKNzN3HlsqBABcRff0nKcc4bpwCjbIv@public.gmane.org>

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?

      parent reply	other threads:[~2019-12-13 10:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jlgo8we3d63.fsf@redhat.com>
     [not found] ` <jlgo8we3d63.fsf-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2019-12-12  9:46   ` message.el and browse-url.el interaction [was: Re: BUG: notmuch-emacs-mua wrong signing MML placement] David Edmondson
     [not found]     ` <m2o8wdc1vv.fsf-zDQXUQW/Few@public.gmane.org>
2019-12-12 22:21       ` Tomi Ollila
     [not found]         ` <m2immlyyl1.fsf-2dKNzN3HlsqBABcRff0nKcc4bpwCjbIv@public.gmane.org>
2019-12-13  7:33           ` Tomi Ollila
     [not found]             ` <m2h824llxk.fsf-2dKNzN3HlsqBABcRff0nKcc4bpwCjbIv@public.gmane.org>
2019-12-13 10:20               ` David Edmondson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2mubwsf1c.fsf@dme.org \
    --to=dme-zdqxuqw/few@public.gmane.org \
    --cc=emacs-devel-mXXj517/zsQ@public.gmane.org \
    --cc=notmuch-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org \
    --cc=tomi.ollila-X3B1VOXEql0@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.