From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistence. Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2011 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8221@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129979301013923 (code B ref -1); Thu, 10 Mar 2011 21:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2011 21:36:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxnXO-0003cW-IG for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxnXN-0003cH-KX for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxnXH-0007Ms-OQ for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxnXH-0007Mo-MG for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:43 -0500 Received: from [140.186.70.92] (port=46433 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxnXG-0003Pb-QQ for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxnXF-0007MR-KU for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:42 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:44316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxnXF-0007MN-IG for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:41 -0500 Received: by yws5 with SMTP id 5so1149079yws.0 for ; Thu, 10 Mar 2011 13:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=48v0P7EQeM71xmd3GOkjkDpNzp647LsEm5quhgqtf3k=; b=wjyAksYEh3A5efjTbkJDBbTBveMQoddC+USoDq7TR79adQwkqVdErg7YJuu2ZHp6B1 2RRYTrWslrlm3YCJGKk5qscWT8JKdZ4EGUJeVk05/7SL1xKgsb4rUDrg/WNblDF/3+P3 NJ6u76yEBk+TZE0IyrYUyUBXz9kCNK6cDnje4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gH1/iuPENbKOoXnJiDyqdchH6KABmcDmc5pEZEEzTNOTW/bnaG1qJ3ySMmNYOPw/7L xfGMtLIxLewOLeesFI9AFVI4C3JtVRFP9E03aEq1gFUyeViVmR0mWiRvBjyMdioeSoxj JW/C+fvPWXVPW7J+a62GiarhfPzsazGOw5ov8= MIME-Version: 1.0 Received: by 10.151.145.18 with SMTP id x18mr1694875ybn.133.1299793001040; Thu, 10 Mar 2011 13:36:41 -0800 (PST) Received: by 10.90.78.4 with HTTP; Thu, 10 Mar 2011 13:36:41 -0800 (PST) Date: Thu, 10 Mar 2011 22:36:41 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.9 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) Severity: wishlist Hello, I've been reading the documented behavior of Emacs with respect to the way it looks for the init file during startup. This is explained in the nodes "Init File" (for POSIX systems, I guess) and "Windows HOME" (for MS Windows platforms). According to the documentation (and the quick test I've done), we have this: - On Windows systems, Emacs tries to find the init file by cheking (in several paths) for the existence of a file named `.emacs'. - On POSIX systems, Emacs accepts the following alternatives as init file: `~/.emacs', `~/.emacs.el', or `~/.emacs.d/init.el' So, the question is, why this inconsistence? i.e., why not accept on Windows the same alternatives for the name of the init file as on POSIX systems? For example: Why not accept "\.emacs.d\.init.el" as a valid init file on Windows? ( being _any_ of the directories that Emacs currently checks for the `.emacs' file) -- Dani Moncayo From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency References: In-Reply-To: Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2011 22:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8221@debbugs.gnu.org Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129979548617510 (code B ref 8221); Thu, 10 Mar 2011 22:19:01 +0000 Received: (at 8221) by debbugs.gnu.org; 10 Mar 2011 22:18:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxoBJ-0004YM-Uj for submit@debbugs.gnu.org; Thu, 10 Mar 2011 17:18:06 -0500 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxoBI-0004Xt-C8 for 8221@debbugs.gnu.org; Thu, 10 Mar 2011 17:18:04 -0500 Received: by yxk30 with SMTP id 30so936358yxk.3 for <8221@debbugs.gnu.org>; Thu, 10 Mar 2011 14:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=gP7sQDF4Y2o+OAjJZSYtnlSMq6Ngcx9+gUcUd8s2PVQ=; b=wPD/7YFz76GcwfLz+X3v1hGy2EMAsd7bXhVc2buZ1JsqEtD7SjXgSmfKaFz4o47lIO NPL7gAUOd4KsZnFkQg2pVbd4RA3TfyWUjGRZdq5inEo4VhGE5YTy36WipiVmYsLuB9qn TPJW/E8UGdz0qLPqNYELWBK185EmoAbJDMIDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZvmOP0IwIf9CY7LdwnD5/NPI4/zdoGb+FoNQ6Uy7t/SOqaZBKHHa6bi+xHeoHnz5IP ub6qdB2+q2Bxfv3Efjm8mMy0TAqS1L0Mt8rdKVVwhHPOJAnmfE7K+XzEbMrz9Fz3Fb4p 8zbSni8SS8J9i1VZQYOzHNPRIEhR1CbCxrDoI= MIME-Version: 1.0 Received: by 10.150.56.17 with SMTP id e17mr1741141yba.190.1299795478829; Thu, 10 Mar 2011 14:17:58 -0800 (PST) Received: by 10.90.78.4 with HTTP; Thu, 10 Mar 2011 14:17:58 -0800 (PST) Date: Thu, 10 Mar 2011 23:17:58 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) On Thu, Mar 10, 2011 at 22:36, Dani Moncayo wrote: > So, the question is, why this inconsistence? ^^^^^^^^^^^^^ By "inconsistence" I meant "inconsistency". Forgive my imperfect English... -- Dani Moncayo From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistence. Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2011 23:00: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: To: Dani Moncayo Cc: 8221@debbugs.gnu.org Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129979797523963 (code B ref 8221); Thu, 10 Mar 2011 23:00:02 +0000 Received: (at 8221) by debbugs.gnu.org; 10 Mar 2011 22:59:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxopT-0006ER-0c for submit@debbugs.gnu.org; Thu, 10 Mar 2011 17:59:35 -0500 Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxopQ-0006ED-FL for 8221@debbugs.gnu.org; Thu, 10 Mar 2011 17:59:33 -0500 Received: by yic13 with SMTP id 13so937795yic.3 for <8221@debbugs.gnu.org>; Thu, 10 Mar 2011 14:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=Lr9SJ5xCszqqat62768VGu+ZyeCu3wk3GViaOdhu0s0=; b=AwWs4/IVzDxxRTACiZx7ER1vt5alHKRsQTugBSJm8IuQY1zSS4MCd3VmMcCpY8Cb9i hkIA3inU96VBHop/GocabvUHV+3FpoUX2ZtGlH4Kkmdpoe1wbIBhqF0S4/FeqK+G5IKI ARnJdLte8hyNzK3ZeLW35vXpEk5ZuSH7+MlIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=GVKu9iS/lNKNcSkCNiF2deTGKiwp6frf6e0OQhh2n7xS7IMzpWzwMdfajJa/A9WKEN q1M39Qrt4o/pstvQeKfNYhkmEXKZf6z3hGNaLs9ARbGorS6TnnXKpTf5q8nProw/MXF6 rVZso17zae74VDE0ipiXw0tCz2piDPOGqjO6E= Received: by 10.150.200.18 with SMTP id x18mr1794485ybf.83.1299797966690; Thu, 10 Mar 2011 14:59:26 -0800 (PST) Received: from home.jasonrumney.net ([180.72.114.254]) by mx.google.com with ESMTPS id r8sm2501098ane.39.2011.03.10.14.59.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Mar 2011 14:59:24 -0800 (PST) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 467601892; Fri, 11 Mar 2011 06:59:18 +0800 (MYT) From: Jason Rumney References: Date: Fri, 11 Mar 2011 06:59:18 +0800 In-Reply-To: (Dani Moncayo's message of "Thu, 10 Mar 2011 22:36:41 +0100") Message-ID: <87hbbalgzd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.8 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) Dani Moncayo writes: > So, the question is, why this inconsistence? i.e., why not accept on > Windows the same alternatives for the name of the init file as on > POSIX systems? We do. From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2011 23:37: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: To: Jason Rumney Cc: 8221@debbugs.gnu.org Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129980016327215 (code B ref 8221); Thu, 10 Mar 2011 23:37:02 +0000 Received: (at 8221) by debbugs.gnu.org; 10 Mar 2011 23:36:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxpOk-00074u-1o for submit@debbugs.gnu.org; Thu, 10 Mar 2011 18:36:02 -0500 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxpOi-00074Q-6r for 8221@debbugs.gnu.org; Thu, 10 Mar 2011 18:36:00 -0500 Received: by ywi6 with SMTP id 6so971461ywi.3 for <8221@debbugs.gnu.org>; Thu, 10 Mar 2011 15:35:54 -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:date :message-id:subject:from:to:cc:content-type; bh=Cc+0JaCgXqMelYkkpL17oxz22gnpkD2qiyeIFnfa258=; b=mUgORodFuwGbRX5XzzYCr+1SvKpBKy80JihOaphuBsZg4V+7MbReKUxak1PBSnx//G ZZke21m0VRvFiE8ybqmMwetmddhkjcxb5WcrFAshmqiyiQKvHLeVPG2DQMxUKhrf/WkS ebe6v/PTN1wIolU73VX3FCsvsRSmY3gJDca3Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lKybVXJqf2j/4oGpnPbJ0Rczcmq+pzV1LEvRNqxpg/bsvuUm+peq0IBQNyrVTNgoam J1keG+O9NWWeUbBNmhhkSNpBuy8u+pBm4k0VeebIF2L3C3nwONeGxlB9eokptJtgSNU+ EKLuQ0EtwTCEp7M67c+9AGau8vLOk/Ay9hyXE= MIME-Version: 1.0 Received: by 10.151.145.18 with SMTP id x18mr1839055ybn.133.1299800154486; Thu, 10 Mar 2011 15:35:54 -0800 (PST) Received: by 10.90.78.4 with HTTP; Thu, 10 Mar 2011 15:35:54 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Mar 2011 00:35:54 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) On Thu, Mar 10, 2011 at 23:59, Jason Rumney wrote: > Dani Moncayo writes: > >> So, the question is, why this inconsistence? i.e., why not accept on >> Windows the same alternatives for the name of the init file as on >> POSIX systems? > > We do. > 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. On the other hand, and according to the same info node, C:\ is checked as one possible "home" directory. 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. -- Dani Moncayo From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistence. 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:42: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: To: Dani Moncayo Cc: 8221@debbugs.gnu.org Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129981126316889 (code B ref 8221); Fri, 11 Mar 2011 02:42:02 +0000 Received: (at 8221) by debbugs.gnu.org; 11 Mar 2011 02:41:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxsHm-0004OM-8g for submit@debbugs.gnu.org; Thu, 10 Mar 2011 21:41:02 -0500 Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxsHk-0004O3-Ku for 8221@debbugs.gnu.org; Thu, 10 Mar 2011 21:41:00 -0500 Received: by yic13 with SMTP id 13so1008011yic.3 for <8221@debbugs.gnu.org>; Thu, 10 Mar 2011 18:40:55 -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=K8XcmySeNXLbOHQXXLNDfxbH+SqiNA0htphCUXJy2Nc=; b=ndpOT5DUhntjyiRgrKLKBKrGRXtRQyU9JqtBjGlIc2YAuFjW4qH6frA/BGJbiWJdI4 R1JIXNs5dFnOlUdA/DAIqefgjDwsSH0z+iL5Gv/Q50mh/90UVQcq9FmQHI+eNhA3us7D HuwRCZ04+ziKZrr0E+E7XYnCetnzl2vOhuDcc= 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=kLfxVPAsMb6kv6/KkLaf3CK9Y4Nzj8Vg4F53NTQHubfSzBREnXsNzUjiE9IGGDkl5F ntYy4AN8j4ZDQqI+UvGElRvwhZVdjpvDNg6hYNla809SMGPLIvCiIa7Jwla26yJ6a/id jwEhwa2HtqHSpLMgHy6P13lWtzzaU09pzP5Ao= Received: by 10.146.192.5 with SMTP id p5mr12805302yaf.39.1299811255098; Thu, 10 Mar 2011 18:40:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.137.2 with HTTP; Thu, 10 Mar 2011 18:40:15 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 11 Mar 2011 03:40:15 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) On Thu, Mar 10, 2011 at 22:36, Dani Moncayo wrote: > For example: Why not accept "\.emacs.d\.init.el" as a valid init > file on Windows? ( being _any_ of the directories that Emacs > currently checks for the `.emacs' file) Emacs on Windows currently *does* support %HOME%/.emacs.d/init.el and %APPDATA%/.emacs.d/init.el. It does not support C:\.emacs.d\init.el (unless you set HOME=3DC:\) and that's a feature IMHO. =C2=A0 =C2=A0 Juanma From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency 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: To: Dani Moncayo Cc: 8221@debbugs.gnu.org, Jason Rumney Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129981184617702 (code B ref 8221); Fri, 11 Mar 2011 02:51:02 +0000 Received: (at 8221) by debbugs.gnu.org; 11 Mar 2011 02:50:46 +0000 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 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 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= Received: by 10.146.192.5 with SMTP id p5mr12818125yaf.39.1299811838071; Thu, 10 Mar 2011 18:50:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.137.2 with HTTP; Thu, 10 Mar 2011 18:49:58 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 11 Mar 2011 03:49:58 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) 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 From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency Resent-From: Dani Moncayo 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 08:27: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: To: Juanma Barranquero Cc: 8221@debbugs.gnu.org, Jason Rumney Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129983198916381 (code B ref 8221); Fri, 11 Mar 2011 08:27:02 +0000 Received: (at 8221) by debbugs.gnu.org; 11 Mar 2011 08:26:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pxxg4-0004GA-S4 for submit@debbugs.gnu.org; Fri, 11 Mar 2011 03:26:29 -0500 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pxxg2-0004Fy-Kb for 8221@debbugs.gnu.org; Fri, 11 Mar 2011 03:26:27 -0500 Received: by ywi6 with SMTP id 6so1131365ywi.3 for <8221@debbugs.gnu.org>; Fri, 11 Mar 2011 00:26:21 -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:date :message-id:subject:from:to:cc:content-type; bh=/PJA9N6ELnIXgOLcWY7J8beqTPC8T4J1HimF9ueWBDE=; b=pt31+g8bWV8FlwiOfCbwZ9ymGxsny70I5/lZsNLMqLXq8By6mwPP941HFx9eRHREY4 HF0C1yZh9ltEQ/qna2YbMklumQx4fm2PLDaFmV1UP7c2iwPepsicS1gGn2NV2Awmy8Xg ACyfr/WwyUqI/lveg/skI0Jfw2iiPwyByajQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OG/XFxbnsCXKunYGNrinsgvrz8kMIucwMlq43IPNJdanXwd2knBR6UIivjazcRlGCE 2W6QFLvFDnaHwHQTlHX/XOKHudMzUupM4CZAoOVmmNWjmOG5PW+vnRUyai2WaVzF3gcY YVqnQIexHbUDF77Sx3IhqTwcPwH6VcT53eT54= MIME-Version: 1.0 Received: by 10.236.62.193 with SMTP id y41mr2127012yhc.4.1299831980992; Fri, 11 Mar 2011 00:26:20 -0800 (PST) Received: by 10.90.78.4 with HTTP; Fri, 11 Mar 2011 00:26:20 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Mar 2011 09:26:20 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) Hi Juanma, On Fri, Mar 11, 2011 at 03:49, Juanma Barranquero wrote: > 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". > Indeed, that is the node which explains the alternatives, and of course I agree that such info shouldn't be duplicated in any other node of the Manual. Instead of duplicating, the others nodes (IMO) should refer to the init file as `init file' (maybe giving a link to the suitable node), but not as `.emacs', as we currently have in node "Windows HOME". >> 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. > Yes, I got a bit confused about the exact procedure. Maybe I was somewhat biased, but IMO the current wording is a bit confusing: > The home directory is where your init file `.emacs' is stored. When > Emacs starts, it first checks whether the environment variable `HOME' > is set. If it is, it looks for the init file in the directory pointed > by `HOME'. If `HOME' is not defined, Emacs checks for an existing > `.emacs' file in `C:\', the root directory of drive `C:'(1). If > there's no such file in `C:\', Emacs next uses the Windows system calls > to find out the exact location of your application data directory. If > that system call fails, Emacs falls back to `C:\'. That made me think that the principle was (a) Try to find a suitable init file in several directories, and (b) Once an init file is found, the "home" directory is thereafter established accordingly. Thus, I suggest to revise the wording in that node, to avoid this confusion. >> 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=C:\" > should be required for that. > I agree, because IMO the init file should always be user-specific, and C:\ isn't a user-specific directory. -- Dani Moncayo From unknown Sat Aug 16 23:46:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dani Moncayo Subject: bug#8221: closed (Re: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency) Message-ID: References: <83y64luck5.fsf@gnu.org> X-Gnu-PR-Message: they-closed 8221 X-Gnu-PR-Package: emacs,w32 Reply-To: 8221@debbugs.gnu.org Date: Fri, 11 Mar 2011 11:23:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1299842582-31448-1" This is a multi-part message in MIME format... ------------=_1299842582-31448-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistenc= e. which was filed against the emacs,w32 package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8221@debbugs.gnu.org. --=20 8221: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8221 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1299842582-31448-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8221-done) by debbugs.gnu.org; 11 Mar 2011 11:22:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Py0QR-0008AW-WA for submit@debbugs.gnu.org; Fri, 11 Mar 2011 06:22:32 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Py0QP-0008AK-G9 for 8221-done@debbugs.gnu.org; Fri, 11 Mar 2011 06:22:30 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LHW00B004INAD00@a-mtaout20.012.net.il> for 8221-done@debbugs.gnu.org; Fri, 11 Mar 2011 13:22:16 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.58.59]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHW008DO4X2VMT0@a-mtaout20.012.net.il>; Fri, 11 Mar 2011 13:22:16 +0200 (IST) Date: Fri, 11 Mar 2011 13:22:18 +0200 From: Eli Zaretskii Subject: Re: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency In-reply-to: X-012-Sender: halo1@inter.net.il To: Dani Moncayo Message-id: <83y64luck5.fsf@gnu.org> References: X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8221-done Cc: lekktu@gmail.com, 8221-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) Version: 23.4 > Date: Fri, 11 Mar 2011 09:26:20 +0100 > From: Dani Moncayo > Cc: 8221@debbugs.gnu.org > > >> 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. > > > > Yes, I got a bit confused about the exact procedure. Maybe I was > somewhat biased, but IMO the current wording is a bit confusing: > > The home directory is where your init file `.emacs' is stored. When > > Emacs starts, it first checks whether the environment variable `HOME' > > is set. If it is, it looks for the init file in the directory pointed > > by `HOME'. If `HOME' is not defined, Emacs checks for an existing > > `.emacs' file in `C:\', the root directory of drive `C:'(1). If > > there's no such file in `C:\', Emacs next uses the Windows system calls > > to find out the exact location of your application data directory. If > > that system call fails, Emacs falls back to `C:\'. > > That made me think that the principle was (a) Try to find a suitable > init file in several directories, and (b) Once an init file is found, > the "home" directory is thereafter established accordingly. > > Thus, I suggest to revise the wording in that node, to avoid this confusion. I modified the wording of that section, hopefully it's more clear now. The full text is below. I'm closing this bug; feel free to reopen if something is still unclear. @node Windows HOME @section HOME and Startup Directories on MS-Windows @cindex @code{HOME} directory on MS-Windows The Windows equivalent of the @code{HOME} directory is the @dfn{user-specific application data directory}. The actual location depends on your Windows version and system configuration; typical values are @file{C:\Documents and Settings\@var{username}\Application Data} on Windows 2K/XP/2K3, @file{C:\Users\@var{username}\AppData\Roaming} on Windows Vista/7/2K8, and either @file{C:\WINDOWS\Application Data} or @file{C:\WINDOWS\Profiles\@var{username}\Application Data} on the older Windows 9X/ME systems. If this directory does not exist or cannot be accessed, Emacs falls back to @file{C:\} as the default value of @code{HOME}. You can override this default value of @code{HOME} by explicitly setting the environment variable @env{HOME} to point to any directory on your system. @env{HOME} can be set either from the command shell prompt or from the @samp{My Computer}s @samp{Properties} dialog. @code{HOME} can also be set in the system registry, for details see @ref{MS-Windows Registry}. For compatibility with older versions of Emacs@footnote{ Older versions of Emacs didn't check the application data directory. }, if there is a file named @file{.emacs} in @file{C:\}, the root directory of drive @file{C:}, and @env{HOME} is set neither in the environment nor in the Registry, Emacs will treat @file{C:\} as the default @code{HOME} location, and will not look in the application data directory, even if it exists. Note that only @file{.emacs} is looked for in @file{C:\}; the older name @file{_emacs} (see below) is not. This use of @file{C:\.emacs} to define @code{HOME} is deprecated. Whatever the final place is, Emacs sets the internal value of the @env{HOME} environment variable to point to it, and it will use that location for other files and directories it normally looks for or creates in the user's home directory. You can always find out where Emacs thinks is your home directory's location by typing @kbd{C-x d ~/ @key{RET}}. This should present the list of files in the home directory, and show its full name on the first line. Likewise, to visit your init file, type @kbd{C-x C-f ~/.emacs @key{RET}} (assuming the file's name is @file{.emacs}). @cindex init file @file{.emacs} on MS-Windows The home directory is where your init file is stored. It can have any name mentioned in @ref{Init File}. @cindex @file{_emacs} init file, MS-Windows Because MS-DOS does not allow file names with leading dots, and because older Windows systems made it hard to create files with such names, the Windows port of Emacs supports an alternative name @file{_emacs} as a fallback, if such a file exists in the home directory, whereas @file{.emacs} does not. ------------=_1299842582-31448-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Mar 2011 21:36:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxnXO-0003cW-IG for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PxnXN-0003cH-KX for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxnXH-0007Ms-OQ for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxnXH-0007Mo-MG for submit@debbugs.gnu.org; Thu, 10 Mar 2011 16:36:43 -0500 Received: from [140.186.70.92] (port=46433 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxnXG-0003Pb-QQ for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxnXF-0007MR-KU for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:42 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:44316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxnXF-0007MN-IG for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2011 16:36:41 -0500 Received: by yws5 with SMTP id 5so1149079yws.0 for ; Thu, 10 Mar 2011 13:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=48v0P7EQeM71xmd3GOkjkDpNzp647LsEm5quhgqtf3k=; b=wjyAksYEh3A5efjTbkJDBbTBveMQoddC+USoDq7TR79adQwkqVdErg7YJuu2ZHp6B1 2RRYTrWslrlm3YCJGKk5qscWT8JKdZ4EGUJeVk05/7SL1xKgsb4rUDrg/WNblDF/3+P3 NJ6u76yEBk+TZE0IyrYUyUBXz9kCNK6cDnje4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gH1/iuPENbKOoXnJiDyqdchH6KABmcDmc5pEZEEzTNOTW/bnaG1qJ3ySMmNYOPw/7L xfGMtLIxLewOLeesFI9AFVI4C3JtVRFP9E03aEq1gFUyeViVmR0mWiRvBjyMdioeSoxj JW/C+fvPWXVPW7J+a62GiarhfPzsazGOw5ov8= MIME-Version: 1.0 Received: by 10.151.145.18 with SMTP id x18mr1694875ybn.133.1299793001040; Thu, 10 Mar 2011 13:36:41 -0800 (PST) Received: by 10.90.78.4 with HTTP; Thu, 10 Mar 2011 13:36:41 -0800 (PST) Date: Thu, 10 Mar 2011 22:36:41 +0100 Message-ID: Subject: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistence. From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) Severity: wishlist Hello, I've been reading the documented behavior of Emacs with respect to the way it looks for the init file during startup. This is explained in the nodes "Init File" (for POSIX systems, I guess) and "Windows HOME" (for MS Windows platforms). According to the documentation (and the quick test I've done), we have this: - On Windows systems, Emacs tries to find the init file by cheking (in several paths) for the existence of a file named `.emacs'. - On POSIX systems, Emacs accepts the following alternatives as init file: `~/.emacs', `~/.emacs.el', or `~/.emacs.d/init.el' So, the question is, why this inconsistence? i.e., why not accept on Windows the same alternatives for the name of the init file as on POSIX systems? For example: Why not accept "\.emacs.d\.init.el" as a valid init file on Windows? ( being _any_ of the directories that Emacs currently checks for the `.emacs' file) -- Dani Moncayo ------------=_1299842582-31448-1-- From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8221: 24.0.50; Allowed names for the init file. Windows/POSIX inconsistency Resent-From: Eli Zaretskii 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 11:27: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: To: Juanma Barranquero Cc: 8221@debbugs.gnu.org, dmoncayo@gmail.com Reply-To: Eli Zaretskii Received: via spool by 8221-submit@debbugs.gnu.org id=B8221.129984280831895 (code B ref 8221); Fri, 11 Mar 2011 11:27:02 +0000 Received: (at 8221) by debbugs.gnu.org; 11 Mar 2011 11:26:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Py0Ua-0008IO-DI for submit@debbugs.gnu.org; Fri, 11 Mar 2011 06:26:48 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Py0UZ-0008IC-8q for 8221@debbugs.gnu.org; Fri, 11 Mar 2011 06:26:47 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LHW00B0051YCU00@a-mtaout20.012.net.il> for 8221@debbugs.gnu.org; Fri, 11 Mar 2011 13:26:07 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.58.59]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHW009G953IT1K0@a-mtaout20.012.net.il>; Fri, 11 Mar 2011 13:26:07 +0200 (IST) Date: Fri, 11 Mar 2011 13:26:09 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83tyf9ucdq.fsf@gnu.org> References: X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > From: Juanma Barranquero > Date: Fri, 11 Mar 2011 03:49:58 +0100 > Cc: 8221@debbugs.gnu.org > > 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". Right. So I added a cross-reference there in the G.5 section.