From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: feature/completions-highlight-modifications e3c5b99 3/6: Add completions-highlight-mode initial implementation. Date: Mon, 23 Nov 2020 00:09:56 +0100 Message-ID: <20201122230956.mai3i6ckqymzvyvb@Ergus> References: <92f3cbd7-29a0-461a-a023-562bc6020ea8@default> <87v9e5herj.fsf@mail.linkov.net> <20201116102729.ywubtda6cqdzc45z@Ergus> <87d00acuh3.fsf@mail.linkov.net> <20201119032519.lpa53ixezgpdppze@Ergus> <87d009kfmf.fsf@mail.linkov.net> <20201119105052.kfichqojkhfwwsiz@Ergus> <87k0ugfirt.fsf@mail.linkov.net> <20201120145248.wmbv2zgbvs7bg25i@Ergus> <871rgmwt6e.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Drew Adams , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 23 00:11:56 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 1kgyWP-0001Yn-Rh for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Nov 2020 00:11:53 +0100 Original-Received: from localhost ([::1]:37444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgyWO-0006X3-QH for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 18:11:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgyV3-0005mk-7v for emacs-devel@gnu.org; Sun, 22 Nov 2020 18:10:30 -0500 Original-Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]:46277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgyUv-0008IV-Be for emacs-devel@gnu.org; Sun, 22 Nov 2020 18:10:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1606086617; bh=IRDkUmnGHXbv7o44dgt67Fg/KRQmcfuviylgnUpt4+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=lGXzYBgvaNSZW7Do9kBp1FgAcrnixd3oxjzAqXecNyFzcJMhCt5Yy7UWXJ7ZZJGY035fV7K8bP3mBF5udWpz44fDI/0yqHaG3oOoEPHlXBeok30zMuzueqDE5jAkIfeY4AJescDGhs9qoT44XnlpMwu5nSYVMC74iXggEdfzZe6c0A2McraJmzIvmXYsw7/ToS+IItPuscPKgXDyxDF1/AVyQQKzykg3xSaacnooKyCtoG5fDAZc57f/H7CFxUo7p/9OtpzEayxwRsGSupDC6rXsyeh9S4pw9YlnO9ApwGJS6dUO0qlD/X/XtnJy7EPRHv2dz1TemiEuia0YqFoN/g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1606086617; bh=ziHb1kQpD/DQknXUjbQhec5qQ+cqmuxKXHPudCtZGYv=; h=Date:From:To:Subject:From:Subject; b=ipxHI3Rx8m8mbz27ZuzS1Upyq7tCrymaEc6T3r0dvGN8oSUbre/TtGEiLa/rysf/fCR9AGL69vCGbnGQ3fb4zGPZ+bGAyOBcZnXCesmz4Af+GqenS35xoaebV/0g/thU/KlvPP0y25GMbSxGwSGktnx1q85VHfyJvia4XDFPpn1eZTBgdULD+C2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o.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Sun, 22 Nov 2020 23:10:17 +0000 Original-Received: by smtp424.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a4acc795f43ef3725b4e81d84768d408; Sun, 22 Nov 2020 23:10:12 +0000 (UTC) Content-Disposition: inline In-Reply-To: <871rgmwt6e.fsf@mail.linkov.net> X-Mailer: WebService/1.1.17111 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.133.124; envelope-from=spacibba@aol.com; helo=sonic313-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:259656 Archived-At: On Sat, Nov 21, 2020 at 09:30:17PM +0200, Juri Linkov wrote: >>>> Maybe we should look more how zsh behaves... and try to mimic that as >>>> much as possible. Because it is already pretty consisten >>> >>>Does zsh use arrow keys to navigate in completions? >>>How then it's possible to get previous/next history item (up/down arrows), >>>and move the cursor in the command line (left/right arrows)? >> >> Similar to what we are doing. >> >> 1) When NO completions shown: previous/next history and so on. >> 2) When completions are shown: navigate completions. >> >> Completions are only shown after a "tab request" 1->2 (unlike >> incomplete) > >Trying to mimic the 'zsh' behavior is a good thing. Using >'zsh' as a reference, what do you think about naming the package >'zcomplete'. > >> If you type any letter completions disappear, inserts a space and then >> the letter, so >> >> backspace just hides completions (deletes the inserted space), so goes >> from 2->1 easily (unlike *Completions*). > >If you want to emulate the 'zsh' behavior, then much simpler approach >would be to allow TAB to pop-up the completions buffer, i.e. to display >and switch to it. Then all motion keys will be available by default. >To display the cursor in the minibuffer is still possible by using >'(cursor-in-echo-area t)'. RET will insert the completion under point >to the minibuffer. Any self-inserting key could switch back >to the minibuffer and insert its character. > Hi Juri: Could you try it now please? I am wondering that with this new behavior it is a bit more like zsh but diverges a bit too much from the current default emacs completion, so making this default will be virtually impossible. And my real objective was to improve the default completion; not make a new one. IMO we may reconsider if we should go in the direction of commit 60a1003aee or in the one of c7c47e78e6. Best, Ergus