From: Pieter Praet Date: Sat, 25 Feb 2012 00:05:55 +0000 (+0100) Subject: Re: [PATCH v5 00/12] emacs: more flexible and consistent tagging operations X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7572d8b33cb1db1e91489599bba180ef877e647d;p=notmuch-archives.git Re: [PATCH v5 00/12] emacs: more flexible and consistent tagging operations --- diff --git a/9a/f86ea8370aa285246c48c794d48e8c8d45a2b3 b/9a/f86ea8370aa285246c48c794d48e8c8d45a2b3 new file mode 100644 index 000000000..88270b366 --- /dev/null +++ b/9a/f86ea8370aa285246c48c794d48e8c8d45a2b3 @@ -0,0 +1,100 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7E1E0416040 + for ; Fri, 24 Feb 2012 16:08:17 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id IkctJaGUrMK7 for ; + Fri, 24 Feb 2012 16:08:17 -0800 (PST) +Received: from mail-we0-f181.google.com (mail-we0-f181.google.com + [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C73EB41617F + for ; Fri, 24 Feb 2012 16:08:16 -0800 (PST) +Received: by werp13 with SMTP id p13so2051866wer.26 + for ; Fri, 24 Feb 2012 16:08:15 -0800 (PST) +Received-SPF: pass (google.com: domain of pieter@praet.org designates + 10.180.80.35 as permitted sender) client-ip=10.180.80.35; +Authentication-Results: mr.google.com; + spf=pass (google.com: domain of pieter@praet.org + designates 10.180.80.35 as permitted sender) + smtp.mail=pieter@praet.org +Received: from mr.google.com ([10.180.80.35]) + by 10.180.80.35 with SMTP id o3mr9482950wix.5.1330128495728 (num_hops = + 1); Fri, 24 Feb 2012 16:08:15 -0800 (PST) +Received: by 10.180.80.35 with SMTP id o3mr7613960wix.5.1330128495600; + Fri, 24 Feb 2012 16:08:15 -0800 (PST) +Received: from localhost ([109.131.181.26]) + by mx.google.com with ESMTPS id df3sm6680143wib.1.2012.02.24.16.08.14 + (version=TLSv1/SSLv3 cipher=OTHER); + Fri, 24 Feb 2012 16:08:14 -0800 (PST) +From: Pieter Praet +To: Dmitry Kurochkin , + David Bremner , notmuch@notmuchmail.org +Subject: Re: [PATCH v5 00/12] emacs: more flexible and consistent tagging + operations +In-Reply-To: <87y5rrdfhf.fsf@praet.org> +References: <1327725684-5887-1-git-send-email-dmitry.kurochkin@gmail.com> + <1328426033-21480-1-git-send-email-dmitry.kurochkin@gmail.com> + <87wr7xqpuf.fsf@rocinante.cs.unb.ca> <878vjtqhcg.fsf@praet.org> + <87obsojzga.fsf@gmail.com> <87y5rrdfhf.fsf@praet.org> +User-Agent: Notmuch/0.11.1+210~g6afc43e (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-unknown-linux-gnu) +Date: Sat, 25 Feb 2012 01:05:55 +0100 +Message-ID: <87sjhz22vw.fsf@praet.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Gm-Message-State: + ALoCoQkLzk8z6t6Y+R5DuDbADu3LKWlCFRnL24qXGyibtj0gPbyr6LnwUfRm9p5T5uWlExUOAVln +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 25 Feb 2012 00:08:17 -0000 + +On Fri, 24 Feb 2012 23:38:20 +0100, Pieter Praet 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