unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file
@ 2009-01-27  0:49 Stefan Monnier
  2009-02-02 18:56 ` Juanma Barranquero
  2009-02-03  9:59 ` bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Richard M Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-01-27  0:49 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 2061, Brent Goodrick

> Isn't easier just to compile the .el file? If you're developing or
> modifying a package, and want to try it at once, create a macro to
> compile it as soon as you save it...

A common case for me is "bzr pull" or "cvs update" or "tla star-merge"
to bring in new changes.  I don't look at all the Elisp files brought in
so byte-compile-file is not convenient, and byte-compilation often leads
to odd results because the `require's read the old .elc files.


        Stefan






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file
  2009-01-27  0:49 bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Stefan Monnier
@ 2009-02-02 18:56 ` Juanma Barranquero
  2009-02-03 21:08   ` bug#2061: 23.0.60; Add preference to force load of Elisp files Stefan Monnier
  2009-02-03  9:59 ` bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Richard M Stallman
  1 sibling, 1 reply; 6+ messages in thread
From: Juanma Barranquero @ 2009-02-02 18:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 2061, Brent Goodrick

On Tue, Jan 27, 2009 at 01:49, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> A common case for me is "bzr pull" or "cvs update" or "tla star-merge"
> to bring in new changes.  I don't look at all the Elisp files brought in
> so byte-compile-file is not convenient, and byte-compilation often leads
> to odd results because the `require's read the old .elc files.

I'm used to do "make cvs-update" just about after every "cvs update".

    Juanma






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file
  2009-01-27  0:49 bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Stefan Monnier
  2009-02-02 18:56 ` Juanma Barranquero
@ 2009-02-03  9:59 ` Richard M Stallman
  2009-02-03 21:07   ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Richard M Stallman @ 2009-02-03  9:59 UTC (permalink / raw)
  To: Stefan Monnier, 2061; +Cc: lekktu, 2061, bgoodr

    A common case for me is "bzr pull" or "cvs update" or "tla star-merge"
    to bring in new changes.  I don't look at all the Elisp files brought in
    so byte-compile-file is not convenient, and byte-compilation often leads
    to odd results because the `require's read the old .elc files.

Are you saying that in this case you would want to load the .el files
instead?

If so, I wonder if the right solution is to do something special when loading
a file for `require' in compilation.  Perhaps offer to compile them?






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file
  2009-02-03  9:59 ` bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Richard M Stallman
@ 2009-02-03 21:07   ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-02-03 21:07 UTC (permalink / raw)
  To: rms; +Cc: lekktu, 2061, bgoodr

> If so, I wonder if the right solution is to do something special when loading
> a file for `require' in compilation.

Indeed, that's what I do in my local branch, where the bytecompiler's
handling of require gives precedence to the .el files over the .elc files.

> Perhaps offer to compile them?

It needs to work in batch mode.  And byte-compiling them can easily fall
into circularities.


        Stefan






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#2061: 23.0.60; Add preference to force load of Elisp files
  2009-02-02 18:56 ` Juanma Barranquero
@ 2009-02-03 21:08   ` Stefan Monnier
  2013-12-18  3:24     ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2009-02-03 21:08 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 2061, Brent Goodrick

>> A common case for me is "bzr pull" or "cvs update" or "tla star-merge"
>> to bring in new changes.  I don't look at all the Elisp files brought in
>> so byte-compile-file is not convenient, and byte-compilation often leads
>> to odd results because the `require's read the old .elc files.

> I'm used to do "make cvs-update" just about after every "cvs update".

I use revisiton control tools for several Elisp packages outside
of Emacs.  I don't want to reinvent the same Makefile rules for each one
of them.


        Stefan






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#2061: 23.0.60; Add preference to force load of Elisp files
  2009-02-03 21:08   ` bug#2061: 23.0.60; Add preference to force load of Elisp files Stefan Monnier
@ 2013-12-18  3:24     ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2013-12-18  3:24 UTC (permalink / raw)
  To: 2061-done

Version: 24.4

Added option `load-prefer-newer'.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-12-18  3:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27  0:49 bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Stefan Monnier
2009-02-02 18:56 ` Juanma Barranquero
2009-02-03 21:08   ` bug#2061: 23.0.60; Add preference to force load of Elisp files Stefan Monnier
2013-12-18  3:24     ` Glenn Morris
2009-02-03  9:59 ` bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Richard M Stallman
2009-02-03 21:07   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).