diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-11-09 07:51:18 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-11-09 07:51:27 +0100 |
commit | 104e90d93664892ed1a7a1631c5b0141d0552a60 (patch) | |
tree | b4188b053b2a8c63328429bb766947214f4112f2 /lisp/cmuscheme.el | |
parent | c9fd83e3034ddd1e2d1a8eeafc7f12d6e3df5249 (diff) | |
download | emacs-104e90d93664892ed1a7a1631c5b0141d0552a60.tar.gz emacs-104e90d93664892ed1a7a1631c5b0141d0552a60.tar.bz2 emacs-104e90d93664892ed1a7a1631c5b0141d0552a60.zip |
Prefer locate-user-emacs-file
* lisp/cmuscheme.el (scheme-start-file):
* lisp/erc/erc.el (erc-startup-file-list):
* lisp/net/nsm.el (nsm-settings-file):
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
* lisp/org/org-clock.el (org-clock-persist-file):
* lisp/org/org-id.el (org-id-locations-file)
* lisp/shell.el (shell): Prefer 'locate-user-emacs-file' to fiddling
with 'user-emacs-directory' directly.
Diffstat (limited to 'lisp/cmuscheme.el')
-rw-r--r-- | lisp/cmuscheme.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el index e197069d6b8..47113ad8c2e 100644 --- a/lisp/cmuscheme.el +++ b/lisp/cmuscheme.el @@ -245,7 +245,8 @@ Search in the directories \"~\" and `user-emacs-directory', in this order. Return nil if no start file found." (let* ((progname (file-name-nondirectory prog)) (start-file (concat "~/.emacs_" progname)) - (alt-start-file (concat user-emacs-directory "init_" progname ".scm"))) + (alt-start-file (locate-user-emacs-file + (concat "init_" progname ".scm")))) (if (file-exists-p start-file) start-file (and (file-exists-p alt-start-file) alt-start-file)))) |