unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* "emacs" and "emacs -q -l ~/.emacs.elc" behave differently
@ 2012-10-15 16:27 mandar.mitra
  2012-10-15 17:09 ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: mandar.mitra @ 2012-10-15 16:27 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I was under the impression that running emacs and running 
"emacs -q -l ~/.emacs.elc" would be the same, but I'm getting 
different behaviour in the two cases. 

Specifically, "emacs" hangs (100% CPU, non-responsive) when displaying a
particular email in message mode, but "emacs -q -l ~/.emacs.elc" displays
the message without problems.

Emacs version:
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.2.0) of 2012-09-19 on litembilla, modified by Debian

(emacs-snapshot installed from Damien Cassou's ppa on Lubuntu 11.10)

Thanks for any tips,
mandar.


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

* Re: "emacs" and "emacs -q -l ~/.emacs.elc" behave differently
  2012-10-15 16:27 "emacs" and "emacs -q -l ~/.emacs.elc" behave differently mandar.mitra
@ 2012-10-15 17:09 ` Juanma Barranquero
  2012-10-15 18:23   ` Mandar Mitra
  0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2012-10-15 17:09 UTC (permalink / raw)
  To: mandar.mitra; +Cc: help-gnu-emacs

On Mon, Oct 15, 2012 at 6:27 PM, mandar.mitra <mandar.mitra@gmail.com> wrote:

> I was under the impression that running emacs and running
> "emacs -q -l ~/.emacs.elc" would be the same

Generally speaking, no. The sequence of actions will be different.
Take a look at the "Startup Summary" node of the Emacs Lisp Reference
Manual.

    Juanma



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

* Re: "emacs" and "emacs -q -l ~/.emacs.elc" behave differently
  2012-10-15 17:09 ` Juanma Barranquero
@ 2012-10-15 18:23   ` Mandar Mitra
  0 siblings, 0 replies; 3+ messages in thread
From: Mandar Mitra @ 2012-10-15 18:23 UTC (permalink / raw)
  To: help-gnu-emacs

Juanma Barranquero wrote (Mon, Oct 15, 2012 at 07:09:30PM +0200):
> On Mon, Oct 15, 2012 at 6:27 PM, mandar.mitra <mandar.mitra@gmail.com> wrote:
> 
> > I was under the impression that running emacs and running
> > "emacs -q -l ~/.emacs.elc" would be the same
> 
> Generally speaking, no. The sequence of actions will be different.
> Take a look at the "Startup Summary" node of the Emacs Lisp Reference
> Manual.

Thanks for the pointer!

More details in case anyone else finds this useful: init file loading
happens in step 12, and "command-line options that were not handled
earlier" (presumably this includes -l) are processed in step 21. In
between, it does a bunch of stuff like calling package-initialize,
after-init-hook, etc.



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

end of thread, other threads:[~2012-10-15 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 16:27 "emacs" and "emacs -q -l ~/.emacs.elc" behave differently mandar.mitra
2012-10-15 17:09 ` Juanma Barranquero
2012-10-15 18:23   ` Mandar Mitra

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).