GNU bug report logs - #45764
icomplete in buffer completion does not work for completion-at-point

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: simon254@HIDDEN; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 45764 <at> debbugs.gnu.org:


Received: (at 45764) by debbugs.gnu.org; 27 Feb 2023 18:57:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 27 13:57:57 2023
Received: from localhost ([127.0.0.1]:48799 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWihA-0003Kr-RN
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 13:57:57 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60464)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1pWih6-0003KY-1L
 for 45764 <at> debbugs.gnu.org; Mon, 27 Feb 2023 13:57:55 -0500
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 332A11000C4;
 Mon, 27 Feb 2023 13:57:45 -0500 (EST)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D117510002A;
 Mon, 27 Feb 2023 13:57:43 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1677524263;
 bh=rgcZNGcW4uzQ9XW3bYTjSe1/SLKcsnZCXifS0txNLgg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=T8xjHcBBzXY9OwQaU1vmrNeqetj6hIsQb696XJZcZ47pt903G7BHyIEPAAai8pGb/
 ONPA7K3cmOe4wHWkqLnwlSHMwobip9AF4lM9wLrb3YPsrIdhpTqDA8AaMCxN7M0EhT
 o9JkSESQIVXubuGtmv4HoGcVU0gAgbl1pkD7EDlD6PrMJG1kRJYUZ8QWHHHxRp1J76
 JTZP4g696WcVk1fz4RpdbMKtJ3p8HOFFBwAMAwo+jG8EVvf5410Rr3algTF6XoBSbZ
 KtKSTU7zgAHCRFAvGjq4qbstroKAs2yGe8NMUCaalSl9mZ4FID0NOuKh/kOqfCgxc9
 xFHKInlzrVHXg==
Received: from pastel (unknown [216.154.34.24])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A371112044C;
 Mon, 27 Feb 2023 13:57:43 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#45764: icomplete in buffer completion does not work for
 completion-at-point
In-Reply-To: <867cw3c60k.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 27 Feb 2023 20:33:47 +0200")
Message-ID: <jwvfsar3pig.fsf-monnier+emacs@HIDDEN>
References: <140804236.117906.1610282126510@HIDDEN>
 <87y1y8hagm.fsf@HIDDEN> <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN>
 <867cw3c60k.fsf@HIDDEN>
Date: Mon, 27 Feb 2023 13:57:42 -0500
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.056 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45764
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, simon254@HIDDEN,
 45764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> This is fixed now in master, and with these fixes works quite nicely.

Thanks, Juri!


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.
bug marked as fixed in version 30.0.50, send any further explanations to 45764 <at> debbugs.gnu.org and simon254@HIDDEN Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 45764 <at> debbugs.gnu.org:


Received: (at 45764) by debbugs.gnu.org; 27 Feb 2023 18:35:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 27 13:35:11 2023
Received: from localhost ([127.0.0.1]:48755 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWiL9-0000Eb-4N
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 13:35:11 -0500
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:34535)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>)
 id 1pWiL4-0000Dq-5f; Mon, 27 Feb 2023 13:35:09 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id 00FF760003;
 Mon, 27 Feb 2023 18:34:57 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#45764: icomplete in buffer completion does not work for
 completion-at-point
In-Reply-To: <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Tue, 07 Jun 2022 10:43:08 -0400")
Organization: LINKOV.NET
References: <140804236.117906.1610282126510@HIDDEN>
 <87y1y8hagm.fsf@HIDDEN> <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN>
Date: Mon, 27 Feb 2023 20:33:47 +0200
Message-ID: <867cw3c60k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 45764
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, simon254@HIDDEN,
 45764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

close 45764 30.0.50
thanks

