aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 15:31:22 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 15:31:22 -0200
commit6c20202ad50aeba70290de860bd1f5feb944c955 (patch)
treec8467c8dc86f16f190d80f2126967a506e7d95fe
parent93573c854da4c502ccca676c1dd70bf680ab1036 (diff)
Don't rely on the new feature.
This is to avoid a bug in package.el which only gets fixed in Emacs 25 Unfortunately, there's no safe way to use a new feature offered by a previously defined macro, because files were not reloaded on upgrade. After a couple of weeks, once we can expect most of our users to have restarted Emacs at least once since the last upgrade, we can start relying on this new feature.
-rw-r--r--sx.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx.el b/sx.el
index 9a5a6a0..be37766 100644
--- a/sx.el
+++ b/sx.el
@@ -72,7 +72,7 @@ with a `link' property)."
(let-alist data
(unless .site_par
(setcdr data (cons (cons 'site_par
- (or .site.api_site_parameter
+ (or (cdr (assq 'api_site_parameter .site))
(sx--site data)))
(cdr data)))))
data))