From 030a2e4d8e4fc08b0055ecfb7ff0cf045cbf858f Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Mon, 11 May 2015 17:31:43 +0100 Subject: Fix bug when tabulated-list-use-header-line is nil --- sx-question-list.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3