aboutsummaryrefslogtreecommitdiff
path: root/sx-auth.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-04 21:22:42 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-04 21:28:35 -0200
commita812b209b24401827a7020051ac3726358795231 (patch)
tree38cb684bbca345c401ef37d524e7dfe31eea942d /sx-auth.el
parentd3417ee55acc35a14ed71ccd69a593cfed3796bb (diff)
Use defconst instead of defvar where appropriate.
Fix #200
Diffstat (limited to 'sx-auth.el')
-rw-r--r--sx-auth.el64
1 files changed, 33 insertions, 31 deletions
diff --git a/sx-auth.el b/sx-auth.el
index 686aa0c..cba310d 100644
--- a/sx-auth.el
+++ b/sx-auth.el
@@ -47,32 +47,33 @@ what you are doing!
This variable is set with `sx-auth-authenticate'.")
-(defvar sx-auth-method-auth '((me . t)
- (inbox . t)
- (notifications . t)
- (events . t)
- (posts (comments add))
- (comments delete
- edit
- flags
- upvote)
- (answers accept
- delete
- downvote
- edit
- flags
- upvote)
- (questions answers
- add
- close
- delete
- downvote
- edit
- favorite
- flags
- render
- upvote
- (unanswered my-tags)))
+(defconst sx-auth-method-auth
+ '((me . t)
+ (inbox . t)
+ (notifications . t)
+ (events . t)
+ (posts (comments add))
+ (comments delete
+ edit
+ flags
+ upvote)
+ (answers accept
+ delete
+ downvote
+ edit
+ flags
+ upvote)
+ (questions answers
+ add
+ close
+ delete
+ downvote
+ edit
+ favorite
+ flags
+ render
+ upvote
+ (unanswered my-tags)))
"List of methods that require auth.
Methods are of the form \(METHOD . SUBMETHODS) where SUBMETHODS
is \(METHOD METHOD METHOD ...).
@@ -80,11 +81,12 @@ Methods are of the form \(METHOD . SUBMETHODS) where SUBMETHODS
If all SUBMETHODS require auth or there are no submethods, form
will be \(METHOD . t)")
-(defvar sx-auth-filter-auth '(question.upvoted
- question.downvoted
- answer.upvoted
- answer.downvoted
- comment.upvoted)
+(defconst sx-auth-filter-auth
+ '(question.upvoted
+ question.downvoted
+ answer.upvoted
+ answer.downvoted
+ comment.upvoted)
"List of filter types that require auth.
Keywords are of the form \(OBJECT TYPES) where TYPES is \(FILTER
FILTER FILTER).")