[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 07bb2cb: Don't hard-code "~/.emacs.d/" in two more places
From: |
Stefan Kangas |
Subject: |
master 07bb2cb: Don't hard-code "~/.emacs.d/" in two more places |
Date: |
Mon, 19 Apr 2021 03:52:21 -0400 (EDT) |
branch: master
commit 07bb2cbf5558d3ec048ab02be95060aa6efceff5
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Don't hard-code "~/.emacs.d/" in two more places
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
* lisp/progmodes/js.el (js-js-tmpdir): Don't hard-code
"~/.emacs.d/".
---
lisp/gnus/gnus-group.el | 3 ++-
lisp/progmodes/js.el | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 423b180..8c62c94 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2462,7 +2462,8 @@ the ephemeral group."
(with-temp-file tmpfile
(mm-disable-multibyte)
(dolist (id ids)
- (let ((file (concat "~/.emacs.d/debbugs-cache/" id)))
+ (let ((file (expand-file-name id (locate-user-emacs-file
+ "debbugs-cache"))))
(if (and (not gnus-plugged)
(file-exists-p file))
(insert-file-contents file)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index eb690a7..6d6063d 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -494,10 +494,11 @@ for preventing Firefox from stealing the keyboard focus."
:type 'boolean)
(defcustom js-js-tmpdir
- "~/.emacs.d/js/js"
+ (locate-user-emacs-file "js/js")
"Temporary directory used by `js-mode' to communicate with Mozilla.
This directory must be readable and writable by both Mozilla and Emacs."
- :type 'directory)
+ :type 'directory
+ :version "28.1")
(defcustom js-js-timeout 5
"Reply timeout for executing commands in Mozilla via `js-mode'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 07bb2cb: Don't hard-code "~/.emacs.d/" in two more places,
Stefan Kangas <=