From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id ACDC56DE0068 for ; Fri, 8 Sep 2017 03:46:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[AWL=0.010, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GS_jRdWYqpyu for ; Fri, 8 Sep 2017 03:46:28 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 9380B6DE0005 for ; Fri, 8 Sep 2017 03:46:28 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dqGkE-0006J4-KM; Fri, 08 Sep 2017 06:42:42 -0400 Received: (nullmailer pid 12682 invoked by uid 1000); Fri, 08 Sep 2017 10:46:21 -0000 From: David Bremner To: Julien Cubizolles , Tom Hirschowitz Cc: Notmuch Mail Subject: Re: newbie questions about notmuch.el In-Reply-To: <87h8wd3g50.fsf@free.fr> References: <87wp5dzcln.fsf@free.fr> <87wp5cqkud.fsf@hirscho.lama.univ-savoie.fr> <87h8wd3g50.fsf@free.fr> Date: Fri, 08 Sep 2017 07:46:21 -0300 Message-ID: <87d171v56q.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Fri, 08 Sep 2017 10:46:33 -0000 Julien Cubizolles writes: > Tom Hirschowitz writes: > >> I think Julien meant the 'flagged' tag: just press the space bar to >> switch it on and off. >> >> Regarding the second question, you may filter your search (e.g., by the >> 'flagged' tag) and then tag all messages by pressing *. IIRC there is no >> shortcut for filtering by default. I have this >> >> (define-key notmuch-show-mode-map (kbd "l") 'notmuch-search-filter) >> (define-key notmuch-search-mode-map (kbd "l") 'notmuch-search-filter) >> (define-key notmuch-tree-mode-map (kbd "l") 'notmuch-search-filter) > > notmuch-search-filter doesn't seem to work in tree mode: I get > > --8<---------------cut here---------------start------------->8--- > (void-variable notmuch-search-query-string) > notmuch-search-filter-by-tag("+unread") > --8<---------------cut here---------------end--------------->8--- Yes, I think there has to be some mistake in what Tom quoted (or Tom is using a heavily modified version of notmuch), since notmuch-search-filter doesn't work in notmuch-show-mode either. The prefix is a a hint why that might be: notmuch-search-foo is generally intended to be called in notmuch-search mode. As was already mentioned, 'l' is bound by default to filter in both notmuch-show and notmuch-search mode. There's no direct equivalent in tree-mode currently, but you can use the following workaround S - switch to search view of same query l - limit search Z - switch back to tree view.