From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: user-init-file source vs. compiled Date: Thu, 01 Feb 2007 22:50:44 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1170363064 16488 80.91.229.12 (1 Feb 2007 20:51:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Feb 2007 20:51:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 01 21:50:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCitU-000845-Ui for ged-emacs-devel@m.gmane.org; Thu, 01 Feb 2007 21:50:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCitU-0002Ld-Il for ged-emacs-devel@m.gmane.org; Thu, 01 Feb 2007 15:50:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HCitJ-0002Gr-PD for emacs-devel@gnu.org; Thu, 01 Feb 2007 15:50:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HCitI-0002Da-CU for emacs-devel@gnu.org; Thu, 01 Feb 2007 15:50:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCitI-0002D6-3S for emacs-devel@gnu.org; Thu, 01 Feb 2007 15:50:44 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HCitH-00042N-Ij for emacs-devel@gnu.org; Thu, 01 Feb 2007 15:50:43 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-35-47.inter.net.il [80.230.35.47]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FYJ56812 (AUTH halo1); Thu, 1 Feb 2007 22:50:38 +0200 (IST) In-reply-to: (lekktu@gmail.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65755 Archived-At: > Date: Thu, 1 Feb 2007 16:10:37 +0100 > From: "Juanma Barranquero" > > 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. How about adding this to the doc string: While Emacs loads and evaluates the init file, value is the real name of the file, regardless of whether or not it has the `.elc' extension.