From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28965 invoked by alias); 6 Apr 2016 19:24:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38249 Received: (qmail 29570 invoked from network); 6 Apr 2016 19:24:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=iwZLtkznjrbvZ8zCWVZQrvNv0dDwOVNBv50C4TC8NRs=; b=KuYdxNx09I4JIqhv4dXjPL0hGKFHPFWDBXMm3K02Rf5dS/RvZ0sl1WJ2X7TWaZLxBd G9O6E0C/Hqte/pWudrDZZQUehhFD8pWTa7qLs9+Qb0o33KH0ZzRTmZiQbZ/+QqwCKWt+ ZJT8l/8dBeEBOF9vqIhpVN1AvuFszGJDq/NRt9PfIB9zTOe59UZFXCbYWCtPXNYGF4kg O2sGdjXpWwakxI6J6q8FKHapuz1oOa28vqa9GGrkfY085cvao5PCCaUJ0fJYp1+jPcS6 0iT2ePYy5SBUV78C1h3Twri494wz/QpJlN6hKl8zB6omG/IjLNik8kFB24dskQzRqrIa fVow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=iwZLtkznjrbvZ8zCWVZQrvNv0dDwOVNBv50C4TC8NRs=; b=l0ReUoOGxC7zDcokTsG37yXfXJvSfZ9a+p5zg2vyXTiAPnkBx0a4IOyVvbILGKr0s0 TAOs+VyzURkHc1AWvNstKuKoqaujzTGoT7KlbA2huqslq4JNtW9/m9zU4cQGlJJQ0KA5 LkBuNplANzNaqRJcG6gjJC1oubW24mBbkDTvgC2bvE2TNUvQ1d6QuWAeAXvq2A+Nr9fO JhVezU/Dk3qhrDB5/aXn7Y4j06oseDvonrvusMZm+oypJO88vYTQwz3OBqBrs0ygHofX POdJzbi6kuNMYxqfzitmIRQ9nUwrRAElBf7IpEfqZGByeYuW3KBLyTeeqa+Nnsylaw/D jORw== X-Gm-Message-State: AD7BkJLBpm1qNli7z8vPAYhx5pVARpr5YfKBbm87V7Pb/UOaGtCkDbYAqE9yjel+QVO5mg== X-Received: by 10.98.73.132 with SMTP id r4mr41019902pfi.118.1459970664180; Wed, 06 Apr 2016 12:24:24 -0700 (PDT) From: Bart Schaefer Message-Id: <160406122525.ZM31913@torch.brasslantern.com> Date: Wed, 6 Apr 2016 12:25:25 -0700 In-Reply-To: Comments: In reply to Mikael Magnusson "Re: PATCH: Add SHORT_KEYBIND_DISCARD option" (Apr 6, 8:06pm) References: <1459658514-24610-1-git-send-email-mikachu@gmail.com> <24571.1459953207@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: PATCH: Add SHORT_KEYBIND_DISCARD option MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 6, 8:06pm, Mikael Magnusson wrote: } Subject: Re: PATCH: Add SHORT_KEYBIND_DISCARD option } } > ZLE-specific stuff should ideally not leak into the base shell options. } } Not sure what this is about, there are 113 calls to isset() in Src/Zle/* ZLE used to be part of the main shell, so the options were already there when it got peeled out into a module; but theoretically since then we are trying (probably not always successfully) to avoid having any additional co-dependency. (The lexer/completion situation I mentioned in another thread is a similar pre-module side-effect.) } Well, I want only one character to be eaten (or rather, only } characters that individually are "undefined-key"), rather than the } whole 'not actually a prefix'. } } Maybe I'm overestimating the amount of people depending on the current } behavior, and you would be more open to just changing the behavior } without adding any option? I was going to suggest that, though I'm not sure eating one character is really sufficient. What if you get four characters of a five-character prefix and then something you don't recognize? To actually be emacs-like, we'd have to go back and try the first three, and if still nothing the first two, and finally replay everything you backed over and maybe do it all again. But ZLE keymaps/binding don't really layer that way. I suppose most of the time the prefix is only one character and things would work out.