From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#70968: 29.2.50; choose-completion on an emacs22-style completion deletes text after point Date: Wed, 15 May 2024 16:26:50 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, juri@linkov.net To: 70968@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 15 22:27:36 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 1s7LDr-0000K4-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 May 2024 22:27:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7LDK-0000yo-K5; Wed, 15 May 2024 16:27:02 -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 1s7LDJ-0000yS-2S for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 16:27:01 -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 1s7LDI-0005br-Pz for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 16:27:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7LDJ-0007Ec-To; Wed, 15 May 2024 16:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: dmitry@gutov.dev, juri@linkov.net, bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 May 2024 20:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70968 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: dmitry@gutov.dev, juri@linkov.net Original-Received: via spool by submit@debbugs.gnu.org id=B.171580481927798 (code B ref -1); Wed, 15 May 2024 20:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 May 2024 20:26:59 +0000 Original-Received: from localhost ([127.0.0.1]:44284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7LDG-0007EI-JK for submit@debbugs.gnu.org; Wed, 15 May 2024 16:26:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7LDD-0007EC-Q2 for submit@debbugs.gnu.org; Wed, 15 May 2024 16:26:56 -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 1s7LDB-0000vC-JE for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 16:26:53 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7LDA-0005bE-74 for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 16:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1715804810; bh=c9WmK3IzrtkDBFBQwiOi1BXzrh3fHev+hL30jz9z2S0=; h=From:To:Subject:Date; b=ywNsOx0oWzCelCKa65Il55MUqwkL9qbW3PZ0/OR2qK/MmoFTOxLP8QO0dEB48Brsb oA9LuVz9bTViowZJ38SG0YDucH73hUMOD6b9ABioZJigofO8BnMWOmNV+tVps/4iGt h/A5tNQuWG4inluvm1bIFdrfyItmFjLayaoUV3WeYjxFClkwJUY1VX93ym70tqn1JH s2et+F5FRlT3FkDA5rREhFFGnlH/IuP9a0zwO0sJnakfi86IS1goT6qoj2UYwBoCyO kTYbSSgTquB+LQ84X1QlH6RZ2tlYJ6iQCr6sn/kM5eX4GOVTvToeMEgwR+/nQ+UQVG veqYnhWoaBDww== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:285121 Archived-At: try-completion and choose-completion have different behavior; with the emacs22 completion style, the former preserves the text after point (while ignoring it), whereas the latter deletes the text after point. 1. emacs -Q 2. In scratch, type "inhibit-asdf" and move point to after the "-" 3. Type "q" and M- The buffer now contains "inhibit-quitasdf", because the emacs22 style ignored the text after point and completed on "inhibit-q". 4. C-/ C-/ to change the buffer back to "inhibit-asdf" 5. M- The *Completions* buffer will be displayed, containing among others "inhibit-quit" as a completion, because the emacs22 style ignored the text after point and completed on "inhibit-". 6. Use M- and M- to select and choose "inhibit-quit" The buffer now contains "inhibit-quit". The two ways of selecting completions should behave the same. I suggest that the behavior of not deleting the text after point is better. The emacs22 style takes care to not delete the text after point in try-completion and in completion cycling; we should take similar care in choose-completion. This is especially noticeable when using minibuffer-visible-completions, which make it easier to use choose-completion. It's also especially noticeable with corfu-mode, which usually automatically calls choose-completion when finishing completion.