[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hook run just in message-mode just before user begins composing/repl
From: |
Manuel Giraud |
Subject: |
Re: hook run just in message-mode just before user begins composing/replying? |
Date: |
Tue, 09 May 2023 15:28:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Gregor Zattler <telegraph@gmx.net> writes:
> 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?
Hi,
I don't know how you compose your mail but for 'compose-mail' (looking
at code) it seems that your looking for 'mail-setup-hook'. For
message.el there is 'message-setup-hook' also.
--
Manuel Giraud
- hook run just in message-mode just before user begins composing/replying?, Gregor Zattler, 2023/05/09
- Re: hook run just in message-mode just before user begins composing/replying?, Tim Landscheidt, 2023/05/09
- Re: hook run just in message-mode just before user begins composing/replying?, Gregor Zattler, 2023/05/09
- Re: hook run just in message-mode just before user begins composing/replying?, Tim Landscheidt, 2023/05/09
- Re: hook run just in message-mode just before user begins composing/replying?, Gregor Zattler, 2023/05/10
- Re: hook run just in message-mode just before user begins composing/replying?, Manuel Giraud, 2023/05/10
- Re: hook run just in message-mode just before user begins composing/replying?, Gregor Zattler, 2023/05/10
Re: hook run just in message-mode just before user begins composing/replying?,
Manuel Giraud <=