From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "N. Jackson" Newsgroups: gmane.emacs.bugs Subject: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?UTF-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable Date: Thu, 06 Dec 2018 20:57:05 -0500 Message-ID: <87k1kmgkum.fsf@moondust.localdomain> References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544147773 12580 195.159.176.226 (7 Dec 2018 01:56:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2018 01:56:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33140@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 07 02:56:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV5N7-00033I-Bx for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Dec 2018 02:56:05 +0100 Original-Received: from localhost ([::1]:43754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gV5PD-0006Ge-RM for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Dec 2018 20:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gV5P5-0006A7-KP for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 20:58:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gV5P1-0000OZ-Ng for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 20:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gV5Oz-0000Iq-V1 for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 20:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gV5Oz-0007LK-NS for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 20:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "N. Jackson" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Dec 2018 01:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33140-submit@debbugs.gnu.org id=B33140.154414783428146 (code B ref 33140); Fri, 07 Dec 2018 01:58:01 +0000 Original-Received: (at 33140) by debbugs.gnu.org; 7 Dec 2018 01:57:14 +0000 Original-Received: from localhost ([127.0.0.1]:36175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV5OE-0007Jt-Fi for submit@debbugs.gnu.org; Thu, 06 Dec 2018 20:57:14 -0500 Original-Received: from mail-it1-f175.google.com ([209.85.166.175]:51024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV5OD-0007Jc-6H for 33140@debbugs.gnu.org; Thu, 06 Dec 2018 20:57:13 -0500 Original-Received: by mail-it1-f175.google.com with SMTP id z7so4692494iti.0 for <33140@debbugs.gnu.org>; Thu, 06 Dec 2018 17:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=x8LmZxTAInxv2J/jy4HuoyVc+rb0tibuOWlgrSf0CSE=; b=XMuNA66K4f0O1arTQtxE+ckWqfkoEpX3007ID9jJRs9Q/nnnvHz4NX5YUCtf2bvbs6 rGNsx8rZ3pq77POMvxc7kaqt9kk50Sen8CTRGAZ5bvIW7X+/Lz7u2I5tA4dE4aHJV1RJ SsEMt2a1wqUkO+LayEQCy1cITxTJOfJvJtI/uQrFM9ag2E8DDIfl75s3DrZagjVjeM4U jtJ5zjptowRFszt/ncoLnATm2RKNObTTsS4c7Sxh5f62nNTF7eiPmLr7pexxHuPMgB0s rCxEUe3wyRfqkXagzFl9xzTZs52UpAGqlhFrHKsxJW+YlzfFl6zzowCDgwd3wpvzBwVj /oPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=x8LmZxTAInxv2J/jy4HuoyVc+rb0tibuOWlgrSf0CSE=; b=KBzaB6N1tGR+eypvlbvPlGFLbaNcWHuV+wHTkKsxQjot7gjK2lhYwsW3zI4yQ5fdKP 0x9kKjTn6pmDb1OzffH57IOzfwlgV55W3xHpgAXVPt0I6lMkEImKElFpJ3hZotkV+Vay CTZVUB4ULCxW4MHIJWW/4ATpdsOpO6G8jJgCZpthMrfLFgLc99YAl/Z9qz+WlcqW78K0 cJO2QuvEhEa3k0wR42lMedTzr88yNBEW/mFzP3wAS8EMu3IemdhK6tHh6OCDB3llAhTF 6OpTa6+Tg/PYECpXmKf9Gqi5o0d0a8+SaGxDcA3VMg/BcCoBjOo3IwqJsPXySs3LorAc o55g== X-Gm-Message-State: AA+aEWbZOrGjWMCT+tQCDw8SjTGbwqdvnjphi74ln1gG+s2AxI7fgbke fV6vJRC8q+Dv43lA+wRxw9x6VHrw X-Google-Smtp-Source: AFSGD/XyqB3nAlz2J+7u7J7iWrrxshb0iTl5OtWviDNm6QqZWwPSP1xAm6h5/cdeFq2ZQW9hIDtl2Q== X-Received: by 2002:a24:3c91:: with SMTP id m139mr694747ita.175.1544147827019; Thu, 06 Dec 2018 17:57:07 -0800 (PST) Original-Received: from moondust.localdomain.nodomain.none (toroon474qw-lp130-08-70-26-73-61.dsl.bell.ca. [70.26.73.61]) by smtp.gmail.com with ESMTPSA id 137sm1286532itm.21.2018.12.06.17.57.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 17:57:06 -0800 (PST) In-Reply-To: <87y393y9sh.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 05 Dec 2018 12:54:06 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153159 Archived-At: At 12:54 -0800 on Wednesday 2018-12-05, Eric Abrahamsen wrote: > "N. Jackson" writes: > >> I'm trying to set up a Gnus posting style that makes use of the >> =E2=80=98message-reply-headers=E2=80=99 variable, but the behaviour I se= e indicates that >> this variable is always nil (in the context where the posting styles are >> evaluated). >> >> It seems (this is a wild guess) that the function >> `gnus-configure-posting-styles' that applies the posting styles that >> match, and which is called from `message-mode-hook' (I believe), is >> called before `message-reply-headers' is set. >> >> 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). > > So far as I can tell, the problem is the former -- > `gnus-configure-posting-styles' is called before `message-reply-headers' > is set. > > Both `message-reply' and `message-followup' first call > `message-pop-to-buffer' (which ends up calling `message-mode' and thus > the `message-mode-hooks', and thus `gnus-configure-posting-styles'). > > Then they set `message-reply-headers'. > > Then they call `message-setup', which calls `message-setup-1', which > runs the `message-setup-hook', which would be a spot where > `message-reply-headers' would be accessible. > > I will check and see if this changed sometime recently. I haven't been able to convince myself that `message-reply-headers' can ever have worked properly with Gnus posting styles.=20 > I would say that posting-style configuration could be moved to the > `message-setup-hook', That sounds right, I think.=20 > except that that would be guaranteed to wreck all manner of existing > configurations and get us lots of angry emails. Maybe. I haven't been able to think of how it would negatively affect existing setups, but probably I'm just lacking in imagination!