unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Inexplicable flaw: non-overridable .emacs
Date: Sat, 17 Mar 2007 09:11:15 -0600	[thread overview]
Message-ID: <eth0eh$786$1@sea.gmane.org> (raw)
In-Reply-To: <etgrau$33h$1@reader2.panix.com>

kj wrote:
> In <mailman.972.1173989687.7795.help-gnu-emacs@gnu.org> Eli Zaretskii <eliz@gnu.org> writes:
> 
>>> From: kj <socyl@987jk.com.invalid>
>>> Date: Thu, 15 Mar 2007 18:15:15 +0000 (UTC)
>>>
>>> Please correct me if I'm wrong, it is my understanding that one
>>> cannot use a command-line switch to tell emacs to read a config
>>> file *other* than the standard ~/.emacs.
> 
>> You are only partly wrong: Emacs has a --load command-line switch that
>> would load any file you name.  But such loading is not 100% equivalent
>> to how Emacs loads a .emacs file, because .emacs is read at a certain
>> point during the Emacs session startup, while files given via --load
>> are read at a different point.  So the effects could be subtly
>> different, especially with respect to display setup.
> 
> That's good to know, thanks, but, again, I'm puzzled: why would
> Emacs treat ~/.emacs differently from a user-specified alternative?

Because ~/.emacs is loaded between default.el and site-start.el, after
the so-called initial command line options are processed but before the
so-called action options.  If your installation doesn't have a
site-start.el file, you should be OK -- modulo display setup, as Eli
points out.

> It seems perversely unaccommodating on Emacs' part (even if only
> in a passive-agressive sort of way :)  )

-- 
Kevin Rodgers
Denver, Colorado, USA

  parent reply	other threads:[~2007-03-17 15:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15 18:15 Inexplicable flaw: non-overridable .emacs kj
2007-03-15 18:24 ` David Kastrup
2007-03-15 19:08 ` Maarten Bergvelt
2007-03-15 20:14 ` Eli Zaretskii
     [not found] ` <mailman.972.1173989687.7795.help-gnu-emacs@gnu.org>
2007-03-17 13:43   ` kj
2007-03-17 13:54     ` Joost Kremers
2007-03-17 15:11     ` Kevin Rodgers [this message]
2007-03-17 15:43     ` David Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='eth0eh$786$1@sea.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).