diff options
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/nsm.el | 3 | ||||
-rw-r--r-- | lisp/net/tramp-crypt.el | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el index 2ac1df1d58a..b067b23f8ff 100644 --- a/lisp/net/nsm.el +++ b/lisp/net/nsm.el @@ -79,8 +79,7 @@ option." (const :tag "Off" nil) (function :tag "Custom function"))) -(defcustom nsm-settings-file (expand-file-name "network-security.data" - user-emacs-directory) +(defcustom nsm-settings-file (locate-user-emacs-file "network-security.data") "The file the security manager settings will be stored in." :version "25.1" :type 'file) diff --git a/lisp/net/tramp-crypt.el b/lisp/net/tramp-crypt.el index 5def3a4137c..269560bfa94 100644 --- a/lisp/net/tramp-crypt.el +++ b/lisp/net/tramp-crypt.el @@ -293,9 +293,8 @@ arguments to pass to the OPERATION." (defun tramp-crypt-config-file-name (vec) "Return the encfs config file name for VEC." - (expand-file-name - (concat "tramp-" (tramp-file-name-host vec) tramp-crypt-encfs-config) - user-emacs-directory)) + (locate-user-emacs-file + (concat "tramp-" (tramp-file-name-host vec) tramp-crypt-encfs-config))) (defun tramp-crypt-maybe-open-connection (vec) "Maybe open a connection VEC. |