all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* automatic byte compilation
@ 2010-05-22 11:41 Andrea Crotti
  2010-05-22 14:23 ` Gary
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Crotti @ 2010-05-22 11:41 UTC (permalink / raw)
  To: help-gnu-emacs


I would like to always byte compile when possible, but I would also like
to avoid doing it manually.

I also have this alias
--8<---------------cut here---------------start------------->8---
alias emacs_compile="Emacs --batch -f batch-byte-compile *el"
--8<---------------cut here---------------end--------------->8---

Which is nice, but the best thing would be that whenever I load a file
- if there is the byte-compiled
  + if .el file is newer compile that and load it (maybe asking
  confirmation)
  + otherwise just load it

- if there isn't byte-compile and load it.

Why isn't it the default behaviour by the way?
Maybe it would take too long to load?

Are there any drawbacks in compiling?
For example now I have a problem with cedet/ecb, if I byte-compile I get
some strange errors, if I leave it as source everything works, what
could that be?

Thanks,
Andrea




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

* Re: automatic byte compilation
  2010-05-22 11:41 automatic byte compilation Andrea Crotti
@ 2010-05-22 14:23 ` Gary
  2010-05-24  8:04   ` Andrea Crotti
  0 siblings, 1 reply; 5+ messages in thread
From: Gary @ 2010-05-22 14:23 UTC (permalink / raw)
  To: Help-gnu-emacs

Andrea Crotti wrote:

> I would like to always byte compile when possible, but I would also like
> to avoid doing it manually.

http://www.emacswiki.org/emacs/AutoRecompile

I use byte-code-cache.el which seems to work okay except for when it
doesn't.

-- 
Gary



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

* Re: automatic byte compilation
  2010-05-22 14:23 ` Gary
@ 2010-05-24  8:04   ` Andrea Crotti
  2010-05-24  8:22     ` Andrea Crotti
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Crotti @ 2010-05-24  8:04 UTC (permalink / raw)
  To: help-gnu-emacs

Gary <help-gnu-emacs@garydjones.name> writes:
>
> http://www.emacswiki.org/emacs/AutoRecompile
>
> I use byte-code-cache.el which seems to work okay except for when it
> doesn't.

Very good thanks it seems to work, it's also nice to have the *.elc
somewhere else...

In which cases it didn't work for you?




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

* Re: automatic byte compilation
  2010-05-24  8:04   ` Andrea Crotti
@ 2010-05-24  8:22     ` Andrea Crotti
  2010-05-24 11:22       ` Gary
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Crotti @ 2010-05-24  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

>
> Very good thanks it seems to work, it's also nice to have the *.elc
> somewhere else...
>
> In which cases it didn't work for you?

For example I was trying to use cedet and I get this funny error
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Recursive `require' for feature
`eieio'")
--8<---------------cut here---------------end--------------->8---

Which I think it could be related to it, maybe I can just add some
directories to the blacklist, right?





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

* Re: automatic byte compilation
  2010-05-24  8:22     ` Andrea Crotti
@ 2010-05-24 11:22       ` Gary
  0 siblings, 0 replies; 5+ messages in thread
From: Gary @ 2010-05-24 11:22 UTC (permalink / raw)
  To: Help-gnu-emacs

Andrea Crotti wrote:
> Andrea Crotti <andrea.crotti.0@gmail.com> writes:

>> Very good thanks it seems to work, it's also nice to have the *.elc
>> somewhere else...
>>
>> In which cases it didn't work for you?

Sometimes if I changed a lisp file the next load would result in some
strange "require" error, a bit like yours (but not the same).

> For example I was trying to use cedet and I get this funny error
> Debugger entered--Lisp error: (error "Recursive `require' for feature
> `eieio'")
>
> Which I think it could be related to it, maybe I can just add some
> directories to the blacklist, right?

Err... You're a step ahead of me if you've found what might work :)

-- 
Gary



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

end of thread, other threads:[~2010-05-24 11:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22 11:41 automatic byte compilation Andrea Crotti
2010-05-22 14:23 ` Gary
2010-05-24  8:04   ` Andrea Crotti
2010-05-24  8:22     ` Andrea Crotti
2010-05-24 11:22       ` Gary

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.