aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-05-11 17:31:43 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-05-11 17:31:43 +0100
commit030a2e4d8e4fc08b0055ecfb7ff0cf045cbf858f (patch)
treed870f280d5ca70ec9b015bd647df326ffa7aa8f9
parent24761d2e63f14f27ab9eacd909e8cf15889d7a0f (diff)
Fix bug when tabulated-list-use-header-line is nil
-rw-r--r--sx-question-list.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index 61841f8..ea91045 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -404,7 +404,11 @@ into consideration. The same holds for `sx-question-list--order'.
;; 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)
+ ;; This is the default value, but we'll error out if the user has
+ ;; set it to nil.
+ (setq tabulated-list-use-header-line t)
+ (tabulated-list-init-header)
(setq header-line-format sx-question-list--header-line))
(defcustom sx-question-list-date-sort-method 'last_activity_date