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


Message #91 received at 79168 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Xiyue Deng <manphiz <at> gmail.com>
Cc: 79168 <at> debbugs.gnu.org
Subject: Re: bug#79168: [PATCH 03/11] Reorder code to put defcustom/defvar
 at the beginning part
Date: Sat, 09 Aug 2025 16:16:47 +0200
>>>>> 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'.


Robert
-- 




This bug report was last modified today.

Previous Next


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