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.bugs Subject: bug#48356: 28.0.50; choose-completion discards the suffix after the completion boundary Date: Mon, 15 Apr 2024 02:55:35 +0300 Message-ID: <11a8e438-128d-47b3-ae6f-c3ce48bb902b@gutov.dev> References: <18593691-8b7a-facf-68e1-e9d0c106897b@daniel-mendler.de> <868rtcjqk4.fsf@mail.linkov.net> <949a6c3a-9a59-89dd-bdee-c0ec6ee0baa7@daniel-mendler.de> <86r173odnm.fsf@mail.linkov.net> <868rt42wiz.fsf@mail.linkov.net> <39326c56-094c-4074-95d7-8f92f7f927a5@gutov.dev> <82196eff-85e6-44da-89e4-4ead4d72e657@gutov.dev> <5f353cfe-b2d7-43ab-bc65-37a0d306c042@gutov.dev> <865xwov165.fsf@gnu.org> <3833acf2-704e-486b-8e33-54cddf26adc9@gutov.dev> <86le5f99ml.fsf@mail.linkov.net> 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="25514"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Spencer Baugh , mail@daniel-mendler.de, 48356@debbugs.gnu.org, monnier@iro.umontreal.ca, jdtsmith@gmail.com, Visuwesh , Eli Zaretskii To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 15 01:56:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rw9hh-0006O2-EL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Apr 2024 01:56:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw9hQ-00029Z-Te; Sun, 14 Apr 2024 19:55:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw9hP-00028z-L9 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 19:55:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw9hP-00044D-Cs for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 19:55:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw9ha-00018x-M0 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 19:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 23:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48356 X-GNU-PR-Package: emacs Original-Received: via spool by 48356-submit@debbugs.gnu.org id=B48356.17131389604365 (code B ref 48356); Sun, 14 Apr 2024 23:56:02 +0000 Original-Received: (at 48356) by debbugs.gnu.org; 14 Apr 2024 23:56:00 +0000 Original-Received: from localhost ([127.0.0.1]:36391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw9hY-00018I-0l for submit@debbugs.gnu.org; Sun, 14 Apr 2024 19:56:00 -0400 Original-Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]:54969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw9hW-000172-2L for 48356@debbugs.gnu.org; Sun, 14 Apr 2024 19:55:58 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 3AB6C180010E; Sun, 14 Apr 2024 19:55:40 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 14 Apr 2024 19:55:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1713138939; x=1713225339; bh=tuGONOkhXDTbCLpZiskZ1GuQZ/bCbKlxqZJ8aqYaFBY=; b= MjrZoZjytwo35pbR3+LRKBVPf0ootCuSw9ovMpi+WJMorQLWCHTj03N1zgDoPlTN Wi6WGzjPBKrZpBQ1+47hgl52L4wnpyAmbYjzAITzUSb3pn7L7FAh0DGm0un39NeP GpCp9v2gXsiS5EE1VVg7InabxNPH5d2TKTmeq4wI8lkt8vOqLcY95IusB2Y4DJ/6 u5pSh2V3PV7e4Miz9TwqTjTJFrvS0fQqeTNieGrMMzmtioF87qzg362xW+7YpZF5 JXR5EhuspO8mXVmvaYagBwrY6KJRnkkOxKedeop78zr8X5eomY1Xn8163FmVLlFz yaRd/IpanCZl7yojdWY+2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1713138939; x= 1713225339; bh=tuGONOkhXDTbCLpZiskZ1GuQZ/bCbKlxqZJ8aqYaFBY=; b=G wi7M6mbkNWvi4bBAmjK3tuRzRIrXu4qI+UhOnWjXktcn+ES6bAAAIBUaLgq7MQqn fygdd0J0bnvCH4meQx7ZvqbXBQSRQw2npxheABc6zdMPa65zYjDOgzThxsgiOerW WJDecq0hic08qvPNik2lD8xZGa/02FQwZwkKy6mQ9+F9emcn+A4B5O/++z1qUWhI CtIE/yWiBv2Z2hfgPAMsXgaPCffnw1mk3tr32lvReilR+Z8IelyiYWEVxOD/LKPK bVY+j6KZKOe5+tHI5ky/0CzXq8vCKh6ORKlowctaE/DxAyBgpfjAitGGfJmp/2LZ 7fmlpN2OWEfql47c0hy9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejtddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepffeifedvleeukedtgfelieegudfgveekfeejveejffetffeuueeugefhveei uddvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 14 Apr 2024 19:55:37 -0400 (EDT) Content-Language: en-US In-Reply-To: <86le5f99ml.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283328 Archived-At: Hi Juri, On 14/04/2024 19:44, Juri Linkov wrote: >> As one downside, it brings back behavior described in >> https://debbugs.gnu.org/34517#14. That doesn't seem too critical to me, but >> opinions might vary. > Sadly, this is quite an important case. Recently Spencer implemented > a way to deselect a candidate in the visible completions list > (minibuffer-visible-completions=t) when the user starts typing > in the minibuffer. I think the (admittedly pretty cool) minibuffer-visible-completions feature is orthogonal: the scenarios I'm considering and trying to fix here also involve selecting a completion from *Completions* in some way (e.g. using M-up or M-down followed by M-RET, in default configuration). And this is currently working worse for in-buffer completion than for minibuffer completion WRT keeping the suffix around. > But then the user could change the mind > and still select a candidate. This would interfere with the > contents of the minibuffer. Suppose they do. But the list of completions they're shown is for an outdated input. Does it really make more sense to erase the current input than to insert the completion where it was supposed to go? The problem here, from my POV, is that we currently have a solution which matches the above goal, but which only makes sense for minibuffer (I think you wouldn't store the before/after buffer contents in separate string variables the same way). Whereas the API used is the same, so it would really make sense to minimize the differences in behavior between minibuffer and in-buffer completion.