>> `C-j' is bound to `icomplete-force-complete-and-exit', and it calls
>> `minibuffer-force-complete-and-exit' unconditionally, which deletes the
>> buffer contents.
>
> There are 2 problems, both of which stem from the fact that the code has
> not been adjusted to the case where it's working in a normal buffer
> rather than in the minibuffer:
> - it calls `minibuffer-exit` which is wrong for in-buffer completion
>   (it should probably exit `completion-in-region-mode` instead).
> - it assumes the area of completion is the whole buffer (it should
>   probably use `icomplete--field-end/beg`).

This is fixed now in master, and with these fixes works quite nicely.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 45764 <at> debbugs.gnu.org:


Received: (at 45764) by debbugs.gnu.org; 8 Jun 2022 11:50:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 08 07:50:50 2022
Received: from localhost ([127.0.0.1]:42639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyuD4-0003Ah-4b
	for submit <at> debbugs.gnu.org; Wed, 08 Jun 2022 07:50:50 -0400
Received: from quimby.gnus.org ([95.216.78.240]:36306)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyuD3-0003AW-2M
 for 45764 <at> debbugs.gnu.org; Wed, 08 Jun 2022 07:50:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=5CWbTaWvyYvEakMRmo/akjpDsqNFBEzGQ1SzpOc6w8w=; b=BJHOMx5llR7C23QZ+qTMtgvSda
 dCIdCthT1DiNepv8yoDOVG4NEAQEATep57MaMo1GobTLEIPF6dVYNS/wPPzA5psvZn1kczat1c9tw
 re8iPQOZBh5PWoEGJrUhMeJo2zGESsyMy9Gm7WM2JZYLhVL65NjvAZCBHoo8I5UGb70Y=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nyuCt-0005tc-FE; Wed, 08 Jun 2022 13:50:42 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#45764: icomplete in buffer completion does not work for
 completion-at-point
References: <140804236.117906.1610282126510@HIDDEN>
 <87y1y8hagm.fsf@HIDDEN> <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN>
Date: Wed, 08 Jun 2022 13:50:38 +0200
In-Reply-To: <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Tue, 07 Jun 2022 10:43:08 -0400")
Message-ID: <87fskfbchd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Stefan Monnier <monnier@HIDDEN> writes: >> `C-j'
 is bound to `icomplete-force-complete-and-exit',
 and it calls >> `minibuffer-force-complete-and-exit'
 unconditionally, which deletes the >> buffer contents. > > There are 2 problems,
 both of [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45764
Cc: simon254@HIDDEN, 45764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>> `C-j' is bound to `icomplete-force-complete-and-exit', and it calls
>> `minibuffer-force-complete-and-exit' unconditionally, which deletes the
>> buffer contents.
>
> There are 2 problems, both of which stem from the fact that the code has
> not been adjusted to the case where it's working in a normal buffer
> rather than in the minibuffer:
> - it calls `minibuffer-exit` which is wrong for in-buffer completion
>   (it should probably exit `completion-in-region-mode` instead).
> - it assumes the area of completion is the whole buffer (it should
>   probably use `icomplete--field-end/beg`).

Poking at this a bit more, the test case also bugs out in
(icomplete--field-string), because there are no fields in the buffer.
(I think.  I'm apparently getting different results when edebugging and
not...)

>> I can't get icomplete-in-buffer to work in either *shell* or in other
>> modes -- has this feature gotten much testing/use?
>
> `icomplete-in-buffer` needs more love, indeed.
> [ BTW, I see its docstring says that it doesn't affect
>   `dabbrev-completion` but that's not true any more.  ]

Ah; I've now adjusted the doc string.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.

Message received at 45764 <at> debbugs.gnu.org:


Received: (at 45764) by debbugs.gnu.org; 7 Jun 2022 14:43:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 07 10:43:19 2022
Received: from localhost ([127.0.0.1]:41122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyaQR-0007vq-HK
	for submit <at> debbugs.gnu.org; Tue, 07 Jun 2022 10:43:19 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22986)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1nyaQQ-0007vd-Cp
 for 45764 <at> debbugs.gnu.org; Tue, 07 Jun 2022 10:43:18 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A65D04426E1;
 Tue,  7 Jun 2022 10:43:12 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 617854426DF;
 Tue,  7 Jun 2022 10:43:11 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1654612991;
 bh=kDN+Mz4tUCqoAnSOBqaZ0kpM5KvjjXZeLnFUWMdwV0E=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=Agegzr4ZYL5R9yM0aae95adk+Cr116UVQwoOM6O2YfR38znTmimJbGuVd+w2UUGWi
 qsbZ8O+uuz3Auf2lc8vWYqCcwy1PPwYSMKJnNGSjGMvER6/7bwKFyYs9z1DglruTVg
 O0EbaILeQG3NeKWJmHOzZRsMFIqWcOH/Bmy2Lb0TipClNb1GavyMqBXqUZ0vi29UFA
 Ea2MSIcGO6eJPmCYFCKVyE87rGpKvz6KR0CsPXdmLkJiHXOeK9qtbCjf9XEZltYoXb
 SRqPJtRs5P/qirkKGTT4KrNjJD+TiqVfj+x4tpxQeEtsdj50J3Tx7X4qXQqKKYg3pP
 9dxKW8x4lNfrQ==
Received: from pastel (unknown [45.72.221.51])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 230F2120193;
 Tue,  7 Jun 2022 10:43:11 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#45764: icomplete in buffer completion does not work for
 completion-at-point
Message-ID: <jwv7d5sk0d6.fsf-monnier+emacs@HIDDEN>
References: <140804236.117906.1610282126510@HIDDEN>
 <87y1y8hagm.fsf@HIDDEN>
Date: Tue, 07 Jun 2022 10:43:08 -0400
In-Reply-To: <87y1y8hagm.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 07 Jun 2022 15:25:29 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.060 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45764
Cc: simon254@HIDDEN, 45764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> `C-j' is bound to `icomplete-force-complete-and-exit', and it calls
> `minibuffer-force-complete-and-exit' unconditionally, which deletes the
> buffer contents.

There are 2 problems, both of which stem from the fact that the code has
not been adjusted to the case where it's working in a normal buffer
rather than in the minibuffer:
- it calls `minibuffer-exit` which is wrong for in-buffer completion
  (it should probably exit `completion-in-region-mode` instead).
- it assumes the area of completion is the whole buffer (it should
  probably use `icomplete--field-end/beg`).

> I can't get icomplete-in-buffer to work in either *shell* or in other
> modes -- has this feature gotten much testing/use?

`icomplete-in-buffer` needs more love, indeed.
[ BTW, I see its docstring says that it doesn't affect
  `dabbrev-completion` but that's not true any more.  ]


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 45764 <at> debbugs.gnu.org:


Received: (at 45764) by debbugs.gnu.org; 7 Jun 2022 13:25:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 07 09:25:43 2022
Received: from localhost ([127.0.0.1]:38985 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyZDL-0005Fi-4U
	for submit <at> debbugs.gnu.org; Tue, 07 Jun 2022 09:25:43 -0400
Received: from quimby.gnus.org ([95.216.78.240]:53390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyZDI-0005FF-OH
 for 45764 <at> debbugs.gnu.org; Tue, 07 Jun 2022 09:25:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=QyBx8oQESbmUeBxbXu6zGIKdPtjTllTUJK+hrx1XeFg=; b=gLoF8SFjpUpXuhbE99SditoYnY
 8e4jeZ3N0SnanfHaQ/Ut+uhKjCZlwWmXjP7LZ6tVFs8ErB64Az4/q6khqnUJxlakVNcN9fgMzc1vB
 +kLp2BxCi4eGEv3PmJdljJUxJu2dRI0gl941Urt/FXWElbZYqeKM26zSiF03gvdUJZv8=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nyZD7-000354-S3; Tue, 07 Jun 2022 15:25:32 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: simon254@HIDDEN
Subject: Re: bug#45764: icomplete in buffer completion does not work for
 completion-at-point
References: <140804236.117906.1610282126510@HIDDEN>
X-Now-Playing: Blaine L. Reininger's _The Blue Sleep_: "We're Tearing Out"
Date: Tue, 07 Jun 2022 15:25:29 +0200
In-Reply-To: <140804236.117906.1610282126510@HIDDEN> (simon's
 message of "Sun, 10 Jan 2021 12:35:26 +0000 (GMT)")
Message-ID: <87y1y8hagm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: simon254@HIDDEN writes: > emacs -Q > in *scratch* eval
 > (setq icomplete-in-buffer t) > (icomplete-mode t) > type: > "(icompl"
 followed
 by C-M-i (completion-at-point) select icomplete-mode via C-j > -> *scratch*
 buffer is no [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45764
Cc: 45764 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

simon254@HIDDEN writes:

> emacs -Q
> in *scratch* eval
> (setq icomplete-in-buffer t)
> (icomplete-mode t)
> type:
> "(icompl" followed by C-M-i (completion-at-point) select icomplete-mode via C-j
> -> *scratch* buffer is now empty apart from icomplete-mode ; all other text is deleted
>
> it works however in shell mode for directory completion (tab invokes icomplete-mode)

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

`C-j' is bound to `icomplete-force-complete-and-exit', and it calls
`minibuffer-force-complete-and-exit' unconditionally, which deletes the
buffer contents.  I can't get icomplete-in-buffer to work in either
*shell* or in other modes -- has this feature gotten much testing/use?
Are there cases where it works?

Adding Stefan to the CCs, since he hadded this in 2013.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jan 2021 12:37:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 10 07:37:09 2021
Received: from localhost ([127.0.0.1]:53334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kyZy0-0001IC-L0
	for submit <at> debbugs.gnu.org; Sun, 10 Jan 2021 07:37:08 -0500
Received: from lists.gnu.org ([209.51.188.17]:34060)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon254@HIDDEN>) id 1kyZwY-0001Ep-4K
 for submit <at> debbugs.gnu.org; Sun, 10 Jan 2021 07:35:39 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50032)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <simon254@HIDDEN>)
 id 1kyZwX-0004fD-TS
 for bug-gnu-emacs@HIDDEN; Sun, 10 Jan 2021 07:35:37 -0500
Received: from mout-p-101.mailbox.org ([2001:67c:2050::465:101]:33778)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <simon254@HIDDEN>)
 id 1kyZwS-0004Hf-IB
 for bug-gnu-emacs@HIDDEN; Sun, 10 Jan 2021 07:35:37 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4DDGX15S5gzQlX3
 for <bug-gnu-emacs@HIDDEN>; Sun, 10 Jan 2021 13:35:29 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :subject:subject:message-id:from:from:date:date:received; s=
 mail20150812; t=1610282126; bh=Os3t+C8L3PbXJfQYPnGiJFnQ0iHiWaE2Y
 pYM6gSK4nU=; b=xKRwcUqABftbI2wys8rVtrDfsodpYyGEaL75y120YOLf0uXSX
 xqMwHOMzSMKjhO9HIPDx+iYq6duUFWpotfC+DY1ARKndH9yG8bQXWfNN5QiGfST2
 ei/Qkvb6ZzxWqA8nT/eOAr4XoB3Dmf9zGBe6KQIdH4YoDkLB/Y6Gk8thyCm5AIkx
 zByPdZtVS3NgK+8m+Ih0CSM5qbIjIh22ucNGBxWhTHPNdQRP8zmNg7k79W6aVfia
 SAz2vnLDIvFLLfwMdSVe9sfUWVDR6r3s+x/v7hGrHS4xBPSWi5dpmkFjo0fCTg3p
 0JmUSk9nR45hrD9M4SZLKPdfBG60QwhEzNPqA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1610282127;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=SB7efKmPSdNTrC/VuAQCdDApu0dHbUv3wllKys/JBuw=;
 b=bMA0fn4Dd1WHOWiQrco9WADHzvLHLluSOuWDQSnWYAKFE6B8ElxuDL/ynGNDJ8TO/fkeZw
 S020FWtr4/dCjx41O6oUJqfqvVTRgZFhDd1qZ+DAtB+KbA6wCXx5w14nPQkUQ2w+2/oHjV
 KaY5hiTk3IJDyFQkzob7KcdIjZtOoAj42od3pOFVfdjhGmDBO67WE5W/5ehisjrLO08XPN
 3hCfaoL2t/f526GBVzFStVRWy2TjPI67Vq4CTPSp9rQt6mm/vSX79XtzdVaL6bwLirPfq0
 Z0LHBQVfgu6S6sxL4AQ6DVfJCLG8YloVL5qpxk68HL0SBqn6lPlXFBDpimGuog==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de
 [80.241.56.115]) (amavisd-new, port 10030)
 with ESMTP id lMH6dqUtKRdN for <bug-gnu-emacs@HIDDEN>;
 Sun, 10 Jan 2021 13:35:26 +0100 (CET)
Date: Sun, 10 Jan 2021 12:35:26 +0000 (GMT)
From: simon254@HIDDEN
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Message-ID: <140804236.117906.1610282126510@HIDDEN>
Subject: icomplete in buffer completion does not work for completion-at-point
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -4.11 / 15.00 / 15.00
X-Rspamd-Queue-Id: C98E717BA
X-Rspamd-UID: dd9597
Received-SPF: pass client-ip=2001:67c:2050::465:101;
 envelope-from=simon254@HIDDEN; helo=mout-p-101.mailbox.org
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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 10 Jan 2021 07:37:00 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

emacs -Q
in *scratch* eval
(setq icomplete-in-buffer t)
(icomplete-mode t)
type:
"(icompl" followed by C-M-i (completion-at-point) select icomplete-mode via C-j
-> *scratch* buffer is now empty apart from icomplete-mode ; all other text is deleted

it works however in shell mode for directory completion (tab invokes icomplete-mode)

In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2020-08-12 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
THREADS JSON PDUMPER

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 44811 6704)
 (symbols 48 5927 1)
 (strings 32 15254 1703)
 (string-bytes 1 504784)
 (vectors 16 10174)
 (vector-slots 8 126879 9518)
 (floats 8 19 39)
 (intervals 56 189 0)
 (buffers 1000 11))




Acknowledgement sent to simon254@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#45764; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 27 Feb 2023 19:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.