From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicolas Richard" Subject: [PATCH] Change references to "~/.emacs.d" into `user-emacs-directory' ? Date: Wed, 09 Jan 2013 17:09:51 +0100 Message-ID: <87a9sixrqo.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsyE8-0001Ik-Uv for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 11:10:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsyE5-0002s2-0S for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 11:10:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:58464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsyE4-0002rj-Pb for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 11:10:00 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TsyEI-0007O0-Ii for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 17:10:14 +0100 Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jan 2013 17:10:14 +0100 Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jan 2013 17:10:14 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Not sure if this is of any importance, but since the variable user-emacs-directory (a defconst) exists, maybe org-mode could use it instead of "~/.emacs.d". It seems only relevant for MS-DOS systems, though. Nico. >From 4fb0ecaef07ca9d10e5a57bef19f3201a2c90097 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Wed, 9 Jan 2013 16:41:12 +0100 * lisp/org-id.el (org-id-locations-file): * contrib/lisp/org-track.el (org-track-directory): * lisp/org-clock.el (org-clock-persist-file): Fix hardcoded reference to "~/.emacs.d". --- contrib/lisp/org-track.el | 2 +- lisp/org-clock.el | 2 +- lisp/org-id.el | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-track.el b/contrib/lisp/org-track.el index d058135..a44472e 100644 --- a/contrib/lisp/org-track.el +++ b/contrib/lisp/org-track.el @@ -72,7 +72,7 @@ time to time." :version "22.1" :group 'org) -(defcustom org-track-directory "~/.emacs.d/org/lisp" +(defcustom org-track-directory (concat user-emacs-directory "org/lisp") "Directory where your org-mode/ directory lives. If that directory does not exist, it will be created." :type 'directory) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 823eac8..92168bc 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -194,7 +194,7 @@ Emacs initialization file." (const :tag "No persistence" nil))) (defcustom org-clock-persist-file (convert-standard-filename - "~/.emacs.d/org-clock-save.el") + (concat user-emacs-directory "org-clock-save.el")) "File to save clock data to." :group 'org-clock :type 'string) diff --git a/lisp/org-id.el b/lisp/org-id.el index 5d8e5b0..b35ea5e 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -186,7 +186,7 @@ the link." :type 'boolean) (defcustom org-id-locations-file (convert-standard-filename - "~/.emacs.d/.org-id-locations") + (concat user-emacs-directory ".org-id-locations")) "The file for remembering in which file an ID was defined. This variable is only relevant when `org-id-track-globally' is set." :group 'org-id -- 1.8.1