From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: completing on makefile targets Date: Thu, 12 Sep 2019 18:26:05 -0400 Message-ID: References: <86r24l74ph.fsf@stephe-leake.org> <86muf96vqa.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="63227"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 13 00:26:52 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i8XYB-000GMR-U8 for ged-emacs-devel@m.gmane.org; Fri, 13 Sep 2019 00:26:52 +0200 Original-Received: from localhost ([::1]:39114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8XYA-0006IF-C6 for ged-emacs-devel@m.gmane.org; Thu, 12 Sep 2019 18:26:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8XXe-0006Hy-LP for emacs-devel@gnu.org; Thu, 12 Sep 2019 18:26:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8XXd-0003Lq-9k for emacs-devel@gnu.org; Thu, 12 Sep 2019 18:26:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11061) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i8XXd-0003LS-39 for emacs-devel@gnu.org; Thu, 12 Sep 2019 18:26:17 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E838A8117A; Thu, 12 Sep 2019 18:26:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8566E81148; Thu, 12 Sep 2019 18:26:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1568327174; bh=2ylHOfmJpMvvI/4CK5Fr2ny75DIYdEBTi3a43hPDngE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=R4no7oDYhrMz4qyURTBcnTKgvQRXsIny8rhZtpe8f9w1L5+2NW8lwz3Ovq9qc2MnF cFOaWFFG+N0VuhkPF/QdZjkD/kfI7EYUvmMowktbChIHoamBougenb8WzwESWjOmUr ktStwKm6pm79C0ckLzfAdC6NZGIXowe21Q64lYWhr5O4rs7tlYzMkrLnAvUUlINEad eWihAKbpwb5UDHK4LVm6oUTa4annnDUp0pXc4RaiXLYC1+pxIX7RAUi/MlMbvtRM0m fpWhaWCb03JSLxO+aXfW0TX0zmOSquzUau7pSlWX7wxqL4Rw4LgTO7whfMk1dqzzkA ua0t6glDIcNzw== Original-Received: from pastel (104-222-123-223.cpe.teksavvy.com [104.222.123.223]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 49B2712038A; Thu, 12 Sep 2019 18:26:14 -0400 (EDT) In-Reply-To: <86muf96vqa.fsf@stephe-leake.org> (Stephen Leake's message of "Thu, 12 Sep 2019 14:38:37 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240007 Archived-At: > 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. Stefan