Subject: Re: bug#39541: M-x compile *Completions* should notice "<"

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 05 Aug 2020 14:47:39 +0200

積丹尼 Dan Jacobson <[email-masked]> 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?

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