From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: hook run just in message-mode just before user begins composing/replying?
Date: Tue, 09 May 2023 13:20:06 +0000 [thread overview]
Message-ID: <871qjp7ibd.fsf@vagabond.tim-landscheidt.de> (raw)
In-Reply-To: <87lehxd5ep.fsf@no.lan> (Gregor Zattler's message of "Tue, 09 May 2023 15:02:22 +0200")
Gregor Zattler <telegraph@gmx.net> wrote:
> I wrote two functions which, manually called in a
> buffer just set up by message-mode for me to start
> typing my message/reply, manipulate the headers of said
> message.
> ATM I call them in message-send-hook but then I do not
> see the result of the manipulations and sometimes I would
> like to adjust headers after these functions run.
> I did not find a hook for this purpose. I experimented
> with message-signature-setup-hook but then one function
> mangles the headers, the other function does nothing,
> indicating that the headers are not setup or not
> accessible as at the moment the user (I) starts to
> type.
> Any ideas how to solve this puzzle?
There are also (in Emacs 28.2) message-header-setup-hook and
message-setup-hook that look promising. Do they work for
you?
Tim
next prev parent reply other threads:[~2023-05-09 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-09 13:02 hook run just in message-mode just before user begins composing/replying? Gregor Zattler
2023-05-09 13:20 ` Tim Landscheidt [this message]
2023-05-09 14:03 ` Gregor Zattler
2023-05-09 17:40 ` Eric Abrahamsen
2023-05-10 8:37 ` Gregor Zattler
2023-05-09 18:30 ` Tim Landscheidt
2023-05-10 8:43 ` Gregor Zattler
2023-05-10 8:59 ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-05-10 9:22 ` Gregor Zattler
2023-05-09 13:28 ` Manuel Giraud via Users list for the GNU Emacs text editor
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qjp7ibd.fsf@vagabond.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--cc=help-gnu-emacs@gnu.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.
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).