aboutsummaryrefslogtreecommitdiff
path: root/sx-question-list.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-25 21:24:00 -0500
committerSean Allred <code@seanallred.com>2014-11-25 21:24:00 -0500
commit49a68e2c95dd72871a232e2601088c375a6b154f (patch)
treed29eabd7ba9102099e0d852c16843b0ebf20c107 /sx-question-list.el
parent3a16159966ca345eb3ac81e9c61e1d18cd018e29 (diff)
parent8a46c6f7d6c862eaac43cc3b9d70c5c25d575f2c (diff)
Merge pull request #91 from vermiculus/move-some-macros-to-sx
Move some macros to sx
Diffstat (limited to 'sx-question-list.el')
-rw-r--r--sx-question-list.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index fc6d16c..ce6c1d6 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -287,7 +287,7 @@ into consideration.
("K" sx-question-list-previous-far)
("g" sx-question-list-refresh)
(":" sx-question-list-switch-site)
- ("v" sx-question-list-visit)
+ ("v" sx-visit)
("h" sx-question-list-hide)
("m" sx-question-list-mark-read)
([?\r] sx-question-list-display-question)))
@@ -383,16 +383,6 @@ a new list before redisplaying."
(cl-remove-if #'sx-question--hidden-p question-list))))
(when redisplay (tabulated-list-print 'remember)))
-(defun sx-question-list-visit (&optional data)
- "Visits question under point (or from DATA) using `browse-url'."
- (interactive)
- (unless data (setq data (tabulated-list-get-id)))
- (unless data (error "No question here!"))
- (sx-assoc-let data
- (browse-url .link))
- (sx-question--mark-read data)
- (sx-question-list-refresh 'redisplay 'no-update))
-
(defcustom sx-question-list-ago-string " ago"
"String appended to descriptions of the time since something happened.
Used in the questions list to indicate a question was updated