aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-25 18:57:29 -0500
committerSean Allred <code@seanallred.com>2014-11-25 18:57:29 -0500
commit3a16159966ca345eb3ac81e9c61e1d18cd018e29 (patch)
tree6ebb2053bc88802216b1f481d9595bf006b6dd1e
parent6cf8215b3ea3bae581d0f423906fc88314939a27 (diff)
parent624e18694f28314e5efe4d4bed347eefbf4232d8 (diff)
Merge pull request #89 from vermiculus/make-clear-cache-interactive
Make invalidate-all interactive
-rw-r--r--sx-cache.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/sx-cache.el b/sx-cache.el
index 7ff7f7f..07352d0 100644
--- a/sx-cache.el
+++ b/sx-cache.el
@@ -89,8 +89,11 @@ re-initialize the cache."
Afterwards reinitialize caches using `sx-initialize'. If
SAVE-AUTH is non-nil, do not clear AUTH cache.
+Interactively only clear AUTH cache if prefix arg was given.
+
Note: This will also remove read/unread status of questions as well
as delete the list of hidden questions."
+ (interactive (list (not current-prefix-arg)))
(let* ((default-directory sx-cache-directory)
(caches (file-expand-wildcards "*.el")))
(when save-auth