From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ignoring autoloads in preloaded files on Windows Date: Sat, 10 Oct 2009 09:32:50 +0200 Message-ID: <831vlbln4t.fsf@gnu.org> References: <83tyycmkjv.fsf@gnu.org> <83eipfmuaz.fsf@gnu.org> <0my40kr72.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255159964 31543 80.91.229.12 (10 Oct 2009 07:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 07:32:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 10 09:32:34 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MwWRM-0005Jt-SL for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2009 09:32:33 +0200 Original-Received: from localhost ([127.0.0.1]:34409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwWRM-0007ga-7t for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2009 03:32:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwWRG-0007gV-W3 for emacs-devel@gnu.org; Sat, 10 Oct 2009 03:32:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwWRG-0007gB-9q for emacs-devel@gnu.org; Sat, 10 Oct 2009 03:32:26 -0400 Original-Received: from [199.232.76.173] (port=36858 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwWRG-0007g8-6W for emacs-devel@gnu.org; Sat, 10 Oct 2009 03:32:26 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:22456) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwWRD-0000e6-Uw; Sat, 10 Oct 2009 03:32:24 -0400 Original-Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KRA00B00FI8AT00@i-mtaout7.012.net.il>; Sat, 10 Oct 2009 09:31:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.84.229]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KRA00CHKFJI9D60@i-mtaout7.012.net.il>; Sat, 10 Oct 2009 09:30:55 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116050 Archived-At: > From: Juanma Barranquero > Date: Sat, 10 Oct 2009 05:57:13 +0200 > Cc: Eli Zaretskii , emacs-devel@gnu.org > > > Will (getenv "MAKE") DTRT on Windows? > > I don't think so. $(MAKE) is defined for make runs, but it is not > passed as an environment variable to subrprocesses: > > C:\> make > c:\emacs\bin\emacs.exe -Q --batch --eval '(prin1 (getenv "MAKE"))' > nil That's true, but we can always work around this. For example (watch the make-cmd thing): autoloads: $(lisp)/loaddefs.el $(LOADDEFS) doit @echo Directories: . $(WINS_UPDATES) $(emacs) -l autoload \ --eval $(ARGQUOTE)(setq find-file-hook nil find-file-suppress-same-file-warnings t make-cmd=$(MAKE))$(ARGQUOTE) \ -f w32-batch-update-autoloads "$(lisp)/loaddefs.el" . $(WINS_UPDATES) Then use `make-cmd' inside autoload.el instead of a literal "make". > OTOH, perhaps it would make sense to ask the user to define it. I think this is undesirable, for something that needs to run at build time.