GNU bug report logs - #79168
30.1; Proposed changes for oauth2

Previous Next

Package: emacs;

Reported by: Xiyue Deng <manphiz <at> gmail.com>

Date: Mon, 4 Aug 2025 00:00:01 UTC

Severity: normal

Found in version 30.1

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Full log


View this message in rfc822 format

From: Xiyue Deng <manphiz <at> gmail.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 79168 <at> debbugs.gnu.org
Subject: bug#79168: [PATCH 03/11] Reorder code to put defcustom/defvar at the beginning part
Date: Sat, 09 Aug 2025 15:23:45 -0700
[Message part 1 (text/plain, inline)]
Hi Robert,

Robert Pluim <rpluim <at> gmail.com> writes:

>>>>>> On Fri,  8 Aug 2025 23:45:42 -0700, Xiyue Deng <manphiz <at> gmail.com> said:
>
>     Xiyue> (Adapted from bug#52476 by Aleksandr Vityazev.)
>     Xiyue> * packages/oauth2/oauth2.el: Put oauth2-token-file,
>     Xiyue> oauth2--url-advice, and oauth--token-data to the beginning part of the
>     Xiyue> source code.
>     Xiyue> ---
>     Xiyue>  oauth2.el | 16 ++++++++--------
>     Xiyue>  1 file changed, 8 insertions(+), 8 deletions(-)
>
>     Xiyue> diff --git a/oauth2.el b/oauth2.el
>     Xiyue> index c3aa45ed69..eccf439130 100644
>     Xiyue> --- a/oauth2.el
>     Xiyue> +++ b/oauth2.el
>     Xiyue> @@ -53,9 +53,17 @@
>     Xiyue>    :link '(url-link :tag "Savannah" "https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/?h=externals/oauth2")
>     Xiyue>    :link '(url-link :tag "ELPA" "https://elpa.gnu.org/packages/oauth2.html"))
>  
>     Xiyue> +(defcustom oauth2-token-file (concat user-emacs-directory "oauth2.plstore")
>     Xiyue> +  "File path where store OAuth tokens."
>     Xiyue> +  :group 'oauth2
>     Xiyue> +  :type 'file)
>     Xiyue> +
>
> This should use `locate-user-emacs-file'.

Ah indeed.  Please see the attached patch.

>
>
> Robert
> -- 

-- 
Regards,
Xiyue Deng
[0001-Use-locate-user-emacs-file-instead-of-concat-user-em.patch (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.