Skip to content

Commit f99a8ea

Browse files
skangaskyleam
authored andcommitted
Backport commit 104e90d93 from Emacs
* lisp/org-clock.el (org-clock-persist-file): * lisp/org-id.el (org-id-locations-file): Prefer 'locate-user-emacs-file' to fiddling with 'user-emacs-directory' directly. Prefer locate-user-emacs-file 104e90d93664892ed1a7a1631c5b0141d0552a60 Stefan Kangas Tue Nov 9 07:51:27 2021 +0100
1 parent c7e1bbf commit f99a8ea

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lisp/org-clock.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ Emacs initialization file."
219219
(const :tag "Clock and history" t)
220220
(const :tag "No persistence" nil)))
221221

222-
(defcustom org-clock-persist-file (convert-standard-filename
223-
(concat user-emacs-directory "org-clock-save.el"))
222+
(defcustom org-clock-persist-file (locate-user-emacs-file "org-clock-save.el")
224223
"File to save clock data to."
225224
:group 'org-clock
226225
:type 'string)

lisp/org-id.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ the link."
196196
:group 'org-id
197197
:type 'boolean)
198198

199-
(defcustom org-id-locations-file (convert-standard-filename
200-
(concat user-emacs-directory ".org-id-locations"))
199+
(defcustom org-id-locations-file (locate-user-emacs-file ".org-id-locations")
201200
"The file for remembering in which file an ID was defined.
202201
This variable is only relevant when `org-id-track-globally' is set."
203202
:group 'org-id

0 commit comments

Comments
 (0)