all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Amin Bandali <bandali@gnu.org>
Cc: 38289@debbugs.gnu.org
Subject: bug#38289: 27.0.50; C-c C-w not working if signature from gnus-posting-styles applies
Date: Fri, 22 Nov 2019 00:04:16 +0100	[thread overview]
Message-ID: <87k17svnkf.fsf@gnus.org> (raw)
In-Reply-To: <87ftih6k46.fsf@gnu.org> (Amin Bandali's message of "Thu, 21 Nov 2019 15:38:01 -0500")

Amin Bandali <bandali@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





  reply	other threads:[~2019-11-21 23:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-20  6:44 bug#38289: 27.0.50; C-c C-w not working if signature from gnus-posting-styles applies Amin Bandali
2019-11-21 13:41 ` Lars Ingebrigtsen
2019-11-21 20:38   ` Amin Bandali
2019-11-21 23:04     ` Lars Ingebrigtsen [this message]
2019-11-21 23:20       ` Lars Ingebrigtsen
2019-11-22  5:55         ` Eric Abrahamsen
2019-11-22 12:38           ` Lars Ingebrigtsen
2019-11-22 18:20             ` Eric Abrahamsen
2019-11-23 12:01               ` Lars Ingebrigtsen
2019-11-23 14:19                 ` Eric Abrahamsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k17svnkf.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=38289@debbugs.gnu.org \
    --cc=bandali@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.