* What does "prepare article headers" mean in message-mode?
@ 2020-12-02 1:54 Vladimir Nikishkin
2020-12-02 6:39 ` Eric Abrahamsen
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Nikishkin @ 2020-12-02 1:54 UTC (permalink / raw)
To: help-gnu-emacs
Hello, everyone.
The docstring for `message-generate-headers' says:
`"Prepare article HEADERS.
Headers already prepared in the buffer are not modified."`
When I execute `(message-generate-headers '(Date Message-ID))`, for
example right while writing this message to help-gnu-emacs, both Date
and Message-ID are modified.
Apparently, "prepare" does not really mean "generate and insert".
What does it really mean?
Emacs 27.1
--
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What does "prepare article headers" mean in message-mode?
2020-12-02 1:54 What does "prepare article headers" mean in message-mode? Vladimir Nikishkin
@ 2020-12-02 6:39 ` Eric Abrahamsen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Abrahamsen @ 2020-12-02 6:39 UTC (permalink / raw)
To: help-gnu-emacs
Vladimir Nikishkin <lockywolf@gmail.com> writes:
> Hello, everyone.
>
> The docstring for `message-generate-headers' says:
> `"Prepare article HEADERS.
> Headers already prepared in the buffer are not modified."`
>
> When I execute `(message-generate-headers '(Date Message-ID))`, for
> example right while writing this message to help-gnu-emacs, both Date
> and Message-ID are modified.
>
> Apparently, "prepare" does not really mean "generate and insert".
> What does it really mean?
It almost means that, except for the headers contained in
`message-deletable-headers' which, as the name implies, message-mode
thinks is best to trash re-create as necessary. That variable contains
'(Message-ID Date Lines), which explains what you're seeing. I assume
it's because they ought be regenerated to reflect the newest state of
the message buffer.
Message-ID won't be overwritten if the buffer is marked as modified, if
that helps.
I'm not claiming to fully understand the whys and wherefores of this,
just saying this is how it works.
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-02 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-02 1:54 What does "prepare article headers" mean in message-mode? Vladimir Nikishkin
2020-12-02 6:39 ` Eric Abrahamsen
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).