From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20968: 25.0.50; Be able to specify the output directory for `byte-compile-file' Date: Sat, 04 Jul 2015 11:40:31 +0300 Message-ID: <83pp48xqm8.fsf@gnu.org> References: <23829743-922e-4304-8ab3-b762b8193860@default> <74y4iytdjg.fsf@fencepost.gnu.org> <83pp49zb03.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435999285 1427 80.91.229.3 (4 Jul 2015 08:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jul 2015 08:41:25 +0000 (UTC) Cc: 20968@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 04 10:41:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZBJ0a-0007VI-Ge for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 10:41:12 +0200 Original-Received: from localhost ([::1]:43642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJ0Z-0000DE-Tk for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 04:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJ0V-0000Cy-Lx for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBJ0R-0007sY-HE for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:41:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJ0R-0007sP-EB for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZBJ0Q-0002FD-K0 for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jul 2015 08:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20968-submit@debbugs.gnu.org id=B20968.14359992288570 (code B ref 20968); Sat, 04 Jul 2015 08:41:02 +0000 Original-Received: (at 20968) by debbugs.gnu.org; 4 Jul 2015 08:40:28 +0000 Original-Received: from localhost ([127.0.0.1]:39189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBIzr-0002E7-CD for submit@debbugs.gnu.org; Sat, 04 Jul 2015 04:40:27 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36268) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBIzn-0002Dq-QH for 20968@debbugs.gnu.org; Sat, 04 Jul 2015 04:40:25 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NQY00L00FXTPQ00@mtaout28.012.net.il> for 20968@debbugs.gnu.org; Sat, 04 Jul 2015 11:40:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQY00B2FG2WHGB0@mtaout28.012.net.il>; Sat, 04 Jul 2015 11:40:09 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104670 Archived-At: > Date: Fri, 3 Jul 2015 07:55:55 -0700 (PDT) > From: Drew Adams > Cc: rgm@gnu.org, 20968@debbugs.gnu.org > > Why should the target dir be hardwired to the source dir? Testing > might be a reason for the enhancement: quickly remove the *.elc dir > from `load-path' to take byte-compilation complications out of the > equation. Having different compilation dirs for different Emacs > versions could be another argument for such flexibility. > > Is there a compelling reason, beyond "we've always done without > this", not to let users specify the output dir? One reason is to be able to use "M-x load-library RET", and have it DTRT. If the *.elc files are separate from *.el, then at best the problem of deciding which version to load becomes harder and the loading becomes slower, and at worst you'll have a subtle bug on your hands. E.g., what if more than one directory on load-path has a file that goes by the same name? And in what order do you search load-path for the companion .el file, given that you found .elc in in some directory? Last, but not least: the current implementation of loading a Lisp file is a 2-level loop, where the outer one loops over the directories, and the inner one over the suffixes. So this suggestion, if implemented, will need C-level changes as well. > Or seize the opportunity to instead rant about non-GNU Emacs forums... Done. > > If you dwell a lot on those sites, how about encouraging people to > > use the Emacs forums, where they will get definitive answers, > > instead of talking to random people (present company excluded) on > > Stack-foo? > > If you visited emacs.SE and StackOverflow (tag `emacs') occasionally, > you might observe that that is **EXACTLY** what I do do. Far more > than anyone else, BTW. And I encourage them to file bug reports if > they think they've found a bug or have an enhancement suggestion. Please carry on, and thanks.