From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#48356: 28.0.50; choose-completion discards the suffix after the completion boundary Date: Tue, 15 Mar 2022 09:53:01 +0200 Organization: LINKOV.NET Message-ID: <86r173odnm.fsf@mail.linkov.net> References: <18593691-8b7a-facf-68e1-e9d0c106897b@daniel-mendler.de> <868rtcjqk4.fsf@mail.linkov.net> <949a6c3a-9a59-89dd-bdee-c0ec6ee0baa7@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13551"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 48356@debbugs.gnu.org, Stefan Monnier , JD Smith To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 15 08:58:13 2022 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 1nU24J-0003ES-Pe for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Mar 2022 08:58:11 +0100 Original-Received: from localhost ([::1]:34836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU24I-0008Kz-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Mar 2022 03:58:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU24A-0008Kl-OM for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2022 03:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU24A-0003aF-9m for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2022 03:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nU24A-0005Gw-95 for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2022 03:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Mar 2022 07:58: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.164733106220238 (code B ref 48356); Tue, 15 Mar 2022 07:58:02 +0000 Original-Received: (at 48356) by debbugs.gnu.org; 15 Mar 2022 07:57:42 +0000 Original-Received: from localhost ([127.0.0.1]:47440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU23p-0005GM-ST for submit@debbugs.gnu.org; Tue, 15 Mar 2022 03:57:42 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:33523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU23n-0005G4-Br for 48356@debbugs.gnu.org; Tue, 15 Mar 2022 03:57:40 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A244C100007; Tue, 15 Mar 2022 07:57:29 +0000 (UTC) In-Reply-To: <949a6c3a-9a59-89dd-bdee-c0ec6ee0baa7@daniel-mendler.de> (Daniel Mendler's message of "Tue, 15 Mar 2022 03:14:15 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:228402 Archived-At: >>> IMHO, the root of the problem is in completion-all-completions >>> that returns in the last `cdr' only the start of completions, >>> but not the end of completions. >> >> Agreed. > > If I recall correctly, someone wrote a patch which fixed the root cause. The only patch that removes these comments ;; FIXME: We need to additionally return the info needed for the ;; second part of completion-base-position. ;; FIXME: We should pay attention to completion ;; boundaries here, but currently ;; completion-all-completions does not give us the ;; necessary information. is https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00412.html in bug#47711 and bug#48841.