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: Sun, 20 Mar 2022 22:34:28 +0200 Organization: LINKOV.NET Message-ID: <868rt42wiz.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> <86r173odnm.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28486"; 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 Sun Mar 20 21:36:28 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 1nW2Hs-0007GX-NW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Mar 2022 21:36:28 +0100 Original-Received: from localhost ([::1]:57378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nW2Hr-0003f8-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Mar 2022 16:36:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nW2HS-0003Gk-Aq for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2022 16:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nW2HR-0007xx-RX for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2022 16:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nW2HR-0004Pb-K4 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2022 16:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2022 20:36:01 +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.164780853216913 (code B ref 48356); Sun, 20 Mar 2022 20:36:01 +0000 Original-Received: (at 48356) by debbugs.gnu.org; 20 Mar 2022 20:35:32 +0000 Original-Received: from localhost ([127.0.0.1]:35204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nW2Gy-0004Oi-0n for submit@debbugs.gnu.org; Sun, 20 Mar 2022 16:35:32 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nW2Gw-0004OT-EV for 48356@debbugs.gnu.org; Sun, 20 Mar 2022 16:35:31 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 4FDB860006; Sun, 20 Mar 2022 20:35:21 +0000 (UTC) In-Reply-To: <86r173odnm.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 15 Mar 2022 09:53:01 +0200") 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:228638 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. I wonder what is the fate of this patch? There was a long discussion without a clear outcome. Maybe it's possible to split the patch to smaller parts where a separate patch would add the feature needed here to return the end position of the completion boundaries?