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 E03D86DE00F5 for ; Tue, 13 Jun 2017 18:22:54 -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 l1N9eIlCHePT for ; Tue, 13 Jun 2017 18:22:53 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 87F1F6DE0008 for ; Tue, 13 Jun 2017 18:22:53 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1dKwyH-0005TM-H0; Tue, 13 Jun 2017 21:19:45 -0400 Received: (nullmailer pid 32317 invoked by uid 1000); Wed, 14 Jun 2017 01:22:50 -0000 From: David Bremner To: Damien Cassou , Damien Cassou , notmuch@notmuchmail.org Subject: Re: In-Reply-To: <20170612133010.13579-1-damien@cassou.me> References: <87bmpuokl1.fsf@tethera.net> <20170612133010.13579-1-damien@cassou.me> Date: Tue, 13 Jun 2017 22:22:50 -0300 Message-ID: <878tkvtlat.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: Wed, 14 Jun 2017 01:22:55 -0000 Damien Cassou writes: >> OK, I see with counsel-imenu the current indexing by header lines is >> reasonable. It might be improvable by adding the subject, but I'm >> not sure about line lengths. >> - maybe the docstrings should recomment counsel-imenu? > > I'm not sure as the function > `notmuch-show-imenu-extract-index-name-function` is private and there > are other imenu frontends available. What about a NEWS entry instead > along those lines: > > * Add Emacs' imenu support in notmuch-show and notmuch-search > > 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 release 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. > > We recommand an external imenu frontend, such as counsel-imenu, > which will make the experience much better that the default `M-x > imenu`. That sounds fine. >> I think the indentation should probably go to make it more usable >> with the builtin imenu > > I did that in the patch even though I liked it with indentation better. I haven't had a chance to test the new version yet, but I think I know what you mean from testing counsel-imenu. Is it worth adding a customization variable so that the user can choose indentation if they have a more sophisticated imenu front end? d