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 BF9936DE00B8 for ; Sat, 10 Jun 2017 18:29:50 -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 oR8DWE6de8VF for ; Sat, 10 Jun 2017 18:29:49 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id C666E6DE00AC for ; Sat, 10 Jun 2017 18:29:49 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1dJreN-00012U-VI; Sat, 10 Jun 2017 21:26:43 -0400 Received: (nullmailer pid 17721 invoked by uid 1000); Sun, 11 Jun 2017 01:29:46 -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: <87mv9f1pk6.fsf@cassou.me> References: <87mva3r3wo.fsf@cassou.me> <20170524061444.12827-1-damien@cassou.me> <8760g4em51.fsf@tethera.net> <87mv9f1pk6.fsf@cassou.me> Date: Sat, 10 Jun 2017 22:29:46 -0300 Message-ID: <87zidfb9bp.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: Sun, 11 Jun 2017 01:29:50 -0000 Damien Cassou writes: > David Bremner writes: >> 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. > > I guess you are using the default imenu frontend which is both > ugly and inefficient. I also guess few people care about adding > imenu support to packages for this exact reason. The counsel's > version is quite good though (see attached screenshot). The > indentation is respected making the imenu content a visual > overview of the thread (and you don't have to type any periods). I am indeed using the default. I think you forgot the screen shot. > I can still get rid of indentation if you confirm you don't want > it. I think so, although to be honest I never tried imenu before testing your patches, perhaps we should wait for other opinions. > You also say the information on > the header line is not very helpful. Do you have any other > suggestion? I'm open to trying several different alternatives and > see what people prefer. I guess I don't really understand how the matching is supposed to work. If the user has to type from the beginning of the index string, then I guess putting either the date or the subject first might be helpful. It's probably true that there is no one good order for all threads. Some threads change subject often, others author, and one I'm looking at right now has 25 messages with two authors and one subject. d