GNU bug report logs - #38476
27.0.50; substring completion feature request

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; Severity: wishlist; Reported by: Stephen Berman <stephen.berman@HIDDEN>; dated Tue, 3 Dec 2019 19:34:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 38476) by debbugs.gnu.org; 20 May 2022 12:34:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 20 08:34:32 2022
Received: from localhost ([127.0.0.1]:37915 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ns1pv-0007T9-So
	for submit <at> debbugs.gnu.org; Fri, 20 May 2022 08:34:32 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34560)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ns1pt-0007Sq-8y
 for 38476 <at> debbugs.gnu.org; Fri, 20 May 2022 08:34:30 -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=82xBdqjkAApNYEebXKerjeBPnj3vhU0wGJLRVab8maA=; b=oKsFLkFeZCFHBy46lkK3+vkiYE
 xV2urTvlUp1qXFRgHVHqIYtf+fjfxEp6g6oZRGlmCQrCOcRpFYTBw+SdlA/P9dcYBz0v6hURLqax7
 sefWZAeF//a7o6cwihH1FmCn8prdmmH/34QPyJCTmkODkGq2hbA+OR+7nG/Lg78XQJT8=;
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 1ns1pj-0007dK-1I; Fri, 20 May 2022 14:34:21 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#38476: 27.0.50; substring completion feature request
References: <87fti1w6fs.fsf@HIDDEN> <87ilq0301d.fsf@HIDDEN>
 <87h75k1j88.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUtLjE0NDZBQUI+
 PkBDPThURjeMZzx+XztuVTqacEAeJzNnZmRUVFM/P0H////30LR9AAAAAWJLR0QOb70wTwAAAAd0
 SU1FB+YFFAweJ2MDblcAAAFdSURBVDjLtVS9bsIwED6rQmI8h4alS6FjJ+AJkFA7I1GLbiBxh9UN
 CSLWStTKI/Q5umZj7tQnqm0wPyEpMPSGKL7P3/18dzIAgLTmPwcWQTARXNt/QOeVKE8Y2xsAeQB9
 EjzNIYUssjagLAGK/S7UlcBBKBS+DOF66sY2uZouUlomKfcN1YdjQ1UekOoAPpPWZsJqqilRTGTM
 C7FpgayMSb/OuL7ityfDelRnoZktUB2zTojt5U9OlnrKKiFyQGWmFpSaVHfNJO3N1byy7L0PQ7k3
 VjJpxYzkfeR12/WR3WXfX9ljts7WYVAbERtRU7aa0Vo+NILsGGaItjlxJImfYU79mmdYGSAHhO3A
 k3H5IosBLANKQxVbrWDXAnButOJCRu3c+mAZAyG37gfAMaNTlqN5wYr+AYirGf8E7Bp0O3TbLxDR
 aRV/+CtHofwzE6/2T0cbWpuDo8SDfaifX1UMdZ/EfAsAAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy
 LTA1LTIwVDEyOjMwOjM5KzAwOjAwt9zCAwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0yMFQx
 MjozMDozOSswMDowMMaBer8AAAAASUVORK5CYII=
X-Now-Playing: Tuxedomoon's _Ten Years In One Night (Live)_: "Burning Trumpet"
Date: Fri, 20 May 2022 14:34:16 +0200
In-Reply-To: <87h75k1j88.fsf@HIDDEN> (Stephen Berman's message of "Fri, 20
 May 2022 14:28:23 +0200")
Message-ID: <878rqw2xiv.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: Stephen Berman <stephen.berman@HIDDEN> writes: > 0. $ mkdir
 /tmp/test; touch /tmp/test/{file1test,file2test} > 1. $ emacs-master -Q --eval
 "(setq completion-category-overrides > '((buffer (styles substring)) (file
 (styles substring))))" > 2. Type [...] 
 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: 38476
Cc: Stefan Monnier <monnier@HIDDEN>, 38476 <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 (---)

Stephen Berman <stephen.berman@HIDDEN> writes:

