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)