aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-17 10:38:23 -0500
committerSean Allred <code@seanallred.com>2015-01-17 10:38:23 -0500
commitc53aa1d833a3f8b4b2b51636f7bd8283b968baa0 (patch)
treeba02bb4248f0fcef8965090e4412bf0a2355496e /sx.el
parent8fb868bef68337bf2b5539fbc3be2ceb42a4825a (diff)
parentfdd4e7064fa3de8f62d81bceb99901d5765c4e5a (diff)
Merge pull request #236 from vermiculus/vermiculus/sort-answers
Prune useless progn form
Diffstat (limited to 'sx.el')
-rw-r--r--sx.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/sx.el b/sx.el
index e9cd01d..e0609a7 100644
--- a/sx.el
+++ b/sx.el
@@ -330,14 +330,11 @@ ID is an integer."
COMPARE-FUNC is a function that takes the return value of
GET-FUNC and performs the actual comparison."
(declare (indent 1) (doc-string 2))
- `(progn
- ;; In using `defalias', the macro supports both function
- ;; symbols and lambda expressions.
- (defun ,name (a b)
- ,doc
- (funcall ,compare-func
- (funcall ,get-func a)
- (funcall ,get-func b)))))
+ `(defun ,name (a b)
+ ,doc
+ (funcall ,compare-func
+ (funcall ,get-func a)
+ (funcall ,get-func b))))
;;; Printing request data