diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 423b180408a..8c62c9424de 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 eb690a72f6e..6d6063d783c 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'.