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 D362F6DE0C64 for ; Fri, 9 Jun 2017 17:12:32 -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 WeGf5tvhxwc1 for ; Fri, 9 Jun 2017 17:12:30 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id A13FC6DE0C51 for ; Fri, 9 Jun 2017 17:12:30 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1dJU00-0007sD-KV; Fri, 09 Jun 2017 20:11:28 -0400 Received: (nullmailer pid 29710 invoked by uid 1000); Sat, 10 Jun 2017 00:12:26 -0000 From: David Bremner To: Damien Cassou , notmuch@notmuchmail.org Subject: Re: [PATCH] Add Emacs' imenu support in notmuch-show and notmuch-search In-Reply-To: <20170524061444.12827-1-damien@cassou.me> References: <87mva3r3wo.fsf@cassou.me> <20170524061444.12827-1-damien@cassou.me> Date: Fri, 09 Jun 2017 21:12:26 -0300 Message-ID: <8760g4em51.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: Sat, 10 Jun 2017 00:12:32 -0000 Damien Cassou writes: > Emacs' major modes can facilitate navigation in their buffers by > supporting Imenu. In such major modes, launching Imenu (M-x imenu) > makes Emacs display a list of items (e.g., function definitions in a > code buffer). Selecting an item from this list moves point to this > item. > > This patch adds Imenu support to both notmuch-show and notmuch-search > buffers: > > * in notmuch-show, Imenu will present a list of all messages in the > currently visible thread; > > * in notmuch-search, Imenu will present a list of all messages in the > search buffer. In show mode the chosen imenu index function seems less useful to me; it treats indentation level as significant, so in threads with many levels of reply, one has to type many periods. It's also not clear to me that the information on the header line is very helpful for navigation, even without indentation. d