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#70968: 29.2.50; choose-completion on an emacs22-style completion deletes text after point Date: Sun, 8 Sep 2024 05:02:24 +0300 Message-ID: <204ea8b8-e9ad-42e6-b905-228fe1099219@gutov.dev> References: <86bk56jhsp.fsf@gnu.org> <377f815c-52d2-4770-ae85-55e096e104b0@gutov.dev> <8634qhipgj.fsf@gnu.org> <7e05fd14-3499-4811-b4bc-b53186b15408@gutov.dev> <86ed5vzzru.fsf@gnu.org> 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="16781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70968@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii , sbaugh@janestreet.com, monnier@IRO.UMontreal.CA Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 08 04:03:23 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 1sn7Gr-0004CO-8i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 04:03:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sn7Ga-0000XP-NX; Sat, 07 Sep 2024 22:03:04 -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 1sn7GX-0000X8-KU for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 22:03:02 -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 1sn7GX-0002yj-6o for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 22:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=+RiblT9XgTARG8NL+8cG+C8ZiMNoUljDKjYkrk+7QKE=; b=sYvf6lzBWH8TEyY5eiDCudl3kSOAljk1q7SXwn/IlnFa4I7+QCE7PT2uQKjvupgzWkihg9/I2OoOX8maBG4tqfuyaPs1yd48kcVDfh9yZRSZ1k52RLixuRwYcL6QzVwGzFB1k5AeOJ6sZwqtjZkspo891XVOleDI6D8rUvjMKSITwiaD6TdxEHKQ4InaQuxzCVJNZguMrtyywswvJF7UK+fuWPGUDPRYvdVy/7s1Tg4RXGZK3ppAWzVXO+2LGPVc2RgjTqrjXIpgl1go8+7quN4IO7XGpuopXnf5hAKBA18Z15vG/J2lEHiPfbC8sdcEGVVGw7Yife/RclD36eujgw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sn7GY-0002hE-8C for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 22:03: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, 08 Sep 2024 02:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70968 X-GNU-PR-Package: emacs Original-Received: via spool by 70968-submit@debbugs.gnu.org id=B70968.172576095910327 (code B ref 70968); Sun, 08 Sep 2024 02:03:02 +0000 Original-Received: (at 70968) by debbugs.gnu.org; 8 Sep 2024 02:02:39 +0000 Original-Received: from localhost ([127.0.0.1]:57793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn7GA-0002gU-EM for submit@debbugs.gnu.org; Sat, 07 Sep 2024 22:02:38 -0400 Original-Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:43341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn7G8-0002gD-K3 for 70968@debbugs.gnu.org; Sat, 07 Sep 2024 22:02:37 -0400 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 62B92138019D; Sat, 7 Sep 2024 22:02:29 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 07 Sep 2024 22:02:29 -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=fm3; t=1725760949; x=1725847349; bh=+RiblT9XgTARG8NL+8cG+C8ZiMNoUljDKjYkrk+7QKE=; b= ImJV3nJZu/EfqlxIiaeLcNOjjCrdgBoryuwCEhQx+Drr0rxdBc3l1adtmpKs0o8d qlArmjRoAUJXHDJkhnBs97vDXTP42E1VNTMe5Ay5mMfuzWUE6aIJ2f9ZKsDOVIK+ hgF+Vw8Bv57mpdC/bGcV3TTwXkZfMC9z24act9BT/JSj9BVwIzRZ+GzaY343f8Ah qfAHwnaXH03LPk8Y6RcHf1Z7WwSQuTghAWA54+131oxLzQiUpQr9cL62Z6+PH006 HLu+IfmPdIxHZfwAwuPPHoY+MuRgdzn4+cpwfeumOBZ1CbGkP7qId+KuCMP/s6Vt cchS6tnBXPKHbkWtTjdGxA== 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=fm1; t=1725760949; x= 1725847349; bh=+RiblT9XgTARG8NL+8cG+C8ZiMNoUljDKjYkrk+7QKE=; b=F op31wfo0yXtALsLSMfnEfU41rsu4KWeaa0/49u7rwit4fKaM8Dl1NCXzfuqSrI9f UXFgdF11/opSmBtzRe/a6OlL1tchzSKSqqX1n0Wky+5x1JdIHqVHmUJ7pBu+ChZO tvJ2khiZo42V0b6J33x/ORGZWRoSTPEQLLZ06ww34e3wU3SbzdcqN/OR5Rdwlx8/ lQEyjJ/kG+dakM+3wq2PwP4HKg04n4QSVHqHIY06A6jqkhVEdOm0CfCCxB9nB7ke nQ3qrJkS6PozP+BGl2+Xho0vxT807Oyb0T89GKs8jFCpOvKMSka4sVjoMZl93Hi8 BuOJFPYrpglrdifNcyXMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeigedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepffeifedvleeukedtgfelieegudfgveekfeejveej ffetffeuueeugefhveeiuddvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhht ohhvrdguvghvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtph htthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehssggruhhghhesjhgrnhgv shhtrhgvvghtrdgtohhmpdhrtghpthhtohepmhhonhhnihgvrhesihhrohdruhhmohhnth hrvggrlhdrtggrpdhrtghpthhtohepjedtleeikeesuggvsggsuhhgshdrghhnuhdrohhr ghdprhgtphhtthhope X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 7 Sep 2024 22:02:27 -0400 (EDT) Content-Language: en-US In-Reply-To: <86ed5vzzru.fsf@gnu.org> 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:291414 Archived-At: On 07/09/2024 10:30, Eli Zaretskii wrote: >> Date: Mon, 26 Aug 2024 03:08:56 +0300 >> Cc:sbaugh@janestreet.com,70968@debbugs.gnu.org,juri@linkov.net, >> monnier@IRO.UMontreal.CA >> From: Dmitry Gutov >> >> On 16/05/2024 21:25, Eli Zaretskii wrote: >>>> I don't think that would be required exactly. >>>> >>>> The problem here (IIUC) is that completion behaves differently with the >>>> emacs22 style depending on whether the execution path went through >>>> choose-completion (which is not a method of completion style but a >>>> common subroutine) or not (when completion--do-completion performed >>>> expansion). >>> I understand that much. But what did these two (or their >>> then-equivalents) do in Emacs 22 and Emacs 23? >> I'm guessing they behaved incorrectly (or however we want to call the >> inconsistent behavior), but I don't have a compiled Emacs 22/23 around, >> and they might be difficult to build. >> >> Note that we fixed bug#48356 not too long ago, which is from the same >> general area, and it probably originated from before Emacs 22/23 too. >> >> It's worth looking for edge cases where we'd strongly prefer the current >> behavior, and they might exist, but so far I only know of situations >> where the change would be for the better, or the user might be okay with >> either (example at the end ofhttps://debbugs.gnu.org/72705#35). > Ping! How should we proceed with this bug report? I suggest we come up with a fix (which Stefan might have some ideas for), then see which reasonable scenarios get broken, if any. The one edge case in Eglot could be fixed in the same Emacs release, I believe. If any larger scope problems, we could add a variable/option to switch to the previous behavior.