unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: user-init-file source vs. compiled
Date: Thu, 01 Feb 2007 16:46:18 +0100	[thread overview]
Message-ID: <45C20B4A.7030806@gmail.com> (raw)
In-Reply-To: <f7ccd24b0702010710x23173472hc67d16a3c2c568c0@mail.gmail.com>

Juanma Barranquero wrote:
>> From the docstring of `user-init-file':
> 
>  File name, including directory, of user's initialization file.
>  If the file loaded had extension `.elc', and the corresponding source file
>  exists, this variable contains the name of source file, suitable for use
>  by functions like `custom-save-all' which edit the init file.
> 
> Which is true, *once* the user init file is loaded. While it loads,
> `user-init-file' contains the real name of the file loaded:
> 
> ------ .emacs ------
> (message "user-init-file: %S" user-init-file)
> --------------------
> 
> After compiling .emacs and starting Emacs, *messages* contains:
> 
> (C:\emacs\HEAD\bin\emacs.exe)
> Loading encoded-kb...done
> user-init-file: "c:/home/.emacs.elc"
> 
> I've been struggling to find a clear wording to explain it. Suggestions 
> welcome.


What about the other way round? Changing the behaviour to what the 
documentation says? Is there any reason that user-init-file should not 
always point to the source file?

  reply	other threads:[~2007-02-01 15:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 15:10 user-init-file source vs. compiled Juanma Barranquero
2007-02-01 15:46 ` Lennart Borgman (gmail) [this message]
2007-02-01 16:07   ` Juanma Barranquero
2007-02-01 16:21     ` Lennart Borgman (gmail)
2007-02-01 17:04       ` Juanma Barranquero
2007-02-01 17:20         ` Lennart Borgman (gmail)
2007-02-01 18:18           ` Juanma Barranquero
2007-02-01 19:17 ` Stefan Monnier
2007-02-01 20:02   ` Chong Yidong
2007-02-01 22:41     ` Stefan Monnier
2007-02-01 23:03       ` Juanma Barranquero
2007-02-02 15:30         ` Stefan Monnier
2007-02-02 16:03           ` Juanma Barranquero
2007-02-02 16:30             ` Lennart Borgman (gmail)
2007-02-02 16:38               ` Juanma Barranquero
2007-02-02 17:15                 ` Lennart Borgman (gmail)
2007-02-02 17:21                   ` Juanma Barranquero
2007-02-02 16:47             ` Stefan Monnier
2007-02-02 17:08               ` Juanma Barranquero
2007-02-01 20:07   ` Juanma Barranquero
2007-02-01 20:50 ` Eli Zaretskii
2007-02-01 22:06   ` Juanma Barranquero

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=45C20B4A.7030806@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /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.
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).