From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: feature/completions-highlight-modifications e3c5b99 3/6: Add completions-highlight-mode initial implementation. Date: Mon, 23 Nov 2020 22:44:24 +0300 Message-ID: References: <87d009kfmf.fsf@mail.linkov.net> <20201119105052.kfichqojkhfwwsiz@Ergus> <87k0ugfirt.fsf@mail.linkov.net> <20201120145248.wmbv2zgbvs7bg25i@Ergus> <871rgmwt6e.fsf@mail.linkov.net> <20201122230956.mai3i6ckqymzvyvb@Ergus> <87pn44juyg.fsf@mail.linkov.net> <20201123114620.6htiapgjp4oykvib@Ergus> <83o8jnvqeh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: spacibba@aol.com, juri@linkov.net, monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 23 20:47:18 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khHnv-0001dl-Ix for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Nov 2020 20:47:15 +0100 Original-Received: from localhost ([::1]:46346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khHnu-0004O0-Iq for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Nov 2020 14:47:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khHlU-0002wr-Oj for emacs-devel@gnu.org; Mon, 23 Nov 2020 14:44:44 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:41353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khHlS-0006Eg-SE; Mon, 23 Nov 2020 14:44:44 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C1AE3.000000005FBC1129.00000C00; Mon, 23 Nov 2020 19:44:40 +0000 Content-Disposition: inline In-Reply-To: <83o8jnvqeh.fsf@gnu.org> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259695 Archived-At: * Eli Zaretskii [2020-11-23 22:13]: > > Date: Mon, 23 Nov 2020 17:13:54 +0300 > > From: Jean Louis > > Cc: emacs-devel@gnu.org, Stefan Monnier , > > Drew Adams , Juri Linkov > > > > TAB philosophy is for line based completions. Anything else need not > > use TAB. > > And yet Bash completion uses TABs, but displays multi-line completion > lists. And so does GDB (actually, Readline). > > So I don't agree with your philosophical assessment. No need to agree. Let me express me better: When I write words to select from a list of candidates in helm, I can write anything like for the file sat_media I can write: at me I am not referring to how completion shows its candidates but that by using TAB the line is being expanded to completion. TAB completion cannot be expanded by writing anything by common implementations. Some new implementation could do that too, it is just not common or non-existent. To expand the file sat_media what is common is to start typing begin of the file in Bash like saTAB to get sat_media. But I cannot write mediaTAB to get sat_media, so TAB expands lines. That it displays multiline completion lists is fine and good, but it will not search by parts of the words like non-TAB completions. Though it could. Helm does not expand by TAB, it expands by anything, if I write ~/tmp/at me I would get ~/tmp/sat_media so it is not line based completion (line is not expanded) it is visual choice completion and the select key does not matter much, one could select TAB as well in that case. Emacs enhances line based completion that one can use at least joker *, so I could write *atTAB to get maybe sat_media. But I cannot write ~/tmp/*at m to get ~/tmp/sat_media though implementation could be quite different and it could be possible.