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: Changes in lisp/Makefile.in to skip preloaded files Date: Tue, 06 Oct 2009 11:42:27 +0200 Message-ID: <833a5woo3g.fsf@gnu.org> References: <837hv9neza.fsf@gnu.org> <8363asoov2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1254823338 18181 80.91.229.12 (6 Oct 2009 10:02:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2009 10:02:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 06 12:02:08 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 1Mv6qX-0003FC-3U for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2009 12:00:41 +0200 Original-Received: from localhost ([127.0.0.1]:51089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv6qW-0002ra-J5 for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2009 06:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv6bd-0002DK-Ea for emacs-devel@gnu.org; Tue, 06 Oct 2009 05:45:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv6bc-0002Cm-Iv for emacs-devel@gnu.org; Tue, 06 Oct 2009 05:45:17 -0400 Original-Received: from [199.232.76.173] (port=43463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv6bc-0002CY-0o for emacs-devel@gnu.org; Tue, 06 Oct 2009 05:45:16 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:35575) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv6bY-00011R-MY; Tue, 06 Oct 2009 05:45:12 -0400 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KR3002006V5T400@i-mtaout1.012.net.il>; Tue, 06 Oct 2009 11:44:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.224.43]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KR300A16723CZ30@i-mtaout1.012.net.il>; Tue, 06 Oct 2009 11:44:27 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:115919 Archived-At: > From: Miles Bader > Cc: rgm@gnu.org, emacs-devel@gnu.org > Date: Tue, 06 Oct 2009 18:33:35 +0900 > > Eli Zaretskii writes: > > P.S. I generally find any Make or shell/Sed trickery misplaced in > > Emacs Makefiles, since we have the full power of Emacs at our > > fingertips. Portability is one obvious advantage, but more > > importantly, it sounds right, in the context of building Emacs, to use > > Emacs itself wherever we can. Otherwise, we appear as not believing > > in the tool we are developing. Don't you agree? > > Well, of course that's only true if a built emacs is available at the > point of invocation. Agreed. In the case in point, Emacs _is_ available, since we generate loaddefs.el by running Emacs. > Also, the elisp code to do a given text munging job is often quite a > bit longer, because sed is designed specifically to do certain tasks > very concisely. Granted, if you switch tools, you frequently need to think about a different solution, more in line with the spirit of the tools you switch to. That's what I did in the two suggested alternatives. IOW, Sed is used here to produce a list of files, and there's more than just the Sed way of doing that. If we are to use Emacs, we need to do it the Emacs way.