Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: Re: Set process mark according to author
Date: Mon, 20 Apr 2015 00:46:50 +0200	[thread overview]
Message-ID: <87vbgrviqt.fsf@debian.uxu> (raw)
In-Reply-To: <87zj63vjpm.fsf@debian.uxu>

Emanuel Berg <embe8573@student.uu.se> writes:

>> Did someone ever hack a function to set the process
>> mark on all messages from a given author ?
>> Right now when I want to remove/copy all messages
>> from an author, I use gnus-summary-limit-to-author,
>> mark all messages in the buffer, do whatever I want
>> with them, then pop the limit to get back to the
>> original summary. It's taking a lot of
>> keystrokes...
>
> Try this. In the summary buffer, hit M-:, then type
>
>     (gnus-kill "From" "Joe Hacker" '(gnus-summary-mark-as-processable 1) t)
>
> If it works do a defun wrapper which only accepts
> a name and inserts that instead of "Joe Hacker".
> Or even better, do a defun that pulls this name from
> the message at point.

This works:

(defun process-sender (sender)
  (gnus-kill "From" sender '(gnus-summary-mark-as-processable 1) t) )

(defun process-sender-at-point ()
  (interactive)
  (save-window-excursion          ; better way 
    (gnus-summary-select-article) ; to do this?
    (let ((sender (gnus-article-header-value "From")))
      (process-sender sender) )))

I crosspost this to gnu.emacs.help - perhaps someone
there knows how to set the article in the summary
buffer but without brining it up visually, which would
un-necessitate the use of `save-window-excursion'...

-- 
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2015-04-19 22:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1091.1429448493.904.info-gnus-english@gnu.org>
2015-04-19 22:25 ` Emanuel Berg
2015-04-19 22:46   ` Emanuel Berg [this message]
2015-04-20  7:32   ` Julien Cubizolles
     [not found]   ` <mailman.1160.1429515196.904.info-gnus-english@gnu.org>
2015-04-20 21:08     ` Emanuel Berg
2015-04-19 13:01 Julien Cubizolles

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=87vbgrviqt.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=info-gnus-english@gnu.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).