From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5012 invoked by alias); 18 Apr 2018 09:16:06 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23342 Received: (qmail 20912 invoked by uid 1010); 18 Apr 2018 09:16:06 -0000 X-Qmail-Scanner-Diagnostics: from bart.luffy.cx by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(78.47.78.131):SA:0(-1.9/5.0):. Processed in 14.889791 secs); 18 Apr 2018 09:16:06 -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,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: bernat@luffy.cx X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=postfix; bh=U2O4L2tq9tDBeEtbEJmKGKuCHaM=; b=eJp XJV0rLSs/3RT7C1ou4wPjDilSLdEdKxNggmYyTAQavDJW310XtceB3r9dFsbsUkC ZWx1OoIJsiiN0J7wohjGe7cBLHVlpw1KtIJbU6o3nHaEZAcl4uPIvuRYhF5Xi7XB AOxakh0gXhppSXDePxyPBo2/dBijTY5G8HH/aOgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=postfix; b=M6rVWvAXeTSJEARdRSI2U6ZGFa56O cjzz5kLri/eZLmbt6W6HoTQsl4Edn0DYfjcJuSQJglU41SDSpFddfEK+crsA6GAL 42bnEbchKICvymiE/UTDm7FdWDpYxnXE0LhibDCC0Qb3EMKdo66O2zcCO4Qb+pjK 9ZiioGu7xjotKU= From: Vincent Bernat To: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: make history-complete-older do nothing on empty string References: <20180418094018.54559594@camnpupstephen.cam.scsc.local> Date: Wed, 18 Apr 2018 11:15:46 +0200 In-Reply-To: <20180418094018.54559594@camnpupstephen.cam.scsc.local> (Peter Stephenson's message of "Wed, 18 Apr 2018 09:40:18 +0100") Message-ID: <87in8o6fjx.fsf@luffy.cx> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E2=9D=A6 18 avril 2018 09:40 +0100, Peter Stephenson =C2=A0: >> I sometime hit M-/ by error and this invokes history-complete-older >> which then blocks when the current word is empty and it takes me 5-10 >> seconds to be able to "kill" it. Is there a way to teach this function >> to not complete anything on empty (or one-char) input? > > I don't think that's a normal effect. > > You can try and debug it this way: > > > _debug_history() { > _complete_debug _history_complete_word > } > debug_history .complete-word _debug_history > bindkey '^[/' _debug_history Not sure about the second line? debug_history doesn't exist. Shouldn't it be a "zle" command? --=20 Whenever you find that you are on the side of the majority, it is time to reform. -- Mark Twain