From: Lars Ingebrigtsen <larsi@gnus.org>
To: "N. Jackson" <nljlistbox2@gmail.com>
Cc: 33140@debbugs.gnu.org
Subject: bug#33140: 27.0.50; `gnus-posting-styles' sees nil ‘message-reply-headers’ variable
Date: Mon, 23 Sep 2019 00:47:08 +0200 [thread overview]
Message-ID: <87zhiwgd8z.fsf@gnus.org> (raw)
In-Reply-To: <8736svz614.fsf@moondust.localdomain>
"N. Jackson" <nljlistbox2@gmail.com> writes:
> Either that, or `gnus-configure-posting-styles' is evaluated in the
> context of the wrong buffer (`message-reply-headers' is buffer local to
> the *unsent reply...* buffer).
>
> In (info "(gnus)Posting Styles") it says:
>
> The attribute value can be a string, a function with zero arguments
> (the return value will be used), a variable (its value will be used)
> or a list (it will be ‘eval’ed and the return value will be used). The
> functions and sexps are called/‘eval’ed in the message buffer that is
> being set up. The headers of the current article are available through
> the ‘message-reply-headers’ variable, which is a vector of the
> following headers: number subject from date id references chars lines
> xref extra.
I think it's just wrong -- I don't think this has ever been possible.
message-mode makes message-reply-headers buffer-local, and
message-reply-headers is then set afterwards, which is logical. But the
Gnus posting styles is called from message-mode-hook, and the variable
is nil at this point.
So I've just removed the faulty documentation -- you can't use the
message stuff here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2019-09-22 22:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 16:03 bug#33140: 27.0.50; `gnus-posting-styles' sees nil ‘message-reply-headers’ variable N. Jackson
2018-12-05 20:54 ` Eric Abrahamsen
2018-12-05 21:05 ` Glenn Morris
2018-12-05 21:13 ` Eric Abrahamsen
2018-12-07 1:57 ` N. Jackson
2018-12-07 3:17 ` Eric Abrahamsen
2018-12-07 3:22 ` Eric Abrahamsen
2019-05-13 20:40 ` Lars Ingebrigtsen
2019-05-16 18:36 ` Eric Abrahamsen
2019-06-22 13:24 ` Lars Ingebrigtsen
2019-01-10 22:47 ` Óscar Fuentes
2019-09-22 22:47 ` Lars Ingebrigtsen [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
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=87zhiwgd8z.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=33140@debbugs.gnu.org \
--cc=nljlistbox2@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).