From unknown Thu Jun 19 14:12:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33140 <33140@debbugs.gnu.org> To: bug#33140 <33140@debbugs.gnu.org> Subject: Status: 27.0.50; `gnus-posting-styles' sees nil =?UTF-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable Reply-To: bug#33140 <33140@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:12:28 +0000 retitle 33140 27.0.50; `gnus-posting-styles' sees nil =E2=80=98message-repl= y-headers=E2=80=99 variable reassign 33140 emacs submitter 33140 "N. Jackson" severity 33140 normal tag 33140 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 12:19:31 2018 Received: (at submit) by debbugs.gnu.org; 24 Oct 2018 16:19:31 +0000 Received: from localhost ([127.0.0.1]:40430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFLsY-0005kC-Gz for submit@debbugs.gnu.org; Wed, 24 Oct 2018 12:19:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFLsW-0005jx-RE for submit@debbugs.gnu.org; Wed, 24 Oct 2018 12:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFLsM-00010K-4z for submit@debbugs.gnu.org; Wed, 24 Oct 2018 12:19:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFLsJ-0000wI-QX for submit@debbugs.gnu.org; Wed, 24 Oct 2018 12:19:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFLsF-0008RM-EQ for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 12:19:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFLch-0000ej-GR for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 12:03:12 -0400 Received: from mail-it1-x12f.google.com ([2607:f8b0:4864:20::12f]:34531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFLch-0000eI-6V for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 12:03:07 -0400 Received: by mail-it1-x12f.google.com with SMTP id e81-v6so4507053itc.1 for ; Wed, 24 Oct 2018 09:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=icFxU/73lNJ+0d3O7rQ1KNm6mh/CXyTLFYqfL+XQG/I=; b=usmCDJ1oiJiTYhNvqOL5e14yDfFso+DzJkecHqFB2C98VXD9mWT4w4dw741ABPlA0z HEFonTiuIDOJxmvy5+r/hKaXCHktiKVOg548BtbO4KcbqtlwyXPXBRLqco+34bMr351C uwN3iUbfh04zh1R2qkdhkcBbwCAfUbPh3MWM+JDc+JyO/xqWIdNEfmM0lxo/SxyRxFfd 11nLxvbTwHOjfOh60xhTUEqv/M/AkECwJi/1qWn8ks9Gx/zfD+a724MrWoLJT8dxtI1V 95zTXGBKk8mdAuy8XTT/OkbyNbMN/V7TTFCDT37ThCwiAD3loZFQio4mDk/yNKS9aZ3D AkUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=icFxU/73lNJ+0d3O7rQ1KNm6mh/CXyTLFYqfL+XQG/I=; b=UUePtIz2DcxSy471VpPf0M0gnHoQfz9PIf3wMqgAsfGWoRgy2PGkawGGAgIrbmV/D+ vIUjItFFrnsuMkWbHX9zp2WCjZfQGF0DojAcT4/EWcl35aoQpW5ZYNFKrY0VpvEbxFG+ FFAwqxUXrv+hQQj1yX0zBLYaPtH5oM7dEUHiJwDayApoB4K2ShYxJP4EJwGwawv9rDQ/ k3nvSFlcmZmO8WUxDHGKjVq/OsgOG2WWvi2WDC4UaBxsCdjNJ1Ff2c3arOmU0fioHv5r SLGIIYj5wIXIHpJqem0PigUZgKCHDgxuezr68POw5ND3R8Veqdp21PsIqWCZ0C5g8++E Kv7g== X-Gm-Message-State: AGRZ1gI6BbjuVNizzm1TlKbB/Xw9O3yACknQOUryme1OLB/LuWB0Zx9h jdq+DvyJ95p5ZcC+BEGiTb6ZdCE9 X-Google-Smtp-Source: AJdET5f3hDWryv+QAx5rBnxAAgF/VLsylCZ2t4bGfnaRtWGtsuOI28k3+cNYj3isnxqtTuPmImtKHg== X-Received: by 2002:a02:6c83:: with SMTP id w125-v6mr2059802jab.7.1540396985273; Wed, 24 Oct 2018 09:03:05 -0700 (PDT) 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 q205-v6sm8424394itc.2.2018.10.24.09.03.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 09:03:04 -0700 (PDT) From: "N. Jackson" To: bug-gnu-emacs@gnu.org Subject: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98messag?= =?utf-8?Q?e-reply-headers=E2=80=99?= variable Date: Wed, 24 Oct 2018 12:03:03 -0400 Message-ID: <8736svz614.fsf@moondust.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) 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 see i= ndicates 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). 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 =E2=80=98eval=E2=80=99ed and the return value will = be used). The functions and sexps are called/=E2=80=98eval=E2=80=99ed in the message bu= ffer that is being set up. The headers of the current article are available through the =E2=80=98message-reply-headers=E2=80=99 variable, which is a vector o= f the following headers: number subject from date id references chars lines xref extra. If I am understanding this documentation correctly, `message-reply-headers' should be available when posting styles are evaluated. =3D=3D=3D For example, with the following test setting for `gnus-posting-styles', (setq gnus-posting-styles '(("" ; Catch all posting style. (eval (if message-reply-headers (message "`message-reply-headers' is set.") (message "`message-reply-headers' is not set.")) ) ) ) ) If I reply to a message in the Gnus summary buffer R ; `gnus-summary-reply-with-original'. the following message is printed in the echo area: `message-reply-headers' is not set. . But if I then do C-h v message-reply-headers RET (in the new *unsent reply...* buffer), I'm told message-reply-headers is a variable defined in `message.el'. Its value is [0 "Re: Packing of union fields and bool_bf" "Eli Zaretskii " "Sat, 13 Oct 2018 18:15:25 +0300" "<838t31vpwy.fsf@gnu.org>" nil 0 0 ""] Local in buffer *unsent reply to Eli Zaretskii*; global value is nil Documentation: The headers of the current replied article. It is a vector of the following headers: [number subject from date id references chars lines xref extra]. [back] Am I missing something here, or is the Gnus posting styles functionality br= oken? Note: To be fair, the paragraph quoted above from the Gnus manual only says that `message-reply-headers' can be used for the attribute value; it doesn't say that it can be used when the "attribute" is `eval'. However, the following does not work either (no "Cc" header is inserted in the new message): (setq gnus-posting-styles '(("" ; Catch all posting style. ;; Set the "Cc" header of the new message to the "From" ;; address of the replied-to message. (Cc (elt message-reply-headers 2)) ) ) ) ) but evaluating `(elt message-reply-headers 2)' in the new *unsent reply...* buffer gives a good value, and furthermore (just to narrow down where the problem is), the following works fine (the "Cc" header is inserted): (setq gnus-posting-styles '(("" ; Catch all posting style. ;; Set the "Cc" header of the new message to the "From" ;; address of the replied-to message. (Cc "john.doe@example.com") ) ) ) ) . In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-10-24 built on moondust.localdomain Repository revision: 00027ff9d0f646662458bdb47cc7e2214f439698 Windowing system distributor 'Fedora Project', version 11.0.11906000 System Description: Fedora 27 (Workstation Edition) Configured using: 'configure 'CFLAGS=3D-O3 -g3 -gdwarf-4'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix Major mode: Summary Minor modes in effect: hl-line-mode: t TeX-PDF-mode: t diff-auto-refine-mode: t pdf-occur-global-minor-mode: t shell-dirtrack-mode: t recentf-mode: t display-battery-mode: t display-time-mode: t show-paren-mode: t savehist-mode: t save-place-mode: t electric-pair-mode: t desktop-save-mode: t delete-selection-mode: t cua-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Features: (shadow emacsbug misearch multi-isearch eieio-opt speedbar sb-image ezimage dframe debug backtrace sort mm-archive gnus-bcklg gnus-cite bbdb-message sendmail cl-print help-fns radix-tree gnus-async qp mail-extr gnus-ml disp-table hl-line nndraft nnmh utf-7 gnutls epa-file network-stream nnfolder bbdb-gnus nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache dired-aux preview prv-emacs tex-buf font-latex latex latex-flymake flymake-proc flymake thingatpt tex-ispell tex-style tex dbus tex-mode vc-git diff-mode sh-script smie executable org-duration org-eldoc flyspell ispell org-w3m org-rmail org-mhe org-irc org-info org-habit org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils org-docview doc-view org-bibtex bibtex org-bbdb pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet dired-x dired dired-loaddefs pdf-isearch pdf-misc imenu pdf-tools compile cus-edit pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode org-agenda org-element avl-tree generator org advice org-macro org-footnote org-pcomplete org-list org-faces org-entities time-date noutline outline easy-mmode org-version ob-shell shell pcomplete ob-R ob-python ob-plantuml ob-org ob-gnuplot ob-ditaa ob-calc calc-store calc-trail calc-ext calc calc-loaddefs calc-macs ob-awk ob-dot ob-maxima ob-latex ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func bbdb-mua bbdb-anniv diary-lib diary-loaddefs cal-menu calendar cal-loaddefs bbdb-com crm mailabbrev bbdb bbdb-site timezone ido debbugs soap-client mm-decode mm-bodies mm-encode url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml edmacro kmacro recentf tree-widget wid-edit battery time wheatgrass-theme paren savehist saveplace elec-pair desktop frameset delsel cua-base cus-start cus-load mule-util tex-site ess-generics info finder-inf package let-alist derived pcase cl-extra help-mode easymenu url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv epg epg-config subr-x cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 758095 175653) (symbols 48 113738 1) (strings 32 193416 20794) (string-bytes 1 6153705) (vectors 16 90152) (vector-slots 8 2130710 378334) (floats 8 520 948) (intervals 56 13519 113) (buffers 992 90)) From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 05 15:54:33 2018 Received: (at submit) by debbugs.gnu.org; 5 Dec 2018 20:54:33 +0000 Received: from localhost ([127.0.0.1]:34674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeBl-00057o-Cl for submit@debbugs.gnu.org; Wed, 05 Dec 2018 15:54:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeBk-00057W-07 for submit@debbugs.gnu.org; Wed, 05 Dec 2018 15:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUeBd-0004TN-KI for submit@debbugs.gnu.org; Wed, 05 Dec 2018 15:54:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUeBd-0004T3-FC for submit@debbugs.gnu.org; Wed, 05 Dec 2018 15:54:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUeBc-0005fd-Hb for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 15:54:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUeBX-0004MP-Il for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 15:54:24 -0500 Received: from [195.159.176.226] (port=39508 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUeBX-0004L9-AX for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 15:54:19 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gUe9M-0004FR-EL for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 21:52:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Eric Abrahamsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable Date: Wed, 05 Dec 2018 12:54:06 -0800 Lines: 39 Message-ID: <87y393y9sh.fsf@ericabrahamsen.net> References: <8736svz614.fsf@moondust.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cancel-Lock: sha1:wSJ4gPVUmHGu3evwYMaZU/PCov4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) "N. Jackson" writes: > I'm trying to set up a Gnus posting style that makes use of the > ‘message-reply-headers’ variable, but the behaviour I see 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 would say that posting-style configuration could be moved to the `message-setup-hook', except that that would be guaranteed to wreck all manner of existing configurations and get us lots of angry emails. But... I think that's the issue. E From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 05 16:05:53 2018 Received: (at 33140) by debbugs.gnu.org; 5 Dec 2018 21:05:53 +0000 Received: from localhost ([127.0.0.1]:34681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeMj-0005QZ-GE for submit@debbugs.gnu.org; Wed, 05 Dec 2018 16:05:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeMi-0005QM-I4 for 33140@debbugs.gnu.org; Wed, 05 Dec 2018 16:05:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUeMc-0006uV-7L for 33140@debbugs.gnu.org; Wed, 05 Dec 2018 16:05:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUeMR-0006je-KJ; Wed, 05 Dec 2018 16:05:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gUeMQ-0007fc-BO; Wed, 05 Dec 2018 16:05:35 -0500 From: Glenn Morris To: Eric Abrahamsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> X-Spook: MD2 Riot Port Bush Wired monarchist Mysql injection X-Ran: =,dI+V8x%)cHhf30-=='1&L%<6_D!iq_Q1JkkB7pz}I5|9k+jp';mgZFDCp<{\l4gJB`vR X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 05 Dec 2018 16:05:34 -0500 In-Reply-To: <87y393y9sh.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 05 Dec 2018 12:54:06 -0800") Message-ID: <0136rbvg4h.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi, please reply-to-all else the submitter won't see your response if they aren't subscribed to the bug list. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 05 16:13:24 2018 Received: (at 33140) by debbugs.gnu.org; 5 Dec 2018 21:13:24 +0000 Received: from localhost ([127.0.0.1]:34696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeTz-0005cQ-TV for submit@debbugs.gnu.org; Wed, 05 Dec 2018 16:13:24 -0500 Received: from mail.ericabrahamsen.net ([50.56.99.223]:43307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUeTy-0005cH-Es for 33140@debbugs.gnu.org; Wed, 05 Dec 2018 16:13:22 -0500 Received: from localhost (unknown [207.109.85.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 764243F062; Wed, 5 Dec 2018 21:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1544044401; bh=DFVgMTvtYCU0qoGhKorZEoY5ZXMxF0C9VMhOZo9Zta4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PuQp4DXVBAemFgxaaNR++Ld89GmrLxq53RLyIz0+D3DzkZ4kb5cUbRUXwZ0IrXUyN Twp32wKaDULrgvnqiiQPnxKJjmgjG6tKSDyCm3ETuxmvVQ2bg3fixFrWnQlysL6afY 2SUJk2Q8HJbyS7o9MCZIovwkz+TN0yDOk39M8nJU= From: Eric Abrahamsen To: Glenn Morris Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <0136rbvg4h.fsf@fencepost.gnu.org> Date: Wed, 05 Dec 2018 13:13:20 -0800 In-Reply-To: <0136rbvg4h.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 05 Dec 2018 16:05:34 -0500") Message-ID: <87h8fry8wf.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33140 Cc: nljlistbox2@gmail.com, 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sorry, hit the wrong key. On 12/05/18 16:05 PM, Glenn Morris wrote: > Hi, please reply-to-all else the submitter won't see your response if > they aren't subscribed to the bug list. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 06 20:57:14 2018 Received: (at 33140) by debbugs.gnu.org; 7 Dec 2018 01:57:14 +0000 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 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 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) 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) From: "N. Jackson" To: Eric Abrahamsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> Date: Thu, 06 Dec 2018 20:57:05 -0500 In-Reply-To: <87y393y9sh.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 05 Dec 2018 12:54:06 -0800") Message-ID: <87k1kmgkum.fsf@moondust.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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! From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 06 22:17:25 2018 Received: (at 33140) by debbugs.gnu.org; 7 Dec 2018 03:17:25 +0000 Received: from localhost ([127.0.0.1]:36196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV6dl-0001Iu-Jr for submit@debbugs.gnu.org; Thu, 06 Dec 2018 22:17:25 -0500 Received: from mail.ericabrahamsen.net ([50.56.99.223]:40985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV6dg-0001Ii-Ps for 33140@debbugs.gnu.org; Thu, 06 Dec 2018 22:17:20 -0500 Received: from localhost (71-212-20-199.tukw.qwest.net [71.212.20.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3B0DD3F46A; Fri, 7 Dec 2018 03:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1544152636; bh=xELEPHAEwyVLee5OvZKqYwKUy0iyVz63iKIw1zEuHAU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ApQjiHRbOR/9cI4ilVyVWB2eSNUsZGDh9OzQcyCOyYJi66o5HUpamShSD/j087jGR Q2VqWIeVNCL1DL/FW3ZWX7e9soorcRYK0hQPbeKm8x6WT0u91PV54J/PmIz5xotLkk zXe8eA5RoYTAniySOM0qxBQkqblSbOlGJGi31mIA= From: Eric Abrahamsen To: "N. Jackson" Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <87k1kmgkum.fsf@moondust.localdomain> Date: Thu, 06 Dec 2018 19:17:09 -0800 In-Reply-To: <87k1kmgkum.fsf@moondust.localdomain> (N. Jackson's message of "Thu, 06 Dec 2018 20:57:05 -0500") Message-ID: <87h8fqxbyi.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "N. Jackson" writes: > At 12:54 -0800 on Wednesday 2018-12-05, Eric Abrahamsen wrote: > >> "N. Jackson" writes: >> [...] >> 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. > >> I would say that posting-style configuration could be moved to the >> `message-setup-hook', > > That sounds right, I think. The other possibility is: `gnus-configure-posting-styles' adds all its actions to `message-setup-hook'. Perhaps the way it's meant to work is: g-c-p-s adds *forms* to the message-setup-hook, but those forms aren't actually evaluated until the hook is running, at which point we should have access to everything we need. I would need to look more closely at it to tell if that's the case, or if it *could* be the case, but it would be one way that this code might once have worked. >> 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! You'd be amazed at the number of ways things can blow up! From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 06 22:22:54 2018 Received: (at submit) by debbugs.gnu.org; 7 Dec 2018 03:22:55 +0000 Received: from localhost ([127.0.0.1]:36200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV6j5-0001VU-3n for submit@debbugs.gnu.org; Thu, 06 Dec 2018 22:22:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gV6j0-0001V7-6r for submit@debbugs.gnu.org; Thu, 06 Dec 2018 22:22:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gV6iq-0007vs-Ix for submit@debbugs.gnu.org; Thu, 06 Dec 2018 22:22:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gV6iq-0007vg-EC for submit@debbugs.gnu.org; Thu, 06 Dec 2018 22:22:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gV6im-0004mA-7K for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 22:22:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gV6ih-0007bk-AP for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 22:22:32 -0500 Received: from [195.159.176.226] (port=46549 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gV6ih-0007X3-0u for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2018 22:22:27 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gV6gW-0007M2-BO for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2018 04:20:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Eric Abrahamsen Subject: Re: 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 19:22:17 -0800 Lines: 31 Message-ID: <87d0qexbpy.fsf@ericabrahamsen.net> References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <87k1kmgkum.fsf@moondust.localdomain> <87h8fqxbyi.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cancel-Lock: sha1:PgCFCqnYiCfmOXTbTfwSZJnHQIg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Eric Abrahamsen writes: > "N. Jackson" writes: > >> At 12:54 -0800 on Wednesday 2018-12-05, Eric Abrahamsen wrote: >> >>> "N. Jackson" writes: >>> > > [...] > >>> 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. >> >>> I would say that posting-style configuration could be moved to the >>> `message-setup-hook', >> >> That sounds right, I think. > > The other possibility is: `gnus-configure-posting-styles' adds all its > actions to `message-setup-hook'. Perhaps the way it's meant to work is: > g-c-p-s adds *forms* to the message-setup-hook, but those forms aren't > actually evaluated until the hook is running, at which point we should > have access to everything we need. Just noticed that gnus-msg.el doesn't have lexical-binding set to t. I'm not clever enough to know, without sitting down to think, how that might affect things, but it's something to look at. Need to go out now, though... From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 10 17:48:00 2019 Received: (at 33140) by debbugs.gnu.org; 10 Jan 2019 22:48:00 +0000 Received: from localhost ([127.0.0.1]:54366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghj7H-0005Jd-PL for submit@debbugs.gnu.org; Thu, 10 Jan 2019 17:48:00 -0500 Received: from relayout03-redir.e.movistar.es ([86.109.101.203]:16835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghj7G-0005JO-22 for 33140@debbugs.gnu.org; Thu, 10 Jan 2019 17:47:58 -0500 Received: from sky (141.red-79-151-141.dynamicip.rima-tde.net [79.151.141.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout03.e.movistar.es (Postfix) with ESMTPSA id 43bLjx6m4LzMlWx for <33140@debbugs.gnu.org>; Thu, 10 Jan 2019 23:47:49 +0100 (CET) From: =?utf-8?Q?=C3=93scar_Fuentes?= To: 33140@debbugs.gnu.org Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable Date: Thu, 10 Jan 2019 23:47:49 +0100 Message-ID: <87o98o165m.fsf@telefonica.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.141.141 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout03 X-TnetOut-MsgID: 43bLjx6m4LzMlWx.A8E92 X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1547765270.2968@T09aQu1DPDeeS+bAZzph/Q X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33140 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I discovered this bug report after wasting some time trying to figure out what was wrong with my code. Emacs 26.1 here. Activating lexical binding in gnus-msg.el has no effect. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 16:40:56 2019 Received: (at 33140) by debbugs.gnu.org; 13 May 2019 20:40:56 +0000 Received: from localhost ([127.0.0.1]:46446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQHkl-0006mi-O1 for submit@debbugs.gnu.org; Mon, 13 May 2019 16:40:55 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQHkj-0006ma-Rw for 33140@debbugs.gnu.org; Mon, 13 May 2019 16:40:54 -0400 Received: from [12.41.144.226] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hQHkg-0001Uj-Hl; Mon, 13 May 2019 22:40:53 +0200 From: Lars Ingebrigtsen To: Eric Abrahamsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <87k1kmgkum.fsf@moondust.localdomain> <87h8fqxbyi.fsf@ericabrahamsen.net> <87d0qexbpy.fsf@ericabrahamsen.net> Date: Mon, 13 May 2019 16:40:48 -0400 In-Reply-To: <87d0qexbpy.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 06 Dec 2018 19:22:17 -0800") Message-ID: <87pnomqe9b.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: > Just noticed that gnus-msg.el doesn't have lexical-binding set to t. I'm > not clever enough to know, without sitting down to think, how that might > affect things, but it's something to look at. Ne [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen writes: > Just noticed that gnus-msg.el doesn't have lexical-binding set to t. I'm > not clever enough to know, without sitting down to think, how that might > affect things, but it's something to look at. Need to go out now, > though... It shouldn't affect things in this area in one way or another -- all these variables are defvarred and therefore have dynamic extent... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu May 16 14:36:17 2019 Received: (at 33140) by debbugs.gnu.org; 16 May 2019 18:36:17 +0000 Received: from localhost ([127.0.0.1]:56472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRLEm-0008Uu-OX for submit@debbugs.gnu.org; Thu, 16 May 2019 14:36:16 -0400 Received: from ericabrahamsen.net ([52.70.2.18]:55762 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRLEl-0008Uf-7T for 33140@debbugs.gnu.org; Thu, 16 May 2019 14:36:16 -0400 Received: from localhost (50-251-205-17-static.hfc.comcastbusiness.net [50.251.205.17]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 2AFBEFAF0B; Thu, 16 May 2019 18:36:08 +0000 (UTC) From: Eric Abrahamsen To: Lars Ingebrigtsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <87k1kmgkum.fsf@moondust.localdomain> <87h8fqxbyi.fsf@ericabrahamsen.net> <87d0qexbpy.fsf@ericabrahamsen.net> <87pnomqe9b.fsf@mouse.gnus.org> Date: Thu, 16 May 2019 11:36:06 -0700 In-Reply-To: <87pnomqe9b.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Mon, 13 May 2019 16:40:48 -0400") Message-ID: <874l5ufdrd.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> Just noticed that gnus-msg.el doesn't have lexical-binding set to t. I'm >> not clever enough to know, without sitting down to think, how that might >> affect things, but it's something to look at. Need to go out now, >> though... > > It shouldn't affect things in this area in one way or another -- all > these variables are defvarred and therefore have dynamic extent... I'll try turning it on locally and see what happens. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 22 09:24:17 2019 Received: (at 33140) by debbugs.gnu.org; 22 Jun 2019 13:24:17 +0000 Received: from localhost ([127.0.0.1]:51265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1heg08-0000Sf-Tz for submit@debbugs.gnu.org; Sat, 22 Jun 2019 09:24:17 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1heg06-0000SU-Rx for 33140@debbugs.gnu.org; Sat, 22 Jun 2019 09:24:15 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1heg02-0006aR-JW; Sat, 22 Jun 2019 15:24:13 +0200 From: Lars Ingebrigtsen To: Eric Abrahamsen Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable References: <8736svz614.fsf@moondust.localdomain> <87y393y9sh.fsf@ericabrahamsen.net> <87k1kmgkum.fsf@moondust.localdomain> <87h8fqxbyi.fsf@ericabrahamsen.net> Date: Sat, 22 Jun 2019 15:24:10 +0200 In-Reply-To: <87h8fqxbyi.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 06 Dec 2018 19:17:09 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: > The other possibility is: `gnus-configure-posting-styles' adds all its > actions to `message-setup-hook'. Perhaps the way it's meant to work is: > g-c-p-s adds *forms* to the message-setup-hook, but [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33140 Cc: "N. Jackson" , 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen writes: > The other possibility is: `gnus-configure-posting-styles' adds all its > actions to `message-setup-hook'. Perhaps the way it's meant to work is: > g-c-p-s adds *forms* to the message-setup-hook, but those forms aren't > actually evaluated until the hook is running, at which point we should > have access to everything we need. > > I would need to look more closely at it to tell if that's the case, or > if it *could* be the case, but it would be one way that this code might > once have worked. Sounds reasonable to me... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 18:47:15 2019 Received: (at 33140) by debbugs.gnu.org; 22 Sep 2019 22:47:15 +0000 Received: from localhost ([127.0.0.1]:34642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCAdP-0002nx-GI for submit@debbugs.gnu.org; Sun, 22 Sep 2019 18:47:15 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCAdN-0002no-K2 for 33140@debbugs.gnu.org; Sun, 22 Sep 2019 18:47:14 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCAdJ-0003Vu-Ee; Mon, 23 Sep 2019 00:47:11 +0200 From: Lars Ingebrigtsen To: "N. Jackson" Subject: Re: bug#33140: 27.0.50; `gnus-posting-styles' sees nil =?utf-8?Q?=E2=80=98message-reply-headers=E2=80=99?= variable Date: Mon, 23 Sep 2019 00:47:08 +0200 Message-ID: <87zhiwgd8z.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "N. Jackson" 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)Pos [...] Content analysis details: (-1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.5 FAKE_REPLY_C No description available. X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33140 Cc: 33140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "N. Jackson" 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 =E2=80=98eval=E2=80=99ed and the return value wil= l be used). The > functions and sexps are called/=E2=80=98eval=E2=80=99ed in the message = buffer that is > being set up. The headers of the current article are available through > the =E2=80=98message-reply-headers=E2=80=99 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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 18:47:23 2019 Received: (at control) by debbugs.gnu.org; 22 Sep 2019 22:47:23 +0000 Received: from localhost ([127.0.0.1]:34645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCAdW-0002oI-Pi for submit@debbugs.gnu.org; Sun, 22 Sep 2019 18:47:23 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCAdU-0002oA-ME for control@debbugs.gnu.org; Sun, 22 Sep 2019 18:47:21 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCAdR-0003W4-V6 for control@debbugs.gnu.org; Mon, 23 Sep 2019 00:47:19 +0200 Date: Mon, 23 Sep 2019 00:47:17 +0200 Message-Id: <87y2yggd8q.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #33140 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 33140 fixed close 33140 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 33140 fixed close 33140 27.1 quit From unknown Thu Jun 19 14:12:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Oct 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator