all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Bochannek <alex@bochannek.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 48801@debbugs.gnu.org
Subject: bug#48801: 28.0.50; [PATCH] Feature suggestion gnus-retrieve-headers check for nov-is-evil when agent is enabled
Date: Thu, 03 Jun 2021 11:01:49 -0700	[thread overview]
Message-ID: <m21r9izv1u.fsf@bochannek.com> (raw)
In-Reply-To: <87im2v9y4u.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 03 Jun 2021 09:59:45 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Alex Bochannek <alex@bochannek.com> writes:
>
>> 2) Is it possible to set `nntp-nov-is-evil' as a group parameter? It
>> looks like header retrieval may be too early for this and I may need to
>> use a hook?
>
> How about setting it in an early group entry hook depending on the group
> name?  And you can also set it to nil in an agent hook.

I have experimented with this a bit and it looks like it works. Here's
what I did:

(add-hook 'gnus-summary-mode-hook 'nov-is-evil-for-nnvirtual)
(defun nov-is-evil-for-nnvirtual ()
  (if (string-match "^nnvirtual:.*" gnus-newsgroup-name)
      (setq gnus-nov-is-evil t)))

This, combined with the patch I sent in, will cause `Newsgroups' to be
recorded in the .overview files when using the agent for new messages.

Is there any documentation you would like to see before accepting this
change?

-- 
Alex.





  reply	other threads:[~2021-06-03 18:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 21:13 bug#48801: 28.0.50; [PATCH] Feature suggestion gnus-retrieve-headers check for nov-is-evil when agent is enabled Alex Bochannek
2021-06-03  7:59 ` Lars Ingebrigtsen
2021-06-03 18:01   ` Alex Bochannek [this message]
2021-06-04  9:35     ` Lars Ingebrigtsen
2021-06-04 17:40       ` Alex Bochannek
2021-06-06  9:36         ` Lars Ingebrigtsen
2021-06-06 17:51           ` Alex Bochannek
2021-06-08  9:57             ` Lars Ingebrigtsen
2021-06-08 15:50               ` Alex Bochannek
2021-06-09  5:35               ` Alex Bochannek
2021-06-09  9:59                 ` Lars Ingebrigtsen
2021-06-09 18:05                   ` Alex Bochannek
2021-06-09 18:14                     ` Eli Zaretskii
2021-06-09 18:47                       ` Alex Bochannek
2021-06-09 18:55                         ` Eli Zaretskii
2021-06-09 19:04                           ` Alex Bochannek
2021-06-12 12:10                         ` Lars Ingebrigtsen
2021-06-12 17:49                           ` Alex Bochannek

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=m21r9izv1u.fsf@bochannek.com \
    --to=alex@bochannek.com \
    --cc=48801@debbugs.gnu.org \
    --cc=larsi@gnus.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.