emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste cc9ba3d 202/298: Begin autoloading of the webpast


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste cc9ba3d 202/298: Begin autoloading of the webpaste group
Date: Thu, 9 Dec 2021 19:00:14 -0500 (EST)

branch: elpa/webpaste
commit cc9ba3d92990a0776d2e0d5db924436cfb6cbe83
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Begin autoloading of the webpaste group
    
    This will make it much easier for the user to discover available
    options. It seems like a bad thing to autoload defcustom's but not
    defgroup's.
    
    This conclusion is based on what's have been done in haskell-mode:
    
    Here they remove their autoloads of customs because it breaks shit:
    
https://github.com/haskell/haskell-mode/commit/f0affb46b857c62d30de31a678d36e56831b775d
    
    But, what they don't remove is the autoload of the group:
    
https://github.com/haskell/haskell-mode/blob/f0affb46b857c62d30de31a678d36e56831b775d/ghc-core.el#L35
    
    So I'll assume that it's safe to autoload the group. This makes it
    possible for users to run M-x customize-group webpaste without having
    to either do a manual require or to use the mode before configuring.
    
    This is a good improvement for discoverability for new users.
---
 webpaste.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/webpaste.el b/webpaste.el
index 6ed18a6..2a9a91f 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -40,6 +40,7 @@
 
 
 
+;;;###autoload
 (defgroup webpaste nil
   "Configuration options for webpaste.el where you can define paste providers,
 provider priority for which order which provider should be tried when used."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]