From 5526b57121df84a9db6fd8f14771b01ee2e2cddc Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Mon, 12 Jun 2023 20:18:38 -0400 Subject: [PATCH 4/4] Add 'debbugs-gnu-rescan' to 'tabulated-list-revert-hook'. This now fetches new bugs when the buffer is reverted. * debbugs-gnu.el (debbugs-gnu-mode): Add 'debbugs-gnu-rescan' to 'tabulated-list-revert-hook'. --- debbugs-gnu.el | 1 + 1 file changed, 1 insertion(+) diff --git a/debbugs-gnu.el b/debbugs-gnu.el index c65ea3e827..df651f3f2f 100644 --- a/debbugs-gnu.el +++ b/debbugs-gnu.el @@ -1221,6 +1221,7 @@ Interactively, it is non-nil with the prefix argument." ("Title" 10 debbugs-gnu-sort-title)]) (setq tabulated-list-sort-key (cons "Id" nil)) (setq tabulated-list-printer #'debbugs-gnu-print-entry) + (add-hook 'tabulated-list-revert-hook #'debbugs-gnu-rescan nil t) (buffer-disable-undo) (setq truncate-lines t) (setq buffer-read-only t)) -- 2.40.1