diff options
author | Sean Allred <code@seanallred.com> | 2014-12-26 16:40:30 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-26 16:40:30 -0500 |
commit | 31a3e357261641228186692ab3a9ac0a053d197b (patch) | |
tree | d0034517510342d3f261b0e6dd089be3bedcd330 | |
parent | fb52d842299e1826915bcae5c6fbb6e0e1f617ec (diff) |
Simpler syntax for quoted cons cells
-rw-r--r-- | sx.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |