unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Improving spam-tagging keybinding function to act on region in emacs
@ 2014-05-06 12:17 Olivier Berger
  2014-05-06 16:08 ` Mark Walters
  0 siblings, 1 reply; 8+ messages in thread
From: Olivier Berger @ 2014-05-06 12:17 UTC (permalink / raw)
  To: notmuch

Hi.

I've tried tu use the tips indicated at
http://notmuchmail.org/emacstips/#index8h2 so as to add a keybinding to
tag spam messages, and wonder if there's a possibility to make it apply
on selected regions, like what notmuch-search-archive-thread does.

I can achieve the same result using a macro to iterate over lines, but a
single key press to tag results of a search filter would be quite
convienent.

And... at the moment, it seems to me that with the current suggested
lambdas, if one presses 'S' after selecting a whole region results in
tagging all sorts of messages (all ?) with the spam tag ! :-/


Btw, I think that the current examples could be improved by adding a (next-line)
at the end, like :
(define-key notmuch-search-mode-map "S"
        (lambda ()
          "mark messages in thread as spam"
          (interactive)
          (notmuch-search-tag '("+spam" "-inbox"))
          (next-line)))

Thanks in advance.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-15 23:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06 12:17 Improving spam-tagging keybinding function to act on region in emacs Olivier Berger
2014-05-06 16:08 ` Mark Walters
2014-05-07 11:37   ` Olivier Berger
2014-05-22  8:06     ` Mark Walters
2014-05-22  8:59       ` Olivier Berger
2014-06-06 12:48     ` [PATCH] emacs: search archive tweak Mark Walters
2014-06-07 13:38       ` Tomi Ollila
2014-07-15 23:10       ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).