GNU bug report logs - #39541
M-x compile *Completions* should notice "<"

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: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; Keywords: confirmed; dated Mon, 10 Feb 2020 07:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 39541) by debbugs.gnu.org; 5 Aug 2020 12:47:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 05 08:47:55 2020
Received: from localhost ([127.0.0.1]:50334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k3Ipn-0002Pn-5C
	for submit <at> debbugs.gnu.org; Wed, 05 Aug 2020 08:47:55 -0400
Received: from quimby.gnus.org ([95.216.78.240]:40716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1k3Ipl-0002Mh-GV
 for 39541 <at> debbugs.gnu.org; Wed, 05 Aug 2020 08:47:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=RmSn33S3u2jscMs5VpN0orXFNqpKi8J5ITfUjTMz2tA=; b=cmFEPQ3aehXAjg3KODdRKhFvUD
 H9TWR9NPw4YIP820k5614w453tMcnjZ8znHXqNUuLkm+/Hsy71fP3ej5O8r2rWP2lOtOp28TTGyML
 5XkSLo5aUEEVRhlyJrv449lUbEjm+e9sS0CRIka0kZEVb52QlaS8zIiJCzsRt6roDb0o=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1k3IpZ-0004lC-4D; Wed, 05 Aug 2020 14:47:46 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#39541: M-x compile *Completions* should notice "<"
References: <87v9oej43n.5.fsf@HIDDEN>
Date: Wed, 05 Aug 2020 14:47:39 +0200
In-Reply-To: <87v9oej43n.5.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?=
 Dan Jacobson"'s message of "Mon, 10 Feb 2020 15:25:48 +0800")
Message-ID: <877dud8djo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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:  積丹尼 Dan Jacobson <jidanni@HIDDEN> writes: > $ emacs
    -q Makefile > M-x compile > Compile command: make -k sstt < [TAB] > > at
   this point *Completions* just still shows targets from the Makefile > (like
    "sstt") > > It should notice the "<" (lik [...] 
 
 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: 0.0 (/)
X-Debbugs-Envelope-To: 39541
Cc: 39541 <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.0 (-)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> writes:

> $ emacs -q Makefile
> M-x compile
> Compile command: make -k sstt < [TAB]
>
> at this point *Completions* just still shows targets from the Makefile
> (like "sstt")
>
> It should notice the "<" (like bash-completion correctly does), and start
> instead expanding filenames.
>
> OK, we now help it by entering the first letter of a file there, and hit
> TAB. And indeed it does expand the filename correctly.

I can confirm that this bug is still present in Emacs 28.

I tried looking at what's causing it to switch from Makefile target
completion to filename completion when you enter a character first, but
was unable to -- the completion code here is kinda convoluted.

Anybody got any idea what's going on here?

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




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

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


Received: (at submit) by debbugs.gnu.org; 10 Feb 2020 07:32:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 02:32:15 2020
Received: from localhost ([127.0.0.1]:53616 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j13YF-0007nf-1r
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2020 02:32:15 -0500
Received: from lists.gnu.org ([209.51.188.17]:47535)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1j13YD-0007nQ-90
 for submit <at> debbugs.gnu.org; Mon, 10 Feb 2020 02:32:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:32892)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <jidanni@HIDDEN>) id 1j13YC-0007Ep-1Y
 for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2020 02:32:13 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1j13YA-0004dr-Pu
 for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2020 02:32:11 -0500
Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:53279)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1j13YA-0004TR-8b
 for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2020 02:32:10 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 1E1495A1275
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Feb 2020 07:32:07 +0000 (UTC)
Received: from pdx1-sub0-mail-a12.g.dreamhost.com
 (100-96-216-4.trex.outbound.svc.cluster.local [100.96.216.4])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id A77365A0E8F
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Feb 2020 07:32:06 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a12.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Mon, 10 Feb 2020 07:32:07 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Trade-Snatch: 0812fbb454c0b4e7_1581319926905_3919113154
X-MC-Loop-Signature: 1581319926905:2537126457
X-MC-Ingress-Time: 1581319926904
Received: from pdx1-sub0-mail-a12.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTP id 55CB2B375D
 for <bug-gnu-emacs@HIDDEN>; Sun,  9 Feb 2020 23:32:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 jidanni.org; bh=aUDHEojPcZZ+lgj1fNWKLfHiezA=; b=iFsBMNCJCe84fQSE
 dMgkQOZ3h+/oVK0XCLKvXzqaTdirJTGPdI+LGIidKfAWBbAxbVPVnnlnpmcdIQOZ
 kaB6EXuL9PHso9yy8xYN/6SfaViaYh6W0uTVIEZaEJ8tQ37PAnqvLViELB5fMYfQ
 d9FTDEmFz11kxdlK2ztjsHqCiYw=
Received: from jidanni.org (1-170-82-233.dynamic-ip.hinet.net [1.170.82.233])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTPSA id F3EFBB2A34
 for <bug-gnu-emacs@HIDDEN>; Sun,  9 Feb 2020 23:32:00 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a12
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: M-x compile *Completions* should notice "<"
Date: Mon, 10 Feb 2020 15:25:48 +0800
Message-ID: <87v9oej43n.5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedriedtgdejjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppedurddujedtrdekvddrvdeffeenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddrudejtddrkedvrddvfeefpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 23.83.212.18
X-Spam-Score: 0.2 (/)
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: -0.8 (/)

$ emacs -q Makefile
M-x compile
Compile command: make -k sstt < [TAB]

at this point *Completions* just still shows targets from the Makefile
(like "sstt")

It should notice the "<" (like bash-completion correctly does), and start
instead expanding filenames.

OK, we now help it by entering the first letter of a file there, and hit
TAB. And indeed it does expand the filename correctly.

emacs-version "26.3".




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@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#39541; 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: Wed, 5 Aug 2020 13:00:02 UTC

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