Subject: bug#79242: [PATCH 1/8] Use `locate-user-emacs-file' instead of concat user-emacs-directory

From: Xiyue Deng <[email-masked]>
Date: Fri, 15 Aug 2025 03:06:07 -0700

* packages/oauth2/oauth2.el (oauth2-token-file): Use
locate-user-emacs-file.
---
 oauth2.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oauth2.el b/oauth2.el
index c4b4d71585..0da4883bc3 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -56,7 +56,7 @@
                    "https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/?h=externals/oauth2")
   :link '(url-link :tag "ELPA" "https://elpa.gnu.org/packages/oauth2.html"))
 
-(defcustom oauth2-token-file (concat user-emacs-directory "oauth2.plstore")
+(defcustom oauth2-token-file (locate-user-emacs-file "oauth2.plstore")
   "File path where store OAuth tokens."
   :group 'oauth2
   :type 'file)
-- 
2.47.2