Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Colin Baxter <m43cap@yandex.com>
Cc: ding@gnus.org
Subject: Re: gnus-extra-headers
Date: Sat, 04 Sep 2021 08:15:06 -0700	[thread overview]
Message-ID: <87wnnwid8l.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87wnnwv1zy.fsf@yandex.com> (Colin Baxter's message of "Sat, 04 Sep 2021 15:39:29 +0100")

Colin Baxter <m43cap@yandex.com> writes:

>>>>>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>     > Colin Baxter <m43cap@yandex.com> writes:
>     >> Hello Eric,
>     >>>>>>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>     >> 
>     >> > Colin Baxter <m43cap@yandex.com> writes: >> Hello,
>     >> >> 
>     >> >> 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:
>     >> >> 
>     >> >> gnus-extra-headers is a variable defined in ‘gnus-sum.el’.
>     >> 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)
>     >> >> 
>     >> >> You can customize this variable.
>     >> >> 
>     >> >> 
>     >> >> This variable was introduced, or its default value was
>     >> changed, >> in version 25.1 of Emacs.
>     >> >> 
>     >> >> Documentation: Extra headers to parse.
>     >> >> 
>     >> >> The X-Diary settings seem to come from nndiary.el, but there
>     >> is >> nothing in the doc-string to indicate this.
>     >> >> 
>     >> >> Is this a bug? Is not the "Original value" of
>     >> gnus-extra-headers >> incorrect?
>     >> 
>     >> > 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?
>     >> 
>     >> 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.


  reply	other threads:[~2021-09-04 15:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01  8:15 gnus-extra-headers Colin Baxter
2021-09-02 22:12 ` gnus-extra-headers Eric Abrahamsen
2021-09-03  5:42   ` gnus-extra-headers Colin Baxter
2021-09-03 18:30     ` gnus-extra-headers Eric Abrahamsen
2021-09-04 14:39       ` gnus-extra-headers Colin Baxter
2021-09-04 15:15         ` Eric Abrahamsen [this message]
2021-09-05  8:36           ` gnus-extra-headers Colin Baxter
2021-09-06  3:31             ` gnus-extra-headers Eric Abrahamsen
2021-09-06  7:14               ` gnus-extra-headers Colin Baxter
2021-09-06  8:37                 ` gnus-extra-headers Colin Baxter
2021-09-06 16:15                   ` gnus-extra-headers Eric Abrahamsen
2021-09-06 16:29                     ` gnus-extra-headers Colin Baxter
2021-09-06 17:39                       ` gnus-extra-headers Eric Abrahamsen
2021-09-06 19:33                         ` gnus-extra-headers Colin Baxter
2021-09-06 17:16                     ` gnus-extra-headers Stephen Berman
2021-09-06 18:40                       ` gnus-extra-headers Eric Abrahamsen
2021-09-07  5:53                         ` gnus-extra-headers Colin Baxter
2021-09-07 18:56                           ` gnus-extra-headers 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=87wnnwid8l.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    --cc=m43cap@yandex.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).