diff options
author | Sean Allred <code@seanallred.com> | 2014-11-14 22:03:31 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-14 22:03:31 -0500 |
commit | 6733365df0eb86eff433a9c8f80b32832c426e53 (patch) | |
tree | a8091b37b285e3281511da306e96b94b1742778d /sx.el | |
parent | 3cb483821a9c7e852324af224b93dca4bd855b03 (diff) | |
parent | 7881572c09281785c1d0303d13305b583b3803cd (diff) |
Merge pull request #53 from vermiculus/network-list
Smart caching
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -120,6 +120,13 @@ Run after `sx-init--internal-hook'.") This is used internally to set initial values for variables such as filters.") +(defun sx--< (property x y &optional pred) + "Non-nil if PROPERTY attribute of question X is less than that of Y. +With optional argument predicate, use it instead of `<'." + (funcall (or pred #'<) + (cdr (assoc property x)) + (cdr (assoc property y)))) + (defmacro sx-init-variable (variable value &optional setter) "Set VARIABLE to VALUE using SETTER. SETTER should be a function of two arguments. If SETTER is nil, |