branch: externals/hyperbole
commit e6ab3c268fd0b0ca188e081e8966dbb272ebf86f
Author: bw <[email protected]>
Commit: bw <[email protected]>

    hib-debbugs.el - Fix following bug#72811 format links in Emacs < 29
---
 ChangeLog      |  7 +++++++
 hib-debbugs.el | 12 ++++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 25f802fa00..490559f3df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,13 @@
     out Java handler at line 295 since it is failing.  Also, update to new
     prog-mode clause location and predicate.
 
+* hib-debbugs.el (eval-after-load "debbugs-gnu"): Fix Emacs bug#72811 that Mats
+    filed.  An infinite recursion in "debbugs-gnu" when 'debbugs-gnu-mode' is
+    invoked that occurred only in Emacs versions prior to 29 due to a
+    'debbugs-gnu-rescan' being called on 'tabulated-list-revert-hook'.  This
+    fixes Hyperbole's support for jumping to Emacs bug discussions via a link
+    like bug#72811.
+
 2025-09-09  Bob Weiner  <[email protected]>
 
 * hui-mouse.el (hkey-alist): Move 'smart-prog-tag' to before specific languages
diff --git a/hib-debbugs.el b/hib-debbugs.el
index 073bb5c450..0724f9d969 100644
--- a/hib-debbugs.el
+++ b/hib-debbugs.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    21-Jun-16 at 14:24:53
-;; Last-Mod:     16-Aug-25 at 10:01:43 by Bob Weiner
+;; Last-Mod:     14-Sep-25 at 12:33:09 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -93,7 +93,15 @@
   '(progn
      (defvar debbugs-gnu-all-packages)
      (push "hyperbole"  debbugs-gnu-all-packages)
-     (push "oo-browser" debbugs-gnu-all-packages)))
+     (push "oo-browser" debbugs-gnu-all-packages)
+     ;;
+     ;; debbugs-gnu has a bug that causes an infinite recursion in
+     ;; Emacs 27 and 28 but not versions after, so fix it here by
+     ;; removing the offending hook
+     (when (string-lessp emacs-version "29")
+       (add-hook 'after-change-major-mode-hook
+                (lambda ()
+                  (remove-hook 'tabulated-list-revert-hook 
#'debbugs-gnu-rescan t))))))
 
 ;;; ************************************************************************
 ;;; Public implicit button types

Reply via email to