[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole a8cdad694b 141/143: Fix `hyrolo-min-matched-l
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole a8cdad694b 141/143: Fix `hyrolo-min-matched-level' and hyrolo-top-level test |
Date: |
Mon, 19 Feb 2024 15:59:28 -0500 (EST) |
branch: externals/hyperbole
commit a8cdad694bd3b616fbd6f5f7fc0c6b7d63cca0f7
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
Fix `hyrolo-min-matched-level' and hyrolo-top-level test
This fixes hyrolo-top-level which was displaying non-top-level entries
---
ChangeLog | 7 +++++++
hyrolo.el | 4 ++--
test/hyrolo-tests.el | 3 +--
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e23d607716..4cb7a544d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
2024-02-19 Bob Weiner <rsw@gnu.org>
+
* hyrolo.el (hyrolo-mode): Set these two missing variables:
'hyrolo-entry-group-number' and 'hyrolo-entry-trailing-space-group-number'.
+ (hyrolo-outline-level): Fix to use the length of match to
+ 'hyrolo-entry-group-number'.
+ (hyrolo-min-matched-level): Fix 'hyrolo-top-level'. First
+ 'outline-regexp' match was ignored when computing min-level; fix to
include.
+ test/hyrolo-tests.el (hyrolo-tests--top-level-outline-for-all-file-types):
+ Fix kotl-mode match string to include only the top-level entry line.
2024-02-18 Mats Lidell <matsl@gnu.org>
diff --git a/hyrolo.el b/hyrolo.el
index 3b550358e1..60c006eb23 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: 19-Feb-24 at 10:47:52 by Bob Weiner
+;; Last-Mod: 19-Feb-24 at 11:33:53 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -3089,7 +3089,7 @@ This must be 1 or greater."
(goto-char (point-min))
(let ((min-level 1000))
(when (looking-at outline-regexp)
- (funcall outline-level))
+ (setq min-level (min min-level (funcall outline-level))))
(while (outline-next-heading)
(setq min-level (min min-level (funcall outline-level))))
(max min-level 1))))
diff --git a/test/hyrolo-tests.el b/test/hyrolo-tests.el
index ab85772d9b..4f700d02d5 100644
--- a/test/hyrolo-tests.el
+++ b/test/hyrolo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; Orig-Date: 19-Jun-21 at 22:42:00
-;; Last-Mod: 18-Feb-24 at 18:14:07 by Bob Weiner
+;; Last-Mod: 19-Feb-24 at 11:39:19 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -1396,7 +1396,6 @@ body
(hyrolo-tests--hyrolo-section-header kotl-file1)
"\
1. h-kotl...
- 1a. h-kotl 1...
")
(hyrolo-tests--outline-as-string))))
(kill-buffer hyrolo-display-buffer)
- [elpa] externals/hyperbole 9e77bdf62e 108/143: Fix cyclic call bug that made Elisp lookups slow in ChangeLog mode, (continued)
- [elpa] externals/hyperbole 9e77bdf62e 108/143: Fix cyclic call bug that made Elisp lookups slow in ChangeLog mode, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole dd2e0884ee 100/143: Merge pull request #450 from rswgnu/matsl-rsw-cleanup-package-lint-dependencies, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 871391f368 103/143: Add test for hargs:sexpression-p (#451), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 4291c14138 115/143: Add hyrolo reveal mode test (#459), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f4e323542d 116/143: Disable three failing tests for Emacs older than 29 (#461), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7a7f74859 125/143: Add i- and ebut:act functions and tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f1fa9363e8 119/143: Matsl rsw silence warnings again (#463), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 4bf1bc3ca2 126/143: Check ebut:act and ibut:act is called with the right but category, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 18ae76fa49 132/143: Merge pull request #462 from rswgnu/matsl-rsw-fix-ebut-act, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 85b31fed86 130/143: Remove inconsistent dash in test data, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a8cdad694b 141/143: Fix `hyrolo-min-matched-level' and hyrolo-top-level test,
ELPA Syncer <=
- [elpa] externals/hyperbole 0e242bc1ae 031/143: Merge remote branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7efb9be79 042/143: FAST-DEMO include ert test in file to avoid loading all test files, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 0089f973e9 117/143: Skip test if apropos command is not available (#464), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f0f3d25ae5 122/143: Matsl rsw make hide show test accept different section headings (#466), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 04e6b302c1 118/143: HyRolo updates to improve file heading handling, markdown headers, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 89ccef8e86 121/143: Merge branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c742ee8deb 138/143: hyrolo.el - disable reveal-mode and make TAB/S-TAB expand subtree, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 320352f3c4 024/143: Set enable-local-variables to nil for tests with DEMO and FAST-DEMO, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c02aa4d417 045/143: hypb-ert-def-at-p - fix rexexp bug with Action Key edebug testing, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c6597714ea 096/143: Merge pull request #447 from rswgnu/matsl-rsw-remove-skip-unless-not-interactive, ELPA Syncer, 2024/02/19