branch: externals/hyperbole
commit be61c59315a5a5bceca783b1062af0397f2d0afb
Author: bw <[email protected]>
Commit: bw <[email protected]>
hyrolo-mode - Make the match buffer's 'hyrolo-mode' a special mode
HyWiki buttons will never be active therein since every name
would trigger as a new, potential HyWiki word.
---
ChangeLog | 6 ++++++
hyrolo.el | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index da3c001285..f52d605d39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-02-28 Bob Weiner <[email protected]>
+
+* hyrolo.el (hyrolo-mode): Make the match buffer's 'hyrolo-mode' a special
+ mode. HyWiki buttons will never be active therein since every name
+ would trigger as a new, potential HyWiki word.
+
2026-02-28 Mats Lidell <[email protected]>
* test/hywiki-tests.el (hywiki-tests--get-page-headings):
diff --git a/hyrolo.el b/hyrolo.el
index a6f7a07211..d291a97bb1 100644
--- a/hyrolo.el
+++ b/hyrolo.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 7-Jun-89 at 22:08:29
-;; Last-Mod: 30-Dec-25 at 14:42:32 by Mats Lidell
+;; Last-Mod: 28-Feb-26 at 23:10:24 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -2253,6 +2253,8 @@ Calls the functions given by `hyrolo-mode-hook'.
\\{hyrolo-mode-map}"
(interactive)
(unless (eq major-mode 'hyrolo-mode)
+ ;; The mode controls the data in its buffers and it is non-editable
+ (put 'hyrolo-mode 'mode-class 'special)
(push (cons (substring hyrolo-hdr-regexp 1) 1) outline-heading-alist)
(push (cons (if (boundp 'hbut:source-prefix)
hbut:source-prefix