> 0. $ mkdir /tmp/test; touch /tmp/test/{file1test,file2test}
> 1. $ emacs-master -Q --eval "(setq completion-category-overrides
>      '((buffer (styles substring)) (file (styles substring))))"
> 2. Type `C-x C-f /tmp/test/te TAB'
> => The minibuffer displays the following, with point at the end of the line:
>
> Find file: /tmp/test/test

Thanks.  With that recipe, I can reproduce the behaviour.

> Typing TAB a second time pops up a the *Completions* buffer showing
> file1test and file2test as the two possible completions.  But to
> complete either of these in the minibuffer you have to move point.
> That's the bug (or feature request).

Yeah, that doesn't seem like the best place to put point.

>> With "*te TAB" it completes to file*test with point after *, which seems
>> correct, too.
>
> Yes, that input didn't occur to me when I filed the report.  I just now
> scrolled through the Completion node of the Emacs manual and didn't see
> a reference to it; is it documented?  If not, perhaps it should be.

I think I've learned about * through osmosis -- perhaps it isn't
documented?  But it definitely should be.

> Anyway, using * comes close to satisfying the feature request, so if
> it's too hard to make it work without the *, I can live with having to
> use *.

It'd be nice if `substring' placed point where the * thing does, but
perhaps there are reasons for the current behaviour...

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




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

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


