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 C52486DE12EB for ; Sat, 8 Oct 2016 19:37:20 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, 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 zX-yRlamR6h8 for ; Sat, 8 Oct 2016 19:37:19 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id DE46C6DE12E4 for ; Sat, 8 Oct 2016 19:37:18 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1bt3z2-0004n7-Bb; Sat, 08 Oct 2016 22:37:00 -0400 Received: (nullmailer pid 8091 invoked by uid 1000); Sun, 09 Oct 2016 02:37:12 -0000 From: David Bremner To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: jump: make multilevel keys do multilevel jump In-Reply-To: <1475967619-24268-1-git-send-email-markwalters1009@gmail.com> References: <8737k6andm.fsf@zancas.localnet> <1475967619-24268-1-git-send-email-markwalters1009@gmail.com> Date: Sat, 08 Oct 2016 23:37:12 -0300 Message-ID: <877f9i459j.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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, 09 Oct 2016 02:37:20 -0000 Mark Walters writes: > notmuch jump allows the user to specify a key sequence rather than > just a single key for its bindings. However, it doesn't show what has > already been typed so it can be difficult to see what has > happened. This makes each key press appear, and the jump menu reduce > to the possible follow up keys. > --- > > bremner pointed out that multi-key key sequences were unclear in > tag-jump (and other jump uses). This makes it clearer by displaying > the keys typed so far and reducing the displayed options based on what > has been typed so far. Backspace is bound to remove the last typed > character and return to the previous level. Slightly unfortunately > emacs likes to call backspace "DEL". I like the functionality a lot, but some things backspace/DEL caught my attention 1) It would be nice if k aborted the sequence (although it doesn't claim it will, so technically not a bug) 2) it doesn't seem to work correctly in emacs -nw (I'm testing in emacs 25.1 atm, in case that's relevant). I just get a message "delete-backward-char: Text is read-only" There is some information about delete and backspace https://www.gnu.org/software/emacs/manual/elisp.html#Function-Keys The cariable local-function-key map also seems relevant.