]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't hard-code "~/.emacs.d/" in two more places
authorStefan Kangas <stefan@marxist.se>
Mon, 19 Apr 2021 07:50:13 +0000 (09:50 +0200)
committerStefan Kangas <stefan@marxist.se>
Mon, 19 Apr 2021 07:50:13 +0000 (09:50 +0200)
* 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
lisp/progmodes/js.el

index 423b180408a5f2f1f137234e247c92342a54879e..8c62c9424de867066c2fac7ad1c656fcf0aa9a3f 100644 (file)
@@ -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)
index eb690a72f6edb3ac40974c7618725456b6af2f16..6d6063d783cfc2fc392dc2438b330240496304db 100644 (file)
@@ -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'.