aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-12-26 16:40:30 -0500
committerSean Allred <code@seanallred.com>2014-12-26 16:40:30 -0500
commit31a3e357261641228186692ab3a9ac0a053d197b (patch)
treed0034517510342d3f261b0e6dd089be3bedcd330
parentfb52d842299e1826915bcae5c6fbb6e0e1f617ec (diff)
Simpler syntax for quoted cons cells
-rw-r--r--sx.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx.el b/sx.el
index 7d67835..8913024 100644
--- a/sx.el
+++ b/sx.el
@@ -324,11 +324,11 @@ If ALIST doesn't have a `site' property, one is created using the
;; Answer
(and (or (string-match "/a/\\([0-9]+\\)/[0-9]+\\(#.*\\|\\)\\'" link)
(string-match "/questions/[0-9]+/[^/]+/\\([0-9]\\)/?\\(#.*\\|\\)\\'" link))
- (push (cons 'type 'answer) result))
+ (push '(type . answer) result))
;; Question
(and (or (string-match "/q/\\([0-9]+\\)/[0-9]+\\(#.*\\|\\)\\'" link)
(string-match "/questions/\\([0-9]+\\)/" link))
- (push (cons 'type 'question) result)))
+ (push '(type . question) result)))
(push (cons 'id (string-to-number (match-string-no-properties 1 link)))
result))
result))