From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19367 invoked by alias); 19 Apr 2018 16:09:01 -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: 23353 Received: (qmail 18813 invoked by uid 1010); 19 Apr 2018 16:09:01 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca 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(24.224.136.10):SA:0(-2.6/5.0):. Processed in 1.787841 secs); 19 Apr 2018 16:09:01 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_DATE_IN_FUTURE_Q_PLUS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=gir0-LH0AAAA:8 a=4ksZm2IcFdw_wEpeTG8A:9 a=QEXdDO2ut3YA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: make history-complete-older do nothing on empty string To: zsh-users@zsh.org References: <20180418094018.54559594@camnpupstephen.cam.scsc.local> <87in8o6fjx.fsf@luffy.cx> <20180418104555.25fef55b@camnpupstephen.cam.scsc.local> <874lk866zp.fsf@luffy.cx> <20180418135817.7edca58c@camnpupstephen.cam.scsc.local> <780c04fe-a4cf-e64e-ce1b-0736ed77225e@eastlink.ca> From: Ray Andrews Message-id: Date: Thu, 3 Dec 2037 04:10:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 In-reply-to: Content-language: en-CA On 18/04/18 10:49 PM, Vincent Bernat wrote: > ❦ 18 avril 2018 11:53 -0700, Ray Andrews  : > >>>> Vincent, what version of zsh are you running? There were some memory >>>> management optimizations done in the past year or so that might speed >>>> up large history accesses in general. >>> FI, it is 5.5.1. And HISTFILE is set to 20000 (since years). >> Just curious: Why would completion on an empty string everbe useful? > Dunno. I want it to do nothing too if that's what you are asking. Yeah.  It seems to me that the thing would/should know that it has nothing to do.  It's sorta like writing a program to find the first prime number divisible by two, the program will run for a long time without producing much.  I'm wondering if the devs just overlooked that, or if perhaps the idea of completion on an empty string might actually have some sort of meaning.  Completion seems to be such a complex thing that maybe it does -- the sound of one hand clapping.