From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico Date: Sat, 10 Apr 2021 16:11:47 +0300 Message-ID: <9408552c-5964-0eef-d821-ab2a79e5d7c7@yandex.ru> References: <9c9af088-580f-9fb1-4d79-237a74ce605c@inventati.org> <874kgkxxs0.fsf@posteo.net> <78741fe6-2612-d7c9-2bc4-0b68ea7fa51a@yandex.ru> <76a4d0e2-117b-165d-d56e-5bc2f504b50c@yandex.ru> <87blapln0r.fsf@posteo.net> <37bd2e96-ce04-eb6d-24da-fdd7ea427e61@yandex.ru> <87im4wx2ct.fsf@posteo.net> <83ft0080hi.fsf@gnu.org> <16784f40-b959-9a84-65d4-93b71d1bebec@yandex.ru> <5d5d0152-bb07-1bdd-6370-9498d4e4b867@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cc: Eli Zaretskii , philipk@posteo.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 10 15:14:25 2021 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 1lVDRQ-0005vx-NI for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 15:14:24 +0200 Original-Received: from localhost ([::1]:55974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVDRP-00051Y-O0 for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 09:14:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVDP1-0002vc-Lp for emacs-devel@gnu.org; Sat, 10 Apr 2021 09:11:55 -0400 Original-Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]:41527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVDOx-0001d4-Rz; Sat, 10 Apr 2021 09:11:53 -0400 Original-Received: by mail-ej1-x631.google.com with SMTP id g17so10085531ejp.8; Sat, 10 Apr 2021 06:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VMEE7pKX+09cVOE9d7/WwWa/1Go8U94mF4ZaGzgGbw8=; b=jSnS/rYTtCmtb6WJtuqXJuXO4hM1pwL11MjMtQJ6C76HdbP966XP9oNRC4jpL5Da7L ms0EG9FGUDEWrlVgya69eBQ/+ytVTzAWOrvphOCPVktTbRsr4ufNGX6S2H6shdL6W8AT xzLN6JAdqRByapbeFIO5EPmdk2gCMs6+VabNhKCRMamxZUoyOik6WNm8gyXgwhpKN6O8 NfMz8uukFtK5TdhlBF+24/G2IOWy4Rdb72tugQRW/RP8FpArQEcnBcWLM4QQQ4fPwQP0 2eo6W6uZqnCyTZEZXl6+RLzYMaBR/b/Y1HrJEdIzxNzK7qNY5A0JuSbCNItrhKkutIvt zRvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VMEE7pKX+09cVOE9d7/WwWa/1Go8U94mF4ZaGzgGbw8=; b=FAqNHUaKWA2lXVc74pyYcKCGZX1KLxyfxr6RZ1/8pfrKFlv67K3ffaChjw1PwUZDf5 f8KlvKOGHnyh2uv0LTKXJArxZ83J1uOSZnZVJTuRGGoNVfzBiXSKfsO7jpAtdjkX8R4D U78bJDOGW+3on8XwfkWYTwv4xBZKyJe4qMUdRoiELG8h0YuOq2SHzKKvihzoF53yMu4Z MdWIR/Sm6vw77QZmTNoOWWLL6dX8KjDm8qw6wO1Q8fsU+bJPch7FIpbd7kNhUU9LB7wV 7y5PDCOvp3xylclzRGErbF1LxIsK7oOHtO/aSr8Jis3+sNggWuqYZ6xX42ektpIman9J 6CaA== X-Gm-Message-State: AOAM533qCsPtngU+hqP3KHaU7vae9uIskt6y3Ip2ge9DSJxnvCneQ+ZC /492i9X6NZ+I9Ry2Vqac075tSwun4rA= X-Google-Smtp-Source: ABdhPJymdqQoR8dcluSxi40XTU19JIBvADyBvMuSnsP+P3zbtqoz6XqMfqJr0/kByFlqB82CgpsqBA== X-Received: by 2002:a17:906:9bf9:: with SMTP id de57mr3614255ejc.209.1618060309478; Sat, 10 Apr 2021 06:11:49 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id dj8sm3083299edb.86.2021.04.10.06.11.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Apr 2021 06:11:48 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=raaahh@gmail.com; helo=mail-ej1-x631.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:267815 Archived-At: On 10.04.2021 07:04, Stefan Monnier wrote: >>> I think it would be desirable to change the default UI just enough so >>> that a code like Xref can make `completing-read` display the >>> completions eagerly. >> The *Completions* window, you mean? > > I was thinking of a somewhat generic way to tell the UI that the list > should be shown eagerly. Presumably the default UI would react to it by > displaying the *Completions* window, yes. This basically sounds like icomplete or Ivy, and might get the same pushback as the suggestion to use one of them by default. In any case, I'd be happy to see experiments in that direction. >> It would still miss the ability to quickly accept one of them >> with RET. > > Right, but the cycle-threshold helps with that, no? At the moment, IIUC, the UI either lets you cycle, or shows the *Completions* buffer, but not both at the same time. Perhaps you're suggesting to remove that limitation (what would happen if I dismiss *Completions* and then press TAB again?). Maybe the optimal UI which is close enough to the default behavior would look more like icomplete-vertical: the items closer to the prompt, and there is a visible selection which you can accept with RET.