aboutsummaryrefslogtreecommitdiff
path: root/sx-question-list.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-12-03 17:55:52 -0500
committerSean Allred <code@seanallred.com>2014-12-03 17:55:52 -0500
commit67b60ea558f0386a1ea3dadcf3a9c4d22d398620 (patch)
tree8695418c51779333101b45aad180e6979a6e2ad0 /sx-question-list.el
parent48314a1227cca288731a48a7f07558654a953d9d (diff)
parent90d3a20ee3ac0a98e8d26cd9cf203e113acdbdce (diff)
Merge pull request #129 from vermiculus/answering
Implement asking, answering, and editing.
Diffstat (limited to 'sx-question-list.el')
-rw-r--r--sx-question-list.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index e2eb2b6..c5c32d9 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -263,9 +263,9 @@ into consideration.
;; it's not terribly intuitive.
(setq tabulated-list-sort-key nil)
(add-hook 'tabulated-list-revert-hook
- #'sx-question-list-refresh nil t)
+ #'sx-question-list-refresh nil t)
(add-hook 'tabulated-list-revert-hook
- #'sx-question-list--update-mode-line nil t)
+ #'sx-question-list--update-mode-line nil t)
(tabulated-list-init-header))
(defcustom sx-question-list-date-sort-method 'last_activity_date
@@ -297,6 +297,7 @@ into consideration.
("g" sx-question-list-refresh)
(":" sx-question-list-switch-site)
("t" sx-question-list-switch-tab)
+ ("a" sx-ask)
("v" sx-visit)
("u" sx-toggle-upvote)
("d" sx-toggle-downvote)
@@ -397,7 +398,11 @@ a new list before redisplaying."
(setq tabulated-list-entries
(mapcar sx-question-list--print-function
(cl-remove-if #'sx-question--hidden-p question-list)))
- (when redisplay (tabulated-list-print 'remember))
+ (when redisplay
+ (tabulated-list-print 'remember)
+ ;; Display weird chars correctly
+ (set-buffer-multibyte nil)
+ (set-buffer-multibyte t))
(when window
(set-window-start window old-start)))
(sx-message "Done."))