aboutsummaryrefslogtreecommitdiff
path: root/sx-auth.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:53:12 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:53:12 +0000
commit678510081ece49dc8c12140e8bf4f5b543ea2cfc (patch)
tree156a64c887effbdd96d83049bcec14609885898f /sx-auth.el
parent0b766bb6f949ac583c7cbff90fc172c36795b231 (diff)
parent302b5a0cf2222973b901c7856da3920705ebe24e (diff)
Merge branch 'master' into use-let-alist
Conflicts: Cask
Diffstat (limited to 'sx-auth.el')
-rw-r--r--sx-auth.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/sx-auth.el b/sx-auth.el
index b6c0411..fca5392 100644
--- a/sx-auth.el
+++ b/sx-auth.el
@@ -80,7 +80,8 @@ will be (METHOD . t)")
Keywords are of form (OBJECT TYPES) where TYPES is (FILTER FILTER
FILTER).")
-(defun sx-auth-authenticate ()
+;;;###autoload
+(defun sx-authenticate ()
"Authenticate this application.
Authentication is required to read your personal data (such as
notifications) and to write with the API (asking and answering
@@ -126,8 +127,6 @@ parsed and displayed prominently on the page)."
(error "You must enter this code to use this client fully"))
(sx-cache-set 'auth `((access_token . ,sx-auth-access-token)))))
-(defalias 'sx-authenticate #'sx-auth-authenticate)
-
(defun sx-auth--method-p (method &optional submethod)
"Check if METHOD is one that may require authentication.
If it has `auth-required' SUBMETHODs, or no submethod, return t."