branch: externals/hyperbole
commit e9e46877d9eb45a64eebc17114a1b3afb84d3dec
Author: bw <[email protected]>
Commit: bw <[email protected]>
-DEMO - Change TOC leader char from '*' to '-'
- Prevents interference with section matches in tests.
---
ChangeLog | 3 +++
DEMO | 26 +++++++++++++-------------
test/hibtypes-tests.el | 4 ++--
test/hmouse-drv-tests.el | 4 ++--
4 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6f037ad58a7..c264d069bfe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2026-10-22 Bob Weiner <[email protected]>
+* DEMO: Change TOC leader char from '*' to '-' to prevent interference
+ with section matches in tests.
+
* hibtypes.el (text-toc): Update doc to reflect different leader
chars that can start a TOC entry. The section an entry
matches to must start with the same number of * or # chars.
diff --git a/DEMO b/DEMO
index a446d3d5c19..ea300463ce9 100644
--- a/DEMO
+++ b/DEMO
@@ -4,19 +4,19 @@
Table of Contents
-----------------
- * Introduction
- * Smart Keys
- * Koutliner
- * HyControl
- * HyRolo
- * History
- * Implicit Buttons
- * Explicit Buttons
- * Button Files
- * Global Buttons
- * Smart Mouse Keys
- * Epilog
- * References
+ - Introduction
+ - Smart Keys
+ - Koutliner
+ - HyControl
+ - HyRolo
+ - History
+ - Implicit Buttons
+ - Explicit Buttons
+ - Button Files
+ - Global Buttons
+ - Smart Mouse Keys
+ - Epilog
+ - References
* Introduction
diff --git a/test/hibtypes-tests.el b/test/hibtypes-tests.el
index f54ca8fa02a..4b3932371c5 100644
--- a/test/hibtypes-tests.el
+++ b/test/hibtypes-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <[email protected]>
;;
;; Orig-Date: 20-Feb-21 at 23:45:00
-;; Last-Mod: 17-Oct-26 at 23:50:16 by Bob Weiner
+;; Last-Mod: 22-Oct-26 at 02:02:37 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -275,7 +275,7 @@
(let ((enable-local-variables nil))
(hypb:display-file-with-logo "DEMO")
(goto-char (point-min))
- (re-search-forward " \\* Koutl")
+ (re-search-forward " - Koutl")
(ibtypes::text-toc)
(should (bolp))
(should (looking-at "^[ \t]*\\* Koutliner")))
diff --git a/test/hmouse-drv-tests.el b/test/hmouse-drv-tests.el
index 4e26fad0d44..e1b44b18f79 100644
--- a/test/hmouse-drv-tests.el
+++ b/test/hmouse-drv-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <[email protected]>
;;
;; Orig-Date: 28-Feb-21 at 22:52:00
-;; Last-Mod: 30-Jul-26 at 14:23:29 by Bob Weiner
+;; Last-Mod: 22-Oct-26 at 02:03:11 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -517,7 +517,7 @@
(let ((enable-local-variables nil))
(hypb:display-file-with-logo "DEMO")
(goto-char (point-min))
- (re-search-forward "^[ \t]*\\* Koutl")
+ (re-search-forward "^[ \t]*- Koutl")
(action-key)
(should (hattr:ibtype-is-p 'text-toc))
(should (bolp))