From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26345 invoked from network); 4 Sep 2021 15:15:28 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 4 Sep 2021 15:15:28 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mMXOA-00EmYm-Sn for ml@inbox.vuxu.org; Sat, 04 Sep 2021 10:15:26 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1mMXOA-001thi-Ei for ml@inbox.vuxu.org; Sat, 04 Sep 2021 10:15:26 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mMXO7-001tha-V7 for ding@lists.math.uh.edu; Sat, 04 Sep 2021 10:15:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mMXO4-00EmYT-37 for ding@lists.math.uh.edu; Sat, 04 Sep 2021 10:15:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=46FS3atxk539kd1mWn3Iod3pRK2vzIgNxo1nWgimtNs=; b=uizGxM8KoptckLJkDj1b8UxX+z E4a1ABcy8ahBZ+p+jT3uhsyOCENAx9y24kh4TpiYFHKETuqsxlrPP+ApVyGSRLhz0qA2aVaFlyQUU nAzvvsaRKl0iuLw02yOAC0Nety31wC2qOb7TT3gdEX+m2QOyarwi2cCkNKa7d0gzlgLY=; Received: from mail.ericabrahamsen.net ([52.70.2.18]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMXNv-0003Tk-OL for ding@gnus.org; Sat, 04 Sep 2021 17:15:14 +0200 Received: from localhost (24-113-148-110.wavecable.com [24.113.148.110]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 13273FA82D; Sat, 4 Sep 2021 15:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1630768508; bh=46FS3atxk539kd1mWn3Iod3pRK2vzIgNxo1nWgimtNs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WrDW8twO6QKFIqY6Zg+IXAT6J77VUBXMaJGCUuGajkQf99zzWBBQqjyYBO3DlZdmK ECvEdQXKchA5bPNvwgJDOVpPGFTgP7MkipnIy5XaG8HvzCYoP8fuUYpAhaE/1Y/ZWA dMUc3YpPN7fKOJFU6vZMFHRcN0cTNQsejo3amjxk= From: Eric Abrahamsen To: Colin Baxter Cc: ding@gnus.org Subject: Re: gnus-extra-headers References: <87sfyohftb.fsf@yandex.com> <87sfymy6ck.fsf@ericabrahamsen.net> <87y28e6wr1.fsf@yandex.com> <875yvhldf3.fsf@ericabrahamsen.net> <87wnnwv1zy.fsf@yandex.com> Date: Sat, 04 Sep 2021 08:15:06 -0700 In-Reply-To: <87wnnwv1zy.fsf@yandex.com> (Colin Baxter's message of "Sat, 04 Sep 2021 15:39:29 +0100") Message-ID: <87wnnwid8l.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Colin Baxter writes: >>>>>> Eric Abrahamsen writes: > > > Colin Baxter writes: > >> Hello Eric, > >>>>>>> Eric Abrahamsen writes: > >>=20 > >> > Colin Baxter writes: >> Hello, > >> >>=20 > >> >> If emacs (tested with 27.2 and 28.0.50) is launched with -Q > >> (or >> gnus-extra-headers has not been set explicitly by the > >> user) then >> the variable gnus-extra-headers has the value: > >> >>=20 > >> >> gnus-extra-headers is a variable defined in =E2=80=98gnus-sum.e= l=E2=80=99. > >> Its >> value is (X-Diary-Time-Zone X-Diary-Dow X-Diary-Year >> > >> X-Diary-Month X-Diary-Dom X-Diary-Hour X-Diary-Minute To Cc >> > >> Keywords Gcc Newsgroups X-GM-LABELS) Original value was (To Cc >> > >> Keywords Gcc Newsgroups X-GM-LABELS) > >> >>=20 > >> >> You can customize this variable. > >> >>=20 > >> >>=20 > >> >> This variable was introduced, or its default value was > >> changed, >> in version 25.1 of Emacs. > >> >>=20 > >> >> Documentation: Extra headers to parse. > >> >>=20 > >> >> The X-Diary settings seem to come from nndiary.el, but there > >> is >> nothing in the doc-string to indicate this. > >> >>=20 > >> >> Is this a bug? Is not the "Original value" of > >> gnus-extra-headers >> incorrect? > >>=20 > >> > I don't think it's really a bug. If you don't use the nndiary > > >> backend, those headers don't get added to `gnus-extra-headers', > > >> and it has its "original value" as noted in *Help*. I don't think > >> > there's any contract that says additional libraries can't > > >> manipulate the value of customization options... is there? > >>=20 > >> True, but the user might suppose that using -Q ensures that no > >> extra libraries are loaded. I would have thought that nndiary > >> constitutes an extra library. If it does not and the library is > >> germane to -Q then why omit any mention of it from > >> gnus-extra-headers? I have quickly looked at NEWS for emacs-25.1 > >> but found nothing relevant. > > > If I start with "emacs -Q" and a minimal Gnus setup, the nndiary > > isn't loaded and its values aren't added to > > `gnus-extra-headers'. The odd thing is that in my usual Emacs/Gnus > > set up, those values _are_ added, and I don't use nndiary or > > gnus-diary.el. Hang on, let me force an error in there and see > > exactly what's loading it. > > > Nope, I just restarted Emacs and Gnus, and did some other > > Org/Diary/Calendar stuff for good measure, and now nothing has > > triggered a load of 'nndiary, and the extra values aren't added. > > > Obviously something, somewhere, eventually triggers that load in > > my setup, but it doesn't seem to happen by default. I'm quite > > ready to believe that something is loading 'nndiary when it > > doesn't need to, but so far I don't know what it is. > > > Maybe you could give it a shot? Delete nndiary.elc, stick a call > > to (error) in nndiary.el, > > How do I modify the file nndiary.el to achieve this? Sorry, I didn't ask how you're using Emacs, and assumed you were running from the source tree, or had access to it. If you do have access to nndiary.el, just edit it regularly in Emacs, and add a line like: (error) anywhere in the file, maybe at the top. You'll need to remove nndiary.elc, otherwise that will get loaded instead of the *el file. > > and restart everything? > > What I do know is that if nndiary is not present (.el) and (.elc) then > gnus-extra-headers becomes (To Cc Keywords Gcc Newsgroups X-GM-LABELS). If those files aren't present, I guess I would have expected you to see an error, as whatever is loading it fails to find it.