From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency Date: Fri, 11 Mar 2011 03:49:58 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299812838 23203 80.91.229.12 (11 Mar 2011 03:07:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 03:07:18 +0000 (UTC) Cc: 8221@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 04:07:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pxsh5-0007ft-Rw for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 04:07:12 +0100 Original-Received: from localhost ([127.0.0.1]:59978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxsh4-0000W7-Q2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2011 22:07:10 -0500 Original-Received: from [140.186.70.92] (port=53338 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxsgv-0000UF-3k for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 22:07:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pxsgs-0006nM-QS for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 22:07:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pxsgs-0006nI-P3 for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 22:06:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PxsRS-0004bw-Hn; Thu, 10 Mar 2011 21:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2011 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8221 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129981184617702 (code B ref 8221); Fri, 11 Mar 2011 02:51:02 +0000 Original-Received: (at 8221) by debbugs.gnu.org; 11 Mar 2011 02:50:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxsRB-0004bT-IL for submit@debbugs.gnu.org; Thu, 10 Mar 2011 21:50:45 -0500 Original-Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxsR9-0004bH-Kx for 8221@debbugs.gnu.org; Thu, 10 Mar 2011 21:50:44 -0500 Original-Received: by ywi6 with SMTP id 6so1031685ywi.3 for <8221@debbugs.gnu.org>; Thu, 10 Mar 2011 18:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=WeRcCX0oRqDGiEXb7Gj2XfiY722w5Au0TLpr9JzTY8c=; b=RtiqrXgU/J46kBdlMV85MBFIZdE8kIauHJl9vCe4Hp0xz5LMmyGnZt6KV+pjR6ZVjc hvSLiQRHRx1+z6KL2m6aPmA5chcBlPrR53K1nZiYVlRA+hDvYC/Q2jQabD81bw6nmNia 6qSFyCz0SmDKejwcspjXG+sSxaW3OTQtuueOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=UyWfUzydO0a/NXYDYAgim6HbP48Ju9fmBiTga0XfLBIK4qUlfVcp2OUe06q+2MpWvk gdzV8uIQelSQX87Aotj5u6DScVGFa3A/yA1WAKuCzGXuRUrHkt0hs+mC2tZH//HT30G0 5JxdIlukAEIyRm2iQJtpgicX46uRuGjWRX2r0= Original-Received: by 10.146.192.5 with SMTP id p5mr12818125yaf.39.1299811838071; Thu, 10 Mar 2011 18:50:38 -0800 (PST) Original-Received: by 10.147.137.2 with HTTP; Thu, 10 Mar 2011 18:49:58 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Mar 2011 21:51:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44903 Archived-At: On Fri, Mar 11, 2011 at 00:35, Dani Moncayo wrote: > On one hand, it doesn't seem to be the documented behavior in the node > "Windows HOME" of the manual. It refers to the init file as `.emacs', > and says nothing about possible alternatives. The alternatives are documented on "53.6 The Init File, `~/.emacs'"; there's no need to duplicate it on "G.5 HOME and Startup Directories on MS-Windows". > On the other hand, and according to the same info node, C:\ is checked > as one possible "home" directory. I think you're reading more that the info node says. What it says is that Emacs is looking for HOME (the environment variable) and if it finds it, it looks there for the "init file". If that fails, it looks for ".emacs" in C:\; and if that fails, it looks for the AppData dir (which is an alternative to HOME, not to C:\). So it is clear (if a bit inconsistent) that looking for .emacs (specifically) on C:\ (specifically) is something done just because of back compatibility. > Thus, init files such as > "C:\.emacs.el" or "C:\.emacs.d\init.el" should be valid ones. But I've > just tested those two and Emacs don't find them. If you ask me, not even C:\.emacs should be valid; "set HOME=3DC:\" should be required for that. =C2=A0 =C2=A0 Juanma