Re: [PATCH v5 00/12] emacs: more flexible and consistent tagging operations

Subject: Re: [PATCH v5 00/12] emacs: more flexible and consistent tagging operations

Date: Sat, 25 Feb 2012 01:05:55 +0100

To: Dmitry Kurochkin, David Bremner, notmuch@notmuchmail.org

Cc:

From: Pieter Praet


On Fri, 24 Feb 2012 23:38:20 +0100, Pieter Praet <pieter@praet.org> wrote:
> [...]
> Same here.  In v2 [1], '*' tags all and 'C-u *' tags only open.
> 
> One can always swap the keybindings if so inclined.
>

Did I really say that?

There's only a single keybinding, so swap it with *what* ?!?  Itself ?

This should work though:

  #+begin_src emacs-lisp
    (define-key notmuch-show-mode-map "*"
      (lambda (prefix &rest tag-changes)
        (interactive
         (cons
          (not current-prefix-arg)
          (notmuch-read-tag-changes nil notmuch-show-thread-id)))
        (apply 'notmuch-show-tag-all prefix tag-changes)))
  #+end_src

> [...]


Peace

-- 
Pieter

Thread: