GNU bug report logs -
#38289
27.0.50; C-c C-w not working if signature from gnus-posting-styles applies
Previous Next
Reported by: Amin Bandali <bandali <at> gnu.org>
Date: Wed, 20 Nov 2019 06:45:02 UTC
Severity: minor
Tags: fixed
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Amin Bandali <bandali <at> gnu.org> writes:
> For instance, if `message-mode' was opened by
> hitting `r' on an article in nnimap+gnu:INBOX
> which has a custom signature set using
> `gnus-posting-styles', if I manually remove the
> prefilled signature and hit `C-c C-w', nothing
> happens, as if `message-signature' was set to
> nil; whereas it is actually t. Makes sense?
Yes indeed -- I misread your bug report.
And, yes, that's how this works. When doing the posting styles, Gnus
sets the message variables buffer-locally:
((eq 'signature (car result))
(set (make-local-variable 'message-signature) nil)
(set (make-local-variable 'message-signature-file) nil)
I'm now quite sure what's the best way to fix this -- perhaps `C-c C-w'
should consult the global values? But that may be equally wrong,
because somebody may be setting that variable buffer-locally in a hook,
for instance, and `C-c C-w' should do the obvious thing and work on that
value.
The nil case makes it seem obvious that Message should be doing
something other than what it's doing now, but if you've set the
signature via Gnus posting styles, and then deleted it, and then want to
insert it again with `C-c C-w' -- shouldn't that work? I think it
should. So that leaves the nil case -- `C-c C-w' could peek at the
global version of the variable if it's buffer-locally nil?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.