unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Danjou <julien@danjou.info>
To: Naoya Yamashita <conao3@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Add oauth2 customize group (resolve FIXME)
Date: Fri, 19 Feb 2021 11:17:08 +0100	[thread overview]
Message-ID: <m2o8ggz7iz.fsf@danjou.info> (raw)
In-Reply-To: <20210219.101653.1338518986357974746.conao3@gmail.com> (Naoya Yamashita's message of "Fri, 19 Feb 2021 10:16:53 +0900 (JST)")

On Fri, Feb 19 2021, Naoya Yamashita wrote:

Thanks Naoya.

I pushed your change.

> Hi, thanks for maintaining such a great project!
>
> I find oauth2 ELPA package and also find a easy FIXME comment.
> This patch add a new group and changed all customization
> variables to belong to it.
>
> Regards,
> Naoya
>
> From b6619724abc1f268eb3b68bc9077f899f9d70bea Mon Sep 17 00:00:00 2001
> From: Naoya Yamashita <conao3@gmail.com>
> Date: Fri, 19 Feb 2021 09:56:48 +0900
> Subject: [PATCH] * packages/oauth2/oauth2.el: Add oauth2 group and use it
>
> (oauth2): New group.
> (oauth2-token-file): Belongs to it.
> ---
>  oauth2.el | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/oauth2.el b/oauth2.el
> index 43c4e9e4d4..43e48c1dbe 100644
> --- a/oauth2.el
> +++ b/oauth2.el
> @@ -47,6 +47,12 @@
>  (defvar url-callback-arguments)
>  (defvar url-callback-function)
>  
> +(defgroup oauth2 nil
> +  "OAuth 2.0 Authorization Protocol."
> +  :group 'comm
> +  :link '(url-link :tag "Savannah" "http://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/?h=externals/oauth2")
> +  :link '(url-link :tag "ELPA" "https://elpa.gnu.org/packages/oauth2.html"))
> +
>  (defun oauth2-request-authorization (auth-url client-id &optional scope state redirect-uri)
>    "Request OAuth authorization at AUTH-URL by launching `browse-url'.
>  CLIENT-ID is the client id provided by the provider.
> @@ -149,8 +155,7 @@ TOKEN should be obtained with `oauth2-request-access'."
>  
>  (defcustom oauth2-token-file (concat user-emacs-directory "oauth2.plstore")
>    "File path where store OAuth tokens."
> -  ;; FIXME: This var doesn't belong to any group.  Either add it to some
> -  ;; pre-existing group or create an `oauth2' group for it.
> +  :group 'oauth2
>    :type 'file)
>  
>  (defun oauth2-compute-id (auth-url token-url scope)

-- 
Julien Danjou
/* Free Software hacker
   https://julien.danjou.info */



  reply	other threads:[~2021-02-19 10:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19  1:16 Add oauth2 customize group (resolve FIXME) Naoya Yamashita
2021-02-19 10:17 ` Julien Danjou [this message]
2021-02-19 11:13   ` Naoya Yamashita
2021-02-19 15:14     ` Stefan Monnier
2021-02-19 16:57       ` Naoya Yamashita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2o8ggz7iz.fsf@danjou.info \
    --to=julien@danjou.info \
    --cc=conao3@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).