From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: OS independent way to specify location of .emacs.d directory Date: Thu, 4 Apr 2013 21:04:25 +0000 Message-ID: References: <878v4yt3q4.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365109482 15541 80.91.229.3 (4 Apr 2013 21:04:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 21:04:42 +0000 (UTC) To: Oleksandr Gavenko , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 23:05:09 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNrLH-0000iF-0x for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 23:05:07 +0200 Original-Received: from localhost ([::1]:41497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNrKs-000550-4A for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 17:04:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNrKg-00054e-0u for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 17:04:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNrKe-0005LJ-PJ for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 17:04:29 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:8936 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNrKe-0005KP-KQ for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 17:04:28 -0400 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.2.318.1; Thu, 4 Apr 2013 16:04:25 -0500 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.119]) by USSLMMBX002.net.plm.eds.com ([169.254.1.185]) with mapi id 14.02.0318.001; Thu, 4 Apr 2013 16:04:25 -0500 Thread-Topic: OS independent way to specify location of .emacs.d directory Thread-Index: AQHOMXbRdOdS5hBoHkuwAYyt9fEUZJjGi18A In-Reply-To: <878v4yt3q4.fsf@gavenkoa.example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.71.110] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 134.244.32.85 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89997 Archived-At: > From: Oleksandr Gavenko > Sent: Thursday, April 04, 2013 3:56 PM >=20 > On 2013-04-04, Stefan Monnier wrote: >=20 > >> Is there way that specifies the path to the .emacs.d directory that > >> works on Linux, Windows, and Mac? > > > > AFAIK "~/.emacs.d" should work. > > > I see many times such code: >=20 > (expand-file-name "~/.emacs.d") It is a little-known fact that the Windows kernel accepts forward slashes; you can pass them to every API that takes a file path. (You can pass=20 path strings that mix forward and backward slashes.) You can even use forward slashes as file path arguments to some external=20 commands in command shells. You can never use them in internal commands. Cheers, Mark