From 79c03c20d14ddfe546c9f612bd9c8b1b1cb00b2c Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Fri, 12 Dec 2014 15:12:54 +0000 Subject: Autoload sx-authenticate This also removes the sx-authenticate alias and renames sx-auth-authenticate to sx-authenticate. I did this because I felt it wasn't helpful to have both. Whenever I hit `M-x sx-au ` the only completions offered were two identical, but differently named, commands. That's useless at best, confusing at worst. --- sx-auth.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sx-auth.el') 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." -- cgit v1.2.3