Received: (at 38476) by debbugs.gnu.org; 20 May 2022 12:28:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 20 08:28:37 2022
Received: from localhost ([127.0.0.1]:37905 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ns1kC-0007Ho-VL
	for submit <at> debbugs.gnu.org; Fri, 20 May 2022 08:28:37 -0400
Received: from mout.gmx.net ([212.227.15.18]:40363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1ns1k9-0007HV-T9
 for 38476 <at> debbugs.gnu.org; Fri, 20 May 2022 08:28:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1653049705;
 bh=x2BxYzoxpvfC5QtirB8CNZLFZN+6I4jq9dQ5YN3MHyU=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=cCeY9HNJnu1C/JK+L8o4UbkoF67mN1xJGTSWzZE8hmtgZsPK0sH2+fIfkpkrHdA2n
 VBmvziBXCKyue4yFGQ1Jlagc4ofaaoyxB3u0bfj+6TytgpoRC2cSAakX5+Yqv0nk9X
 RLRYHAolLjlbrdwmUwXM2PoQkaiGzwj4ZWK/ttwQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from strobelfs2 ([89.246.38.130]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N4hvR-1nhH2s1RAN-011ijg; Fri, 20
 May 2022 14:28:25 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#38476: 27.0.50; substring completion feature request
References: <87fti1w6fs.fsf@HIDDEN> <87ilq0301d.fsf@HIDDEN>
Date: Fri, 20 May 2022 14:28:23 +0200
In-Reply-To: <87ilq0301d.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 20 May 2022 13:39:58 +0200")
Message-ID: <87h75k1j88.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-Provags-ID: V03:K1:QNFLqxB445WMz7JQL2PbwJrJ/hj1R99GzWcG60kdRq0GUaT66o5
 fW/bti5paV9UxZ5QcGJvjD19dGmDme7Frj6eOnP/uXwIUVYnxi3cPK4jcdQ526izr8FNWlM
 MqnnTQhXB24gwQZCnk2qXmpPaA0cpyG2QcU7QPMzJSY60mNXPApV5Y9oYOGktgBoE0Uh3x3
 40BHehnPFQdw3YD26Tnhw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:rOUZ2TRSUGs=:7bG9J9V5Eq+wcv7vzCxsjd
 gvj7l9/P1EhFFMPEb7Ws015AI1XqKdIgdALmzgLPDsLY+RzpiPMA4HdmmCXJC3jeClkgkNLBJ
 qFFyXKTSUdho/w2KovyMVoITAeY9BJ79lCG9ZEIl5VBHdYgNGMT4IAWgMrMwa2Zk1jT0aFyge
 oSmcTuCVTEJ57kfI0V27Zt9mUch/Yjy5Ms8viDC8M6mVpKCJjXY/XFUVOQkuOxwpU2me+uTrS
 k3ci2mKA8t1xSVyMEOhj/H7HHtBJsV0vdsNdBSxdlFBsmL+HsHYQwiV6KUoPwqU03ym3nLl2B
 O+JmY3xiYbcL3M1Amwg8IW7EXtYNdt/Dilxe0n7TpZLghj/i+qQpRfxfSpFA7EvVE33wrwFqN
 Ny8y8j8ahIkGh644Vxgf1D6QbrI+jWr4PYL1Xmg3UhCHOOh2nJoWe8ywNVLy+w3TsUe6E6GzI
 yvHaMUzGZBnnURSHXVkk1D+AuCUozGawS88oFaeNjLayZtvTTP0kvPA69qskSkuoE1t8y/X98
 P4Q38iyt/CZWMftMbcgo+KAfbngD4rnavWWXDebUWEvNid+NqIaL4LTURmctMjQ3VP8HoLvRG
 q4MVdaXDFbgIL3o9i5p2XqRr3MHMJ/yvIoYmS+X3dfGfpSUPWV+zPyeAVDgcm+dZNL19nDn/u
 e8PitwpLoY1dXOCY9ZxsUBdNa/N8Y7LLh3ZU46dXJwNU8w7EZ29zZZ28t2MeCRI8HFkMcNmyA
 ZKgkfxRpyahjuRLhJxQumWk0r4q2/DQCZwyrQ0MqhFmiD2qtQ1Gnb7gfP7JmDUkZT0XJVccuM
 h681sX0PVLdUscNvukZHKsFu2GExzBOaSdSCBKGREwN8iuf9pM1Dheu7FbvZHaUz/egaE8Yof
 QeGZn/j1C4ETyrTXpLcFMvTw1sLybNkhpEg/Q51PY44N28/l1O79IZ5nqjHeNcNB3qmhpE8xT
 +eq9OgknRSoHodtJOp5a0MpfqdUDNkTpkcic2rw3WeKjQDGEGjb/XrCaZ5jYJnPLmriPWQw2z
 T017vLO84BATdXt9Zag/hjwpC8Cy/fR+BNC3vBu6T9DaIN9wQo0ZEhTAAdp7gFnsJLqjvrhXf
 d5TvOVqYw5qyyWtt+KSifyomUoD6sHldFV9hISTqgcPhGvmyJmuK7e4JA==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 38476
Cc: Stefan Monnier <monnier@HIDDEN>, 38476 <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 (-)

On Fri, 20 May 2022 13:39:58 +0200 Lars Ingebrigtsen <larsi@HIDDEN> wrot=
e:

> Stephen Berman <stephen.berman@HIDDEN> writes:
>
>> The placement of point in substring completion is sometimes suboptimal.
>> E.g. if there two files (or buffers) file1test and file2test and you
>> enter `fi TAB' then it completes to `file' with point after the `e',
>> which is fine for further input; but if you enter `te TAB' then it
>> completes to `test' with point after the second `t', so you have to mov=
e
>> point to complete the name.  It would be nice if in such cases point
>> were placed at the start rather than the end of the partial match.
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> I'm not able to reproduce this in Emacs 29 -- it just says "no match"
> with "te TAB".

Sorry, my bug report was woefully incomplete.  It was filed as a
followup to bug bug#38458 at the request of Stefan Monnier, but I should
have made it self-contained.  Here's the recipe:

0. $ mkdir /tmp/test; touch /tmp/test/{file1test,file2test}
1. $ emacs-master -Q --eval "(setq completion-category-overrides
     '((buffer (styles substring)) (file (styles substring))))"
2. Type `C-x C-f /tmp/test/te TAB'
=3D> The minibuffer displays the following, with point at the end of the l=
ine:

Find file: /tmp/test/test

Typing TAB a second time pops up a the *Completions* buffer showing
file1test and file2test as the two possible completions.  But to
complete either of these in the minibuffer you have to move point.
That's the bug (or feature request).

> With "*te TAB" it completes to file*test with point after *, which seems
> correct, too.

Yes, that input didn't occur to me when I filed the report.  I just now
scrolled through the Completion node of the Emacs manual and didn't see
a reference to it; is it documented?  If not, perhaps it should be.
Anyway, using * comes close to satisfying the feature request, so if
it's too hard to make it work without the *, I can live with having to
use *.

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38476; 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 38476 <at> debbugs.gnu.org:


Received: (at 38476) by debbugs.gnu.org; 20 May 2022 11:40:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 20 07:40:11 2022
Received: from localhost ([127.0.0.1]:37813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ns0zK-0003lz-VX
	for submit <at> debbugs.gnu.org; Fri, 20 May 2022 07:40:11 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ns0zJ-0003lf-EC
 for 38476 <at> debbugs.gnu.org; Fri, 20 May 2022 07:40:09 -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=b8VYy5c7VSdRhvsHiidFFY/f6dXOM/WkDD/hOIXDISc=; b=lqlAz6Xy4DSDrdQkjFLVVcjtz4
 L+TicJTAzohCwlj1N9ztxi8gqN657dShl90VHhhceKe95uwXX9nY/N2stsiE/1SYDw4Ul/nt3J5tL
 KtGOR8Rlxko5/acA5Z+1pjo6gRRYFgm/oSAXee/BYYwq53Aa8dXePbSIyt76So0lv2iY=;
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 1ns0z9-0007Bh-A7; Fri, 20 May 2022 13:40:01 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#38476: 27.0.50; substring completion feature request
References: <87fti1w6fs.fsf@HIDDEN>
X-Now-Playing: Minimal Compact's _The Figure One Cuts_: "Everything Is Wonder"
Date: Fri, 20 May 2022 13:39:58 +0200
In-Reply-To: <87fti1w6fs.fsf@HIDDEN> (Stephen Berman's message of "Tue, 03
 Dec 2019 20:32:55 +0100")
Message-ID: <87ilq0301d.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: Stephen Berman <stephen.berman@HIDDEN> writes: > The
 placement
 of point in substring completion is sometimes suboptimal. > E.g. if there
 two files (or buffers) file1test and file2test and you > enter `fi TAB' then
 it completes to `file' with point [...] 
 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: 38476
Cc: Stefan Monnier <monnier@HIDDEN>, 38476 <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 (---)

Stephen Berman <stephen.berman@HIDDEN> writes:

> The placement of point in substring completion is sometimes suboptimal.
> E.g. if there two files (or buffers) file1test and file2test and you
> enter `fi TAB' then it completes to `file' with point after the `e',
> which is fine for further input; but if you enter `te TAB' then it
> completes to `test' with point after the second `t', so you have to move
> point to complete the name.  It would be nice if in such cases point
> were placed at the start rather than the end of the partial match.

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

I'm not able to reproduce this in Emacs 29 -- it just says "no match"
with "te TAB".

With "*te TAB" it completes to file*test with point after *, which seems
correct, too.

Perhaps you're using a different completion system than the default?  If
not, do you have a recipe to reproduce the problem, starting from "emacs -Q"?

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




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

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


Received: (at submit) by debbugs.gnu.org; 3 Dec 2019 19:33:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 14:33:13 2019
Received: from localhost ([127.0.0.1]:41092 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icDv7-0004Pa-Dk
	for submit <at> debbugs.gnu.org; Tue, 03 Dec 2019 14:33:13 -0500
Received: from lists.gnu.org ([209.51.188.17]:51442)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1icDv6-0004PR-5h
 for submit <at> debbugs.gnu.org; Tue, 03 Dec 2019 14:33:12 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51439)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <stephen.berman@HIDDEN>) id 1icDv2-0005xw-3f
 for bug-gnu-emacs@HIDDEN; Tue, 03 Dec 2019 14:33:08 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_40,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1icDux-0007Ww-2y
 for bug-gnu-emacs@HIDDEN; Tue, 03 Dec 2019 14:33:03 -0500
Received: from mout.gmx.net ([212.227.17.21]:37037)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <stephen.berman@HIDDEN>)
 id 1icDuw-000733-OV
 for bug-gnu-emacs@HIDDEN; Tue, 03 Dec 2019 14:33:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1575401576;
 bh=Z/93CPHLA+sAQI+XvJFxiqZSZwzjeqq3uLOlm15P0YQ=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=ejodyx2PD9+W78cUr9y+n+UyojCYMHICN2qeGYxyXliaL7lOF0SWTsLZPXxuxaLrK
 xSS1FkM+Hii/lu22gRWxIvnizlmn4dQuG4ncijZKLDY/+GKIVZkcaxhAp4457Mktgd
 TPTJTxm00OlTvR+A193YTAWhS3mBgunHzHkIuI4s=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from strobe-lfs84 ([188.109.146.242]) by mail.gmx.com (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N1wll-1hezY11S6D-012Fi6 for
 <bug-gnu-emacs@HIDDEN>; Tue, 03 Dec 2019 20:32:56 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; substring completion feature request
X-Debbugs-Cc: Stefan Monnier <monnier@HIDDEN>
Date: Tue, 03 Dec 2019 20:32:55 +0100
Message-ID: <87fti1w6fs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:4pfbGDemxGOjgZTPi/Ivg/DJZX1/dWQdVVUwEGJ9RincMvV9ZY4
 6/EtBleVPT3htkQQ061VzXac4pHLxjK5/Qq3zgmU9Dpi2WKI/xI6yPjGmMdQ6shCsRHwE/x
 xyZHDTHCjMBBpEaXM/ipVerV7l2lZXI5VtA4FGD0Co66+5b2O5evsCkDr5wXeM+qQOlypK1
 x2LtYrHgmuIKBvS87G2gg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:HZi1TMWECvs=:MLjtHfRQyIGqnVxr3dke3x
 SzpfOLL5kjLjxVJJFzAuPzql+2I90B/RKkErdNQ0UyheSP8xSPzcp7Lsntxw8gG19DtvWWFdw
 ict6dL0yZHgLlEBJEbGgmvZbYIVgLXLFH8SbcZIbXCCy7lT2g5blcfBaf/dDu/7yNNU5N7XMs
 dT5Q45mBZnv9nFpVhxIMfMLxO60dgqN/1a9Fx0JwyGUYqnmz2UYQ9XQTTi5ljUoehc4cP7lP6
 6kIH7kEYqavhyvEXcO27CNdS0hdYj25NlXVvtpsLNwnPAsydl2NFANjTaktjcL+1QYD6agVwL
 Wp15JLC7WmJrQEFgCAOHOd44xwvgM6Zzlg9osCHv/w/o1n4Qb7YIYp2k2vEX3WoZpvbA62eX9
 7H1m0m0nNXtdEyoL5ZbMN7nAxdK+mOl+RAwMOlo1xwz2/ItEnhbNoF2LmW9mnI4UbA7FE7S7T
 4fn5H0ysdfWvVqH2kUIX8uBt8ZY+km/kbvLvkmId+nHmeXowcNGnsAKCOyUgeZTIW4gsy2iCg
 9UXfd5P63F96yCrSrMCiFJE8xn4uqqNqWVwx/F3Bi3foZBcc572k4AE72ScwMUCZnUi3fClOG
 C+OVv+wS+eD8d99O7WL0zfIj9FxRA7k8JWqteJr9IKly10ITPMm0rbRAukq5UFEy82orsorYx
 hq8JIVp2ibpYODJXBP5FrAwto1RnUkvpCC5yVXagS471Ii8DEr/MzfcAFnW87/Ke8CytwW0ld
 Kq/hJO3qk1p6aJ4cIQMPhayo5prE4aGlH6zG5Td0mpVXuNgA9+Y/rUDNfrANNBjON37MegGLz
 J17auiRh9Jv9wGzF4GM7Pyazi2GSkG5FqzkroAoL62nPhx+LihNvT/IS43sy2p0kUeRSXS4De
 hw/0HyBntyjfLxPTc+cMpgKvFTm/0jbNXVZrzkUN15pfnuFt5W25PgFG6daXzX6jrz0cvHMxL
 YN+SQg6uynPe08o3jfdiueJ1pQOODjG1eHGDIGJmRDW1cFmkdayj0utk7x3MsEzufB5PGqOn6
 4Kz4y9gANHADx6s1/+aMGB25AxnSdKClTwK6S/d5pK1HgwWwlSBDcG8ou+6RnF5WBnowoxu+C
 4Ai4oXX/qiMfTBhu45yr0/Ij3xv4WG9NhN278IRonM/376uLBLqLlQyGvoPdYT3dWk10uzIAK
 +beZY715SdB8tX8+NytvMfIHpQ+mtaYIhkdw4uTchtUiok58ANlfQ9vCVqLJkze/sSjwbvsEM
 pOs7lqSb/L0V925vxdO4Up5pPDipmY1wgGAeqAw2M4zQkpQfilNs4JXggwZ0=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 212.227.17.21
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
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.4 (--)

The placement of point in substring completion is sometimes suboptimal.
E.g. if there two files (or buffers) file1test and file2test and you
enter `fi TAB' then it completes to `file' with point after the `e',
which is fine for further input; but if you enter `te TAB' then it
completes to `test' with point after the second `t', so you have to move
point to complete the name.  It would be nice if in such cases point
were placed at the start rather than the end of the partial match.

Steve Berman




Acknowledgement sent to Stephen Berman <stephen.berman@HIDDEN>:
New bug report received and forwarded. Copy sent to monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#38476; 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: Fri, 17 Jun 2022 18:45:02 UTC

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