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: [PATCH] Support "\n" in icomplete-separator Date: Sun, 15 Nov 2020 03:39:34 +0100 Message-ID: <20201115023934.uvcybhyltpqazerf@Ergus> References: <83mtzp2qj0.fsf@gnu.org> <83r1p11369.fsf@gnu.org> <834klv26vu.fsf@gnu.org> <835z69y7kc.fsf@gnu.org> <20201114061735.wm3tgh72eesyg6jp@Ergus> 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="17299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Andrii Kolomoiets Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 15 03:40:40 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 1ke7y3-0004QG-IF for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Nov 2020 03:40:39 +0100 Original-Received: from localhost ([::1]:46672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ke7y2-00079R-L3 for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Nov 2020 21:40:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke7xN-0006SL-Io for emacs-devel@gnu.org; Sat, 14 Nov 2020 21:39:57 -0500 Original-Received: from sonic304-10.consmr.mail.bf2.yahoo.com ([74.6.128.33]:42857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ke7xK-0005bg-Jz for emacs-devel@gnu.org; Sat, 14 Nov 2020 21:39:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1605407990; bh=Yhq6Mt0eZCyh+H++hMQN0uNZQ2k9Vj4/LUHT1z/3IAc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=iwy6HqZxESf14zZpqvEpc8heJBTA++wOp1nUPDeU9c6xdfCVupBZIBgDIWRfJNf0c6cRnr/xtkG55+9yaH2mt3d43QzibGjrbEaP9f5eMBWh+kEajYJ6RU/R2m6xWI33N/SQK452ifpKLhEPUL8wrXnM4Jvk2VoMtnDTioWoFomyLDya3h1d4rnCBWlAn7oJp6Ct9Rzvluj2vDeVOPAZEgmNYBKDwAHPLPlFfZCchaxMFA3Cn/baf7H9CYr0O6hcpvSOUnubil6noCPGLgyNHHVAU2XIicLn0yuGFP+NR9kXrpYty1osqF6l5otHoSUDmDb5sJdfQKSKcPUuPiUJMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1605407990; bh=ca5jNQyi7UJ+OdwZu6Wgx80Np65xR7xn38Ze8h2noOH=; h=Date:From:To:Subject:From:Subject; b=SptKGyNGrXVxNzHuESRyOPstWr4VlAkcJOQUbeXaYy0PZV8TwtMUL69BsRtHW1c7aoh27TMCDncq++wuvXoI574STpIJEzPi0lZ6Q3jEC/AKBObvRAMaHi0dohNPQQKYkOAeLor0Y2vj+3pAP2L5AfT033ZrwJOfQVaJqywr8rA4SGD5k9WoLWJSYHv4R+fuiqcyFgRD/vJknrXKvvDuoU+65qwWI5eOKsqPz1eLZn+Ll3bxSqY4mcCmZz0a0RLUfTg/NZRg89b7DtjDuW8RO9Y0Rkxv0fM0nD8Ae4YIuW9QrTdV9jvjZ5FvoSE8T0ECi0HQJjB2FOkigI8C2B09IA== X-YMail-OSG: X4wqoYoVM1mfXqheZSy6zoJkcB8atXRDb9wZ5VON5I18FdvZS44g1vT_SZcslp8 d1Zm8FKnC8SvzPvKAi0fmSkBJGOablt88Ga9LNA6tx5J.d4KVjOIBIsyO5Z7zgszoiJWnZvvXbLf qwtZ6Wf4z390G5coPBXerB3WxBJ97AMpP_.RliNriTpYwIM1XjTN57F3r5BsqMaaigRfd4CKhkyA njjIBUevs6rzzVK8lzKvYMWmxGkfF4gIIwz373a1FLRg0ZfguA_53PC_zmfx1Iy.fm2mEUSQA888 kCrZNjCNB4jc5IedKGJe_JaGD.sdvKtyoVxDtJQSr79JWLGsaZPYWdqd7TI4LhCLDl0kwruZiu.c PJQtdKskLJOpb4gffgGilUyzQdvXyyYisekuWOBvgR064sAqC7lKoJP0mpuZXq_g_q6KyGzqwVsN 0iWct9ZkIcq0CPTJhoZ3YIMnxdi4tkM84ivOK6I_amWej5mCHh5pvI2HgzOtZyNeBbRDGqa2qBIz GWL9TY.1zWZR3VI1TPy72AsG9NRrm9.U4ff2fffhI8pscHL3QbGgrtblojV3_QN5zh7NdVCv6fbA FeZVpOMIGS_V5uAoaFqBR0vo1x_VMBr4.MJDThtG.lYPDS7Z9FSi4IGGb3g5XxO8Yu5VLVo3sB4h UZJWEBTCfs77mMqUtv7ZAbQmynV2ADFWGcCVb6wkxqF5gPmyAYnNz76l307rMjgbskg74uasiKxf Grllbk57P1SbGhkMVlL8e.uD.f6Ks1wYydVkMyuwYrT8CAYkUcTiwB86OjsdC4OyBDy9CccK_cMG ICzkrcFr_VJedwzCdSDLLO4jMCAypeIkiH.0lSZOHn Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sun, 15 Nov 2020 02:39:50 +0000 Original-Received: by smtp419.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3da3009eef952e3a1dbb66bbcce603ab; Sun, 15 Nov 2020 02:39:46 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.16944 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.128.33; envelope-from=spacibba@aol.com; helo=sonic304-10.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 21:39:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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:259191 Archived-At: On Sat, Nov 14, 2020 at 10:36:06PM +0200, Andrii Kolomoiets wrote: >Ergus writes: > >>>> Pressing TAB seems to be against the philosophy of icomplete, ivy, and >>>> similar features, at least AFAIU: they display the candidates without >>>> any prior request by the user. >>> >>>Among icomplete, ivy and ido modes only ivy is overriding TAB key. With >>>icomplete and ido the overlay text is not the _only_ way of knowing what >>>inputs are acceptable. Seems like they has nothing against using TAB to >>>complete text. >>> >> Ivy has ivy-partial-or-done bind to tab by default. Which completes >> common part or open on single alternative with the default action >> (find-file for file; dired for directories...). >> >> But it is possible to bind tab to ivy-partial in ivy-minibuffer-map >> instead. Then you have only completion on tab which is probably more >> familiar for shell users, and a more predictable behavior. Actually the >> most opposed completion system to use tabs is helm not ivy ;p > >In emacs -Q: >1. M-: (set-frame-height nil 1) >2. M-x >3. TAB >Completion buffer is opened and from now each pressing of TAB will >scroll completions. >4. ivy-mode RET >5. M-x >6. TAB >No completions are visible >7. TAB >No completions so far but the 'enable-theme' command is invoked. > >With TAB rebinded to 'ivy-partial', the command in step 7 is not >invoked, but still no completions are showed. Something is wrong in this setup or I don't understand what do you mean, sorry. If you do: Git clone git@github.com:abo-abo/swiper.git cd swiper make plain M-x Don't you get a completion list in minibuffer (without needing a tab)? Pressing does nothing in this case... because it is not needed. But If you type something like: defi don't you get: defin (completing the n) and a list with completion candidates starting with "defin"? (6 in my case) then if you do: e you get: define- (completing the -) and a new shorter list with less candidates? Ivy doesn't need the tab to show completion candidates, but it completes with tab and shows the candidates in the minibuffer (like icomplete does, remember ivy is a fork of icomplete). Or when you say "completion" are you referring to the *Completions* buffer only? Is the *Completions* buffer useful somehow when you already have the same candidates in the ivy minibuffer with all the functionalities? without needing to use the mouse (ivy candidates are clickable) or change window to select a candidate?