diff options
| author | Stefan Kangas | 2021-04-19 09:50:13 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-04-19 09:50:13 +0200 |
| commit | 07bb2cbf5558d3ec048ab02be95060aa6efceff5 (patch) | |
| tree | b563ad5e351761b2c4ef70a7ef1ea3516d6e0566 | |
| parent | 869e437c10e001c865a4d7e3d79deffb76456539 (diff) | |
| download | emacs-07bb2cbf5558d3ec048ab02be95060aa6efceff5.tar.gz emacs-07bb2cbf5558d3ec048ab02be95060aa6efceff5.zip | |
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/".
| -rw-r--r-- | lisp/gnus/gnus-group.el | 3 | ||||
| -rw-r--r-- | 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 423b180408a..8c62c9424de 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -2462,7 +2462,8 @@ the ephemeral group." | |||
| 2462 | (with-temp-file tmpfile | 2462 | (with-temp-file tmpfile |
| 2463 | (mm-disable-multibyte) | 2463 | (mm-disable-multibyte) |
| 2464 | (dolist (id ids) | 2464 | (dolist (id ids) |
| 2465 | (let ((file (concat "~/.emacs.d/debbugs-cache/" id))) | 2465 | (let ((file (expand-file-name id (locate-user-emacs-file |
| 2466 | "debbugs-cache")))) | ||
| 2466 | (if (and (not gnus-plugged) | 2467 | (if (and (not gnus-plugged) |
| 2467 | (file-exists-p file)) | 2468 | (file-exists-p file)) |
| 2468 | (insert-file-contents file) | 2469 | (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." | |||
| 494 | :type 'boolean) | 494 | :type 'boolean) |
| 495 | 495 | ||
| 496 | (defcustom js-js-tmpdir | 496 | (defcustom js-js-tmpdir |
| 497 | "~/.emacs.d/js/js" | 497 | (locate-user-emacs-file "js/js") |
| 498 | "Temporary directory used by `js-mode' to communicate with Mozilla. | 498 | "Temporary directory used by `js-mode' to communicate with Mozilla. |
| 499 | This directory must be readable and writable by both Mozilla and Emacs." | 499 | This directory must be readable and writable by both Mozilla and Emacs." |
| 500 | :type 'directory) | 500 | :type 'directory |
| 501 | :version "28.1") | ||
| 501 | 502 | ||
| 502 | (defcustom js-js-timeout 5 | 503 | (defcustom js-js-timeout 5 |
| 503 | "Reply timeout for executing commands in Mozilla via `js-mode'. | 504 | "Reply timeout for executing commands in Mozilla via `js-mode'. |