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: Mon, 26 Aug 2024 03:08:56 +0300 Message-ID: <7e05fd14-3499-4811-b4bc-b53186b15408@gutov.dev> References: <86bk56jhsp.fsf@gnu.org> <377f815c-52d2-4770-ae85-55e096e104b0@gutov.dev> <8634qhipgj.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="16221"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: sbaugh@janestreet.com, 70968@debbugs.gnu.org, monnier@IRO.UMontreal.CA, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 26 02:09:39 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 1siNIg-00041e-5n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Aug 2024 02:09:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siNII-0003vr-30; Sun, 25 Aug 2024 20:09:14 -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 1siNIG-0003pG-CY for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 20:09:12 -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 1siNIG-0001Cw-3Y for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 20:09:12 -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=j1+Nui53lCmq3Z8UmCPFptt91L4Vzf1pMM5asAxcWa0=; b=mPCiaR9f9HbEpVxYyqYTgwewet2UyHl3G/Z3iCoNiWnIASwxYaqr+ExOHSV26fllkqFBivX7uj0ar79kY87g2MU+j2kQkucVaM5XpfFTGoiJyU7qCfAZY8biJSule637yeMLiu0fTEcuJRM1BvX9eNZt/+hvRGeFd8lESw9JXe1lXWmNjArysMfQE+X9sqAAiEBQa5vbsynGrhNmAhz1J6iVfXpd63rd9NM1b31910vw6RG5IykNBbzKBwT7ld3S7Sq3aBnip0TKsSliVOBsfNoaBCP/CuP4OS3ayIWYECYg4zsXC9nZGcmq0cAKojK0NJw5a87hbBJ4Zqs2/T5arg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siNJ4-0007lq-54 for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 20:10: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: Mon, 26 Aug 2024 00:10: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.172463099829856 (code B ref 70968); Mon, 26 Aug 2024 00:10:02 +0000 Original-Received: (at 70968) by debbugs.gnu.org; 26 Aug 2024 00:09:58 +0000 Original-Received: from localhost ([127.0.0.1]:43448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siNJ0-0007lT-Es for submit@debbugs.gnu.org; Sun, 25 Aug 2024 20:09:58 -0400 Original-Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:36185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siNIy-0007lE-Fa for 70968@debbugs.gnu.org; Sun, 25 Aug 2024 20:09:57 -0400 Original-Received: from phl-compute-07.internal (phl-compute-07.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 7BC19138FC92; Sun, 25 Aug 2024 20:09:00 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Sun, 25 Aug 2024 20:09:00 -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=fm2; t=1724630940; x=1724717340; bh=j1+Nui53lCmq3Z8UmCPFptt91L4Vzf1pMM5asAxcWa0=; b= gj/j83l5VBL4l/cEXbEF2MIAZ0r0kN+AIBQGBuVoDB8JaayHrh7SyrIn8NJOaja3 9eF41bTWOVxnxqjK+1enrAeVqfC7h+h5knAoL9k6i9C0ZrGtKKSL8opW67WmMIiH At12QMxbPT6lT9PToPg++bChx/oQ8dKBXG4XS0lvOnBSL5Yj0CpXVx51U/UGICEX ADCRWpnHr8fmfLa713cb7bMKYqLmfFuXp4Sy+O8/ynVrC5gGtKj/6FnnAXIlsKci KR16wba4mD22i5rsRY8U2KkFEBVf8qSlNLl0ejcF9RTUrHwI9vZTYEETDLaTJibc 1MMF7ds0ChzRA30DDgKzNQ== 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=1724630940; x= 1724717340; bh=j1+Nui53lCmq3Z8UmCPFptt91L4Vzf1pMM5asAxcWa0=; b=M NKcO6Ho+SygFXwN4DvsPyT/F4H/vYQIc2LD/dQUIGUhsLp5fIIpjimw78DnqyZ8B ahV9iuWq/ifXBJmrS6jdeqeTwETbMmALk98Nut9AWxGgCazPCnMnbR09dNRgyIn2 okg27BPL8LXyWHwLbHXumhq+ZH2J6z2smuLIhr5I8Xpct2VS2oHIk24+Qg2nilKN lTPJpDTH4bw8QIbf5niEeUbKajwFWsJ6ePzwCsNbBVFHgGZbAUBZZpEgmkKC8DHq 2Wn3vpoqcJxvUxRhprWo258kOWYxhGjZ04pVT0qvOtIE/mSrTPUUl5+k16VCkTRp T8Wnh/rzpmyOrvCIaWpSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvjedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepffeifedvleeukedtgfelieegudfgveekfeejveej ffetffeuueeugefhveeiuddvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhht ohhvrdguvghvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtph htthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehssggruhhghhesjhgrnhgv shhtrhgvvghtrdgtohhmpdhrtghpthhtohepjedtleeikeesuggvsggsuhhgshdrghhnuh drohhrghdprhgtphhtthhopehjuhhriheslhhinhhkohhvrdhnvghtpdhrtghpthhtohep mhhonhhnihgvrhesih X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Aug 2024 20:08:58 -0400 (EDT) Content-Language: en-US In-Reply-To: <8634qhipgj.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:290768 Archived-At: 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 of https://debbugs.gnu.org/72705#35).