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#48356: 28.0.50; choose-completion discards the suffix after the completion boundary Date: Tue, 9 Apr 2024 01:27:42 +0300 Message-ID: <06c71965-497f-42e3-b3d0-7c0b5f1820cd@gutov.dev> 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> <868rt42wiz.fsf@mail.linkov.net> <39326c56-094c-4074-95d7-8f92f7f927a5@gutov.dev> 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="7586"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 48356@debbugs.gnu.org, Stefan Monnier , JD Smith To: Juri Linkov , Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 09 00:28:22 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 1rtxTQ-0001mz-GY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Apr 2024 00:28:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtxT4-0000TV-80; Mon, 08 Apr 2024 18:27:58 -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 1rtxT0-0000Sy-IZ for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 18:27:55 -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 1rtxT0-00079U-9y for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 18:27:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtxT7-0003px-La for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 18:28:01 -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, 08 Apr 2024 22:28: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.171261528114746 (code B ref 48356); Mon, 08 Apr 2024 22:28:01 +0000 Original-Received: (at 48356) by debbugs.gnu.org; 8 Apr 2024 22:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:47835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtxT6-0003pj-Ng for submit@debbugs.gnu.org; Mon, 08 Apr 2024 18:28:01 -0400 Original-Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]:42371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtxT4-0003p8-K1 for 48356@debbugs.gnu.org; Mon, 08 Apr 2024 18:27:59 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 9FF521140179; Mon, 8 Apr 2024 18:27:45 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 08 Apr 2024 18:27:45 -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=fm1; t=1712615265; x=1712701665; bh=3lJmv1nu2dJr6YMNlgAwQ05lpNt76bmgfCd+A0zqyyo=; b= EQuSNDpTU9ZsT8hqGmijs14zNU9EAg4dhUs2enV22K0/zfz4RLA6Cka20CdalrUG PRfcb4xZPaCrhybKlPUJ4urr29zHfoyp8X/brVSFKEkEyaKo40BcTnphZe2m4haA 4ICSw5xKi6mXW6EOHF8sJJmsyA++jfFR7pMkfNidMOyqctRkptqDBXEN539+yaxi yakMpTuCUNd+DiLmtkiEYhMZ1tCltosK38lF8lyDYhSVmXwQtm7NIsJbcBv9HQek BDSIy3On9+g2l1KuODBJUMDdwDqzB5gd1FTFJ0252++gXC59R8sZeW0B9RV4Ogn+ 4kGB1Rwlea8ZebbulffDbg== 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=fm2; t=1712615265; x= 1712701665; bh=3lJmv1nu2dJr6YMNlgAwQ05lpNt76bmgfCd+A0zqyyo=; b=W e3rowHrvvz5YCmixXyDfHoz2VMFeOEjOoZI5QNyi3cibSB4W/5ulv99YxQr+Nn3t oLytTpa3zeCBRQHYihvDKj0QBbU47/GVNiFOy8GZ7EHEWurIKuVSiqtagWxNv1vz I9xWvYQlsvXCUAFXvVuwnXNA/Mbur8KsU1WpviXe/z7CuTX544OfhIX87zq0qBEj 3q/d3yYWckKsE3gCVi0+tyLVy1028b5YkvtRTFuhSMOKFqKT6NDmVzNAHqVVOCJm 24cwG04dTFo4nSDVLjRHbWDiI6uIm1K5wCbcbYRv2Fz9adMqTHiT8UBCQiEiD3nl DSLZIIfdBBnx76uP0xvRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegjedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffhvfevfhgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepkeefudefgfejffefvdfhteegveevhfekkeekhffgudfhveejteffhfegueet gefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Apr 2024 18:27:43 -0400 (EDT) Content-Language: en-US In-Reply-To: <39326c56-094c-4074-95d7-8f92f7f927a5@gutov.dev> 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:282957 Archived-At: On 09/04/2024 00:59, Dmitry Gutov wrote: > But what I don't quite see yet, is why wouldn't the caller be able to > compute the bounds cheaply enough? We could offer an accessor function. Reading completion-pcm--find-all-completions, it seems like the case where this wouldn't work is "The prefix has no completions at all ...". What scenarios does this correspond to? If they are limited to the cases where the point jumps to a different field (and then completion has to be repeated), then maybe my patch would still be fine. Otherwise, perhaps one of the other approaches is the way to go.