From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70968: 29.2.50; choose-completion on an emacs22-style completion deletes text after point Date: Thu, 16 May 2024 11:13:26 +0300 Message-ID: <86bk56jhsp.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, 70968@debbugs.gnu.org, juri@linkov.net To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 10:14:21 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 1s7WFo-00013S-51 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 10:14:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7WFW-00013c-QA; Thu, 16 May 2024 04:14: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 1s7WFU-00013N-Uy for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:14:00 -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 1s7WFU-0004f0-Mh for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:14:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7WFW-0007zE-GD for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2024 08:14: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.171584722730678 (code B ref 70968); Thu, 16 May 2024 08:14:02 +0000 Original-Received: (at 70968) by debbugs.gnu.org; 16 May 2024 08:13:47 +0000 Original-Received: from localhost ([127.0.0.1]:47371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7WFG-0007yj-H4 for submit@debbugs.gnu.org; Thu, 16 May 2024 04:13:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7WFB-0007yX-Ca for 70968@debbugs.gnu.org; Thu, 16 May 2024 04:13:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7WF1-0004ZG-MM; Thu, 16 May 2024 04:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=k9aTdjkZb+SNhOf71n2REYiJoitjy3L2yOFtrAnoqtQ=; b=JS68ALLtUOlp D1+7ApjIz0vbpfNwyfZ2G6s1YK+oowImZNSX/z/cl3GasxAK+gtVqcYqdXG4mPQfyKhl7cToBR/pn NrB+1Qd8DdHALBTVHPT5q3RbHnZ3geOkOBjiDXRGU1MFAh2OxvYWF/TEnSEdhTuku/bJI78uG7rb2 winzBnZx4NFQdRnq/ze7ooNde7vdrEOb1znj1kyKsrscBB4SANqpYqN5bKQerncHsgEaecRRu/bPE 8gdFjC0HGiD4lPoecMd4SP3H89cXW7NuaBy7GMcKYJy4zx011Q5SmdQEQ8a1r/EybRFosVlzOlXu5 EXMlGPO6VMG6MPXCcyb8Zg==; In-Reply-To: (message from Spencer Baugh on Wed, 15 May 2024 16:26:50 -0400) 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:285135 Archived-At: > Cc: dmitry@gutov.dev, juri@linkov.net > From: Spencer Baugh > Date: Wed, 15 May 2024 16:26:50 -0400 > > > 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. If making these two ways consistent means we need to change the behavior of emacs22 style of completion, then I'm sorry, but we cannot do that. This style is a legacy style, and is there to provide the legacy behavior for those who need it. So for making the decisions in this case we need to know how did Emacs 22 and later versions behave in the above scenario, and take it from there. If they all behaved like you show, then this behavior must stay unchanged, unfortunately, for backward-compatibility reasons.