[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completing on makefile targets

From: Stefan Monnier
Subject: Re: completing on makefile targets
Date: Thu, 12 Sep 2019 18:26:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Yeah, but I hate making assumptions like that; the relevant Makefile
> could easily be somewhere else.

For the general pcomplete functionality to work, it's necessary for the
minibuffer's default-directory to be the same as that where the command
will be run.  So, in the pcomplete/make function you *can* presume that
the default-directory is the one where `make` will run (and hence follow
`make`s rule about how to find the appropriate makefile).

Maybe the makefile you find won't be the one in the original make-mode
buffer, but if so (presumably) `make` itself will also use the other
makefile rather than one in the buffer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]