[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/url-http-oauth 7c415002dd: url-http-oauth.el: Don't loa
From: |
Stefan Monnier |
Subject: |
[elpa] externals/url-http-oauth 7c415002dd: url-http-oauth.el: Don't load `url-auth` during startup |
Date: |
Fri, 14 Mar 2025 12:20:53 -0400 (EDT) |
branch: externals/url-http-oauth
commit 7c415002dd34e46f23a944acca738c3ec19d6808
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
url-http-oauth.el: Don't load `url-auth` during startup
---
url-http-oauth.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/url-http-oauth.el b/url-http-oauth.el
index a13d292053..8f311b269e 100644
--- a/url-http-oauth.el
+++ b/url-http-oauth.el
@@ -1,9 +1,10 @@
;;; url-http-oauth.el --- OAuth 2.0 for URL library -*- lexical-binding: t -*-
-;; Copyright (C) 2023 Free Software Foundation, Inc.
+;; Copyright (C) 2023, 2025 Free Software Foundation, Inc.
;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
;; Version: 0.8.3
+;; Package-Requires: ((emacs "24.4"))
;; Keywords: comm, data, processes, hypermedia
;; This program is free software; you can redistribute it and/or modify
@@ -561,7 +562,11 @@ permissions that the caller is requesting."
;;; Register `url-oauth-auth' HTTP authentication method.
;;;###autoload
-(url-register-auth-scheme "oauth" nil 9)
+(with-eval-after-load 'url-auth
+ ;; Delay the evaluation to after `url-auth' is loaded, since loading
+ ;; `url-auth' loads a crapload of other packages that we just don't need
+ ;; at startup.
+ (url-register-auth-scheme "oauth" nil 9))
(provide 'url-http-oauth)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/url-http-oauth 7c415002dd: url-http-oauth.el: Don't load `url-auth` during startup,
Stefan Monnier <=