GNU bug report logs -
#20968
25.0.50; Be able to specify the output directory for `byte-compile-file'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Thu, 2 Jul 2015 21:06:02 UTC
Severity: wishlist
Tags: wontfix
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Fri, 3 Jul 2015 07:55:55 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: rgm <at> gnu.org, 20968 <at> 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.
This bug report was last modified 9 years and 26 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.