From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Deleting mail in virtual group
Date: Sun, 05 Oct 2014 16:36:46 +0800 [thread overview]
Message-ID: <87a95a9ald.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874mvkexiw.fsf@mailbox.org>
Alexander Baier <alexander.baier@mailbox.org> writes:
> On 2014-10-04 14:48 Eric Abrahamsen wrote:
>>> I want to write my own command that finds the original group of the
>>> article in question and executes the move in that group. Is there a
>>> function that gets me the original group of an article in a virtual
>>> group?
>>
>> I'm pretty sure that nnvirtual-find-group-art will do what you want.
>> Feed it the article number of the article under point, along with
>> gnus-newsgroup-name in the virtual Summary buffer. See how it works!
>
> Thank you for your quick reply! These to functions do what I want and I
> get the correct original group and article. But now I am stuck and do
> not know how to get to the original group. This is what I tried:
>
> #+BEGIN_SRC emacs-lisp
> (defun my-nnvirtual-delete-article ()
> (interactive)
> (let ((original (nnvirtual-find-group-art
> gnus-newsgroup-name
> (gnus-summary-article-number))))
> (with-current-buffer gnus-group-buffer
> (gnus-group-goto-group (car original))
> (gnus-summary-goto-article (cdr original)))))
> #+END_SRC
All `gnus-group-goto-group' does is move to the group's line in the
*Group* buffer. Try `gnus-group-read-group' instead. That -- or
something involving that -- ought to do what you want.
> The group and article number returned by nnvirtual-find-group-art are
> correct, I checked. But the with-current-buffer part does not seem to
> work, as gnus always displays the article from the nnvirtual group with
> the original number.
>
> How do I switch to the original group?
>
> TIA,
next prev parent reply other threads:[~2014-10-05 8:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-04 9:19 Alexander Baier
2014-10-04 12:48 ` Eric Abrahamsen
2014-10-04 14:10 ` Alexander Baier
2014-10-05 8:36 ` Eric Abrahamsen [this message]
2014-10-05 18:28 ` Alexander Baier
2014-10-06 2:44 ` 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=87a95a9ald.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=ding@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.
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).