From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9521 invoked by alias); 18 Apr 2018 08:40:41 -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: 23341 Received: (qmail 13348 invoked by uid 1010); 18 Apr 2018 08:40:41 -0000 X-Qmail-Scanner-Diagnostics: from mailout2.w1.samsung.com 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(210.118.77.12):SA:0(-1.9/5.0):. Processed in 15.168054 secs); 18 Apr 2018 08:40:41 -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_HELO_PASS, SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180418084021euoutp029a39e97c96b22279749188b3f0aeece3~mew2F_69F0967109671euoutp023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524040821; bh=WtVxacqF/qafy9vRgl3X4Sfg54hl2Z7JHIWOqEkqxvM=; h=Date:From:To:Subject:In-reply-to:References:From; b=CdIshm4wUfRCU5gb8Wv8xfZ9bjvwQYJpAYfDYoubbUIZNn5ZT5RXsh5R+ECgeCU4m T8dZM/tPCueIIxxN8t9PIwam/bDsfR84vHYHucJgChoSZQjbAuIFNqWrJTdsYKO1pK xwbbi/YUI2BhHNhV+8K8RsWTkDaM628U1XQmCMo4= X-AuditID: cbfec7f2-1c1ff70000011644-b3-5ad704742038 Date: Wed, 18 Apr 2018 09:40:18 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: make history-complete-older do nothing on empty string Message-id: <20180418094018.54559594@camnpupstephen.cam.scsc.local> In-reply-to: Organization: SCSC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7djP87qlLNejDHY3MVrsOLmS0YHRY9XB D0wBjFFcNimpOZllqUX6dglcGTfXzGAqeMxWcf/0JKYGxiWsXYycHBICJhKHNrxl6mLk4hAS WMEo0fF3PpTTzSRxfGkTO0zVwsWL2SESyxglbr9YwwSSEBKYwiRx5ZAoROIMo8SaxmWMEM4F RokPp88CORwcLAKqEi83q4A0sAkYSkzdNJsRxBYREJVYvmIzO0iJsICzxLo1cSBhXiCzffJv sPM4BdQkvp34zwpSwi8gJHGh2RbiHnuJo3tOMkGUC0r8mHyPBcRmFtCR2LbtMTuELS+xec1b ZpBrJASmsEksuPafBaLZRaJ37h4mCFtY4tXxLVBPykh0dhxkgmhoZpRYe/8+G0Sih1Fi1uJQ CNtaou/2RUaIDXwSk7ZNZwY5TkKAV6KjTQjC9JB4flIaotpRYs/dDrDzhQQqJT7OE5vAKD8L ydWzkFw9C8nVCxiZVzGKp5YW56anFhvmpZbrFSfmFpfmpesl5+duYgTG++l/xz/tYPx6KekQ owAHoxIP7wKBa1FCrIllxZW5hxglOJiVRHh3Pr4SJcSbklhZlVqUH19UmpNafIhRmoNFSZw3 TqMuSkggPbEkNTs1tSC1CCbLxMEp1cC4e/bOE6bK/RtdV2vLnjM+OnORu+9/520TLm3tDPT/ aOHRyGX5+ol96oryZO00U9l9cY5vN2jGXv9UH+bzyUx6/l+2HC9Oj72m39l/vvH+ueUmx9oi 8T/KbTlbLGNT67rbHK0qly+1tz0xd2d2TksBp9/pgo622i3P/wZdu3n4ffzm/w4VM38psRRn JBpqMRcVJwIAKJKOifMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsVy+t/xa7olLNejDJ5NELbYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mm6umcFU8Jit4v7pSUwNjEtYuxg5OSQETCQWLl7M3sXIxSEk sIRR4tCRtUwQzjQmiVOflzGDVAkJnGOU+PyZHyJxgVFiUfN3oCoODhYBVYmXm1VAatgEDCWm bprNCGKLCIhKLF+xmR2kRFjAWWLdmjiQMC+Q2T75N9hiTgE1iW8n/rNCjK+WOH2unwWknF9A SOJCsy3EbfYSR/ecZIJoFZT4MfkeC4jNLKAlsXlbEyuELS+xec1bqCvVJW7c3c0+gVFoFpKW WUhaZiFpWcDIvIpRJLW0ODc9t9hQrzgxt7g0L10vOT93EyMwXLcd+7l5B+OljcGHGAU4GJV4 eBcIXIsSYk0sK67MPcQowcGsJMK78/GVKCHelMTKqtSi/Pii0pzU4kOM0hwsSuK85w0qo4QE 0hNLUrNTUwtSi2CyTBycUg2MU+1d5NkOli1TzuOKYZe/JaHHc+6InWbCO7/X0gfispliz6Zx LepalS3oxxIedWC1qaj3oh3T4tKl7pkqmdjvFjTmqfxivuqf28avfNk9+g0Ls41+pd0QVFhl xsK09um/pIyKThvL1/6Cn7iz77WaRU5sf2i6TrBryT0jt9Q5HCffaAgHVSixFGckGmoxFxUn AgCzM0pXUwIAAA== X-CMS-MailID: 20180418084020eucas1p13ba87821204496994ef31fa6e7075d68 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180418052832epcas2p1df623a44c88edae226f65a2d5edc90f2 X-RootMTR: 20180418052832epcas2p1df623a44c88edae226f65a2d5edc90f2 References: On Wed, 18 Apr 2018 07:21:35 +0200 Vincent Bernat wrote: > Hey! > > 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? > > Thanks! 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 Then when you use the command you should get a log of what it was doing, though if you have to abort you may well find you have to look for the most recently created file in /tmp to discover what that was. If you get anything, post the result. pws