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

    hsys-consult--noninteractive-grep-paths - Fix, call in hyrolo-grep
    
    - hsys-consult-grep - Improve doc and fix arg order in doc.
    hsys-consult--grep-paths - Remove doc with wrong return value.
    hsys-consult--noninteractive-grep-paths): Remove `max-matches'
    since finds just the first match per file.
    
    - kfile:update - Temp bind 'inhibit-redisplay' to t to prevent
    display of internal outline data during saves.
    
    - FAST-DEMO: Add a link to "README.md#Articles".
    FAST-DEMO, README.in.md: Add Charlie's Hyrolo and Implicit Button
    video and article links.
---
 ChangeLog               |  23 +++++++
 FAST-DEMO               |  47 +++++++-------
 HY-CONCEPTS.kotl        |   8 ++-
 README.in.md            |  21 +++++--
 README.md               |  21 +++++--
 README.md.html          |  25 ++++++--
 hsys-consult.el         | 123 +++++++++++++++++--------------------
 hyrolo.el               |   8 +--
 kotl/EXAMPLE.kotl       | 158 +-----------------------------------------------
 kotl/kfile.el           |   5 +-
 kotl/kotl-mode.el       |  26 ++++----
 kotl/kview.el           |   6 +-
 man/hyperbole.texi      |   5 +-
 test/kotl-mode-tests.el |  14 ++---
 14 files changed, 195 insertions(+), 295 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0a5863ff397..1b3568e7ef9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,28 @@
+2026-10-17  Bob Weiner  <[email protected]>
+
+* hsys-consult.el (hsys-consult--noninteractive-grep-paths): Fix to ensure
+    eliminates any duplicate files and returns file list in orgiinal order.
+  hyrolo.el (hyrolo-grep): Restore call to above function to filter file
+    list to just those with a match.
+  test/hyrolo-tests.el 
(hyrolo-tests--forward-same-level-all-file-types-level1):
+    Above changes now work with this test.
+
+* hsys-consult.el (hsys-consult-grep): Improve doc and fix arg order
+    in doc.
+                 (hsys-consult--grep-paths): Remove doc with wrong
+    return value.
+                 (hsys-consult--noninteractive-grep-paths): Remove
+    'max-matches' since finds just the first match per file.
+
 2026-10-16  Bob Weiner  <[email protected]>
 
+* kotl/kfile.el (kfile:update): Temp bind 'inhibit-redisplay' to t
+    to prevent display of internal outline data during saves.
+
+* FAST-DEMO: Add a link to "README.md#Articles".
+  FAST-DEMO, README.in.md: Add Charlie's Hyrolo and Implicit Button
+    video and article links.
+
 * man/hyperbole.texi (View Specs, Relocating and Copying, Koutliner Keys):
 * kotl/EXAMPLE.kotl: INCOMPATIBLE CHANGE: Move {C-c ; b}
     (kotl-mode:toggle-blank-lines) to {C-c ]}.  Move {C-c C-c}
diff --git a/FAST-DEMO b/FAST-DEMO
index dd7bd14ff3f..1d53d2fc9d6 100644
--- a/FAST-DEMO
+++ b/FAST-DEMO
@@ -10,22 +10,24 @@
   This interactive demo is the fast way to get started with Hyperbole after
   installation.  The prior, lengthier Hyperbole demo/tutorial can be found
   in this file: "DEMO".  For a non-interactive introduction to Hyperbole
-  concepts, see "HY-CONCEPTS.kotl".
+  concepts, see "HY-CONCEPTS.kotl".  For a list of web articles on
+  Hyperbole, see "README.md#Articles".
 
 
 * Introductory Videos
 
-  If you prefer video introductions, visit the videos linked to in the tables 
below;
-  otherwise, skip to the next section.  The first table, "#Hyperbole Overview 
Video",
-  is an overview talk of Hyperbole broken into few minute sections that you 
can watch
-  individually.  The second table has links to separate videos covering 
aspects of
-  Hyperbole, including the full <ilink:Overview and Demo>.
+  If you prefer video introductions, visit the videos linked to in the
+  tables below; otherwise, skip to the next section.  The first table,
+  "#Hyperbole Overview Video", is an overview talk of Hyperbole broken into
+  few minute sections that you can watch individually.  The second table has
+  links to separate videos covering aspects of Hyperbole, including the full
+  <ilink:Overview and Demo>.
 
 ** Hyperbole Overview Video
 
-  Demos of Hyperbole features start in 'section 06 - Hyperbole Buttons' in 
this first
-  table.  Press {M-RET} either in the first column <[button name]> or in the 
second
-  column video link to watch each section.
+  Demos of Hyperbole features start in 'section 06 - Hyperbole Buttons' in
+  this first table.  Press {M-RET} either in the first column <[button
+  name]> or in the second column video link to watch each section.
 
   
|--------------------------------------+-----------------------------------------|
   | Hyperbole Overview Video Sections    | Video Snippets                      
    |
@@ -70,8 +72,12 @@
   
|-----------------------------------------------------+----------------------------------------|
   | <[Top 10 ways Hyperbole amps up Emacs]>             | 
https://youtu.be/BysjfL25Nlc           |
   
|-----------------------------------------------------+----------------------------------------|
+  | <[Implicit Buttons: Build Your Hyperverse]>         | 
https://youtu.be/o2KMvSCXwlU           |
+  
|-----------------------------------------------------+----------------------------------------|
   | <[HyWiki: Zero Markup Hypertext]>                   | 
https://youtu.be/3zG3lRmi3Zg           |
   
|-----------------------------------------------------+----------------------------------------|
+  | <[HyRolo: Records are Trees, Not Lines]>            | 
https://youtu.be/5Oo_KqVcLFM           |
+  
|-----------------------------------------------------+----------------------------------------|
   | <[Introduction to Buttons]>                         | 
https://youtu.be/zoEht66N2PI           |
   
|-----------------------------------------------------+----------------------------------------|
   | <[Linking Personal Info with Implicit Buttons]>     | 
https://youtu.be/TQ_fG7b1iHI           |
@@ -119,6 +125,7 @@
 
     (global-set-key "\C-cd" (kbd "C-h h d a"))
 
+
 * Implicit Buttons
 
   Hyperbole automatically recognizes many common and complex patterns within
@@ -161,7 +168,6 @@
   Window package is installed and active, this will be used to choose the
   window; otherwise, you will be prompted to select it by mouse.
 
-
 ** Pathname Implicit Buttons
 
     "HY-NEWS#ORG MODE:3:6"   - outline section anchor & relative line number
@@ -208,7 +214,6 @@
        fine-grained structured document linking.  Remember this as there will
        be more Info links below.
 
-
 ** Key Series Implicit Buttons
 
     A key series is an arbitrary length set of bound Emacs keystrokes
@@ -261,11 +266,10 @@
 
        Buffer list of directory buffers only
 
-
 ** Posix/Linux Shell Command Implicit Buttons
 
-    Some of the below commands require recursive use of the minibuffer, so 
let's
-    ensure that is enabled:
+    Some of the below commands require recursive use of the minibuffer, so
+    let's ensure that is enabled:
 
     <setq enable-recursive-minibuffers t>
 
@@ -298,7 +302,6 @@
        {M-RET} on any lines output to display the man page for the associated
        command.
 
-
 ** Grep Messages, Stack Traces, Man Page Apropos Implicit Buttons
 
   These implicit buttons typically appear in shell buffers.  You issue a
@@ -329,7 +332,6 @@ pspell-config(1)         - prints information about a 
libpspell installation
        An Action Key press anywhere on the above 3 non-blank lines displays
        the associated man documentation page.
 
-
 ** Action Buttons
 
   These are a generalized form of implicit buttons.
@@ -380,7 +382,6 @@ pspell-config(1)         - prints information about a 
libpspell installation
        The above will even run all Hyperbole regression tests for the HyRolo
        hierarchical full-text record retriever part of Hyperbole.
 
-
 ** Many More Implicit Button Types to Learn Across Time
 
   Activate this button, <emacs-lisp-mode>, to set this buffer into Emacs Lisp
@@ -449,10 +450,11 @@ To learn how to create new kinds of implicit button and 
action types, see
 
 * Hyperbole Subsystems
 
-  Hyperbole includes a number of subsystems that can raise your productivity
-  when looking up any kind of hierarchical records (including those from Org
-  mode or Outline mode), managing the precise location of windows and frames,
-  and one of the most advanced legal outliners available anywhere.
+  Hyperbole includes a number of subsystems/applications that can raise your
+  productivity when looking up any kind of hierarchical records (including
+  those from Org mode or Outline mode), managing the precise location of
+  windows and frames, and one of the most advanced legal outliners available
+  anywhere.
 
 ** HyWiki
 
@@ -494,7 +496,8 @@ To learn how to create new kinds of implicit button and 
action types, see
 
     <setq hywiki-directory "~/hywiki/">
 
-  See "(hyperbole)HyWiki" for full details on HyWiki.
+  See "(hyperbole)HyWiki" for full details on HyWiki, including how to
+  link to many other types of Emacs objects.
 
 ** HyRolo
 
diff --git a/HY-CONCEPTS.kotl b/HY-CONCEPTS.kotl
index 1197eb2cb4c..86a0b228e7b 100644
--- a/HY-CONCEPTS.kotl
+++ b/HY-CONCEPTS.kotl
@@ -24,9 +24,11 @@
 
    2. GNU Hyperbole is a turnkey Emacs package with no external package
       requirements that offers an extensive, extensible, hypertextual
-      information management system. It works with all kinds of file formats,
-      including Org mode.  The core of Hyperbole supplies a default
-      set of hyperbutton types, each of which performs a specific action.
+      information management system and a number of subsystems/applications,
+      such as this outliner and a note taking app. It works with all kinds
+      of file formats, including Org mode.  The core of Hyperbole supplies a
+      default set of hyperbutton types, each of which performs a specific
+      action.
 
    3. Hyperbole's Action {M-RET} and Assist Keys {C-u M-RET}, collectively
       known as the Smart Keys, provide context-sensitive activation of
diff --git a/README.in.md b/README.in.md
index 7e70680d188..d2568ea3a15 100644
--- a/README.in.md
+++ b/README.in.md
@@ -39,15 +39,19 @@ otherwise, skip to the next section.
 
    - [Top 10 ways Hyperbole amps up 
Emacs](https://emacsconf.org/2023/talks/hyperamp/)
 
+   - [Implicit Buttons: Build Your Hyperverse](https://youtu.be/o2KMvSCXwlU)
+
    - [HyWiki: Zero Markup Hypertext](https://youtu.be/3zG3lRmi3Zg)
 
+   - [HyRolo: Records are Trees, Not Lines](https://youtu.be/5Oo_KqVcLFM)
+
    - [Introduction to Buttons](https://youtu.be/zoEht66N2PI)
 
    - [Linking Personal Info with Implicit 
Buttons](https://emacsconf.org/2022/talks/buttons/)
 
    - [Powerful Productivity with Hyperbole and Org 
Mode](https://emacsconf.org/2022/talks/hyperorg/)
 
-   - [HyRolo, fast contact/hierarchical record 
viewer](https://youtu.be/xdJGFdgKPFY)
+   - [HyRolo: Search, Retrieve and Insert Records, Not 
Lines](https://youtu.be/xdJGFdgKPFY)
 
    - [Using Koutline for stream of thought 
journaling](https://emacsconf.org/2023/talks/koutline/)
 
@@ -66,6 +70,9 @@ otherwise, skip to the next section.
    - [The Emacs Hyperbole](https://mike.hostetlerhome.com/emacs-hyperbole)
 
    - [HyWiki: Zero Markup 
Hypertext](https://www.chiply.dev/post-hyperbole-hywiki)
+   - [Implicit Buttons: Build Your 
Hyperverse](https://www.chiply.dev/post-hyperbole-implicit-buttons)
+
+   - [HyRolo: Search, Retrieve and Insert Records, Not 
Lines](https://www.chiply.dev/post-hyperbole-hyrolo)
 
    - [HyWiki: My Favorite Part of 
Hyperbole](https://kirankp.com/blog/gnu-hyperbole/)
 
@@ -349,10 +356,14 @@ Hyperbole consists of six parts:
        complex operations without having to use a different key for each
        operation.  Just press a Smart Key and the right thing happens;
 
-   2.  **Auto-Wiki Note Taker**: HyWiki is a simple note taking system
-       that uses Org mode and automatically highlights and turns each
-       WikiWord into a hyperlink to its Wiki page or section without any
-       markup.
+   2.  [**HyWiki**](man/hyperbole.html#HyWiki)
+
+       Hyperbole's markup-free, personal wiki system with automatic WikiWord
+       highlighting and hyperlinking.  It uses Org mode for note taking and
+       adds automatic hyperlinking and highlighting of WikiWord references
+       within wiki pages and can be set so WikiWord links appear in all text
+       and programming files, WikiWords can also link to all different types
+       of Emacs objects, if desired.
 
    3.  **Autonumbered Legal Outliner**: The Koutliner is an advanced
        outliner with multi-level autonumbering and permanent ids
diff --git a/README.md b/README.md
index 0b5bed38035..11f4e7bb49e 100644
--- a/README.md
+++ b/README.md
@@ -61,15 +61,19 @@ otherwise, skip to the next section.
 
    - [Top 10 ways Hyperbole amps up 
Emacs](https://emacsconf.org/2023/talks/hyperamp/)
 
+   - [Implicit Buttons: Build Your Hyperverse](https://youtu.be/o2KMvSCXwlU)
+
    - [HyWiki: Zero Markup Hypertext](https://youtu.be/3zG3lRmi3Zg)
 
+   - [HyRolo: Records are Trees, Not Lines](https://youtu.be/5Oo_KqVcLFM)
+
    - [Introduction to Buttons](https://youtu.be/zoEht66N2PI)
 
    - [Linking Personal Info with Implicit 
Buttons](https://emacsconf.org/2022/talks/buttons/)
 
    - [Powerful Productivity with Hyperbole and Org 
Mode](https://emacsconf.org/2022/talks/hyperorg/)
 
-   - [HyRolo, fast contact/hierarchical record 
viewer](https://youtu.be/xdJGFdgKPFY)
+   - [HyRolo: Search, Retrieve and Insert Records, Not 
Lines](https://youtu.be/xdJGFdgKPFY)
 
    - [Using Koutline for stream of thought 
journaling](https://emacsconf.org/2023/talks/koutline/)
 
@@ -88,6 +92,9 @@ otherwise, skip to the next section.
    - [The Emacs Hyperbole](https://mike.hostetlerhome.com/emacs-hyperbole)
 
    - [HyWiki: Zero Markup 
Hypertext](https://www.chiply.dev/post-hyperbole-hywiki)
+   - [Implicit Buttons: Build Your 
Hyperverse](https://www.chiply.dev/post-hyperbole-implicit-buttons)
+
+   - [HyRolo: Search, Retrieve and Insert Records, Not 
Lines](https://www.chiply.dev/post-hyperbole-hyrolo)
 
    - [HyWiki: My Favorite Part of 
Hyperbole](https://kirankp.com/blog/gnu-hyperbole/)
 
@@ -512,10 +519,14 @@ Hyperbole consists of six parts:
        complex operations without having to use a different key for each
        operation.  Just press a Smart Key and the right thing happens;
 
-   2.  **Auto-Wiki Note Taker**: HyWiki is a simple note taking system
-       that uses Org mode and automatically highlights and turns each
-       WikiWord into a hyperlink to its Wiki page or section without any
-       markup.
+   2.  [**HyWiki**](man/hyperbole.html#HyWiki)
+
+       Hyperbole's markup-free, personal wiki system with automatic WikiWord
+       highlighting and hyperlinking.  It uses Org mode for note taking and
+       adds automatic hyperlinking and highlighting of WikiWord references
+       within wiki pages and can be set so WikiWord links appear in all text
+       and programming files, WikiWords can also link to all different types
+       of Emacs objects, if desired.
 
    3.  **Autonumbered Legal Outliner**: The Koutliner is an advanced
        outliner with multi-level autonumbering and permanent ids
diff --git a/README.md.html b/README.md.html
index 453e3870cf8..405271f6e2f 100644
--- a/README.md.html
+++ b/README.md.html
@@ -63,16 +63,20 @@ timestamps: 00:48 to 32:42.</p></li>
 Introduction</a></p></li>
 <li><p><a href="https://emacsconf.org/2023/talks/hyperamp/";>Top 10 ways
 Hyperbole amps up Emacs</a></p></li>
+<li><p><a href="https://youtu.be/o2KMvSCXwlU";>Implicit Buttons: Build
+Your Hyperverse</a></p></li>
 <li><p><a href="https://youtu.be/3zG3lRmi3Zg";>HyWiki: Zero Markup
 Hypertext</a></p></li>
+<li><p><a href="https://youtu.be/5Oo_KqVcLFM";>HyRolo: Records are Trees,
+Not Lines</a></p></li>
 <li><p><a href="https://youtu.be/zoEht66N2PI";>Introduction to
 Buttons</a></p></li>
 <li><p><a href="https://emacsconf.org/2022/talks/buttons/";>Linking
 Personal Info with Implicit Buttons</a></p></li>
 <li><p><a href="https://emacsconf.org/2022/talks/hyperorg/";>Powerful
 Productivity with Hyperbole and Org Mode</a></p></li>
-<li><p><a href="https://youtu.be/xdJGFdgKPFY";>HyRolo, fast
-contact/hierarchical record viewer</a></p></li>
+<li><p><a href="https://youtu.be/xdJGFdgKPFY";>HyRolo: Search, Retrieve
+and Insert Records, Not Lines</a></p></li>
 <li><p><a href="https://emacsconf.org/2023/talks/koutline/";>Using
 Koutline for stream of thought journaling</a></p></li>
 <li><p><a href="https://emacsconf.org/2022/talks/rolodex/";>Build a
@@ -92,6 +96,11 @@ implicit buttons</a></p></li>
 Emacs Hyperbole</a></p></li>
 <li><p><a href="https://www.chiply.dev/post-hyperbole-hywiki";>HyWiki:
 Zero Markup Hypertext</a></p></li>
+<li><p><a
+href="https://www.chiply.dev/post-hyperbole-implicit-buttons";>Implicit
+Buttons: Build Your Hyperverse</a></p></li>
+<li><p><a href="https://www.chiply.dev/post-hyperbole-hyrolo";>HyRolo:
+Search, Retrieve and Insert Records, Not Lines</a></p></li>
 <li><p><a href="https://kirankp.com/blog/gnu-hyperbole/";>HyWiki: My
 Favorite Part of Hyperbole</a></p></li>
 <li><p><a
@@ -502,10 +511,14 @@ Hyperbole buttons. In many popular Emacs modes, they 
allow you to
 perform common, sometimes complex operations without having to use a
 different key for each operation. Just press a Smart Key and the right
 thing happens;</p></li>
-<li><p><strong>Auto-Wiki Note Taker</strong>: HyWiki is a simple note
-taking system that uses Org mode and automatically highlights and turns
-each WikiWord into a hyperlink to its Wiki page or section without any
-markup.</p></li>
+<li><p><a
+href="man/hyperbole.html#HyWiki"><strong>HyWiki</strong></a></p>
+<p>Hyperbole's markup-free, personal wiki system with automatic WikiWord
+highlighting and hyperlinking. It uses Org mode for note taking and adds
+automatic hyperlinking and highlighting of WikiWord references within
+wiki pages and can be set so WikiWord links appear in all text and
+programming files, WikiWords can also link to all different types of
+Emacs objects, if desired.</p></li>
 <li><p><strong>Autonumbered Legal Outliner</strong>: The Koutliner is an
 advanced outliner with multi-level autonumbering and permanent ids
 attached to each outline node for use as hypertext link anchors, per
diff --git a/hsys-consult.el b/hsys-consult.el
index da3f02ee922..6739e110ed1 100644
--- a/hsys-consult.el
+++ b/hsys-consult.el
@@ -2,7 +2,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:     4-Jul-24 at 09:57:18
-;; Last-Mod:     14-Oct-26 at 12:21:25 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 02:33:45 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -151,17 +151,19 @@ Install `consult' package if not yet installed."
          (kill-buffer buf))))))
 
 ;;;###autoload
-(defun hsys-consult-grep (grep-includes ripgrep-globs &optional regexp 
max-matches
-                                       path-list prompt)
-  "Interactively search PATH-LIST with a consult package grep command.
+(defun hsys-consult-grep (grep-includes ripgrep-globs
+                          &optional regexp max-matches
+                                    path-list prompt)
+  "Interactively narrow and search with a consult grep command.
+Use ripgrep (rg) if found, otherwise, plain grep.
 
-With GREP-INCLUDES or RIPGREP-GLOBS file suffixes to include, search for
-optional REGEXP up to MAX-MATCHES in PATH-LIST.
+With GREP-INCLUDES or RIPGREP-GLOBS file suffixes to include, initialize
+search with optional REGEXP and interactively prompt for changes.  Limit
+matches per file to the absolute value of MAX-MATCHES, if given and not 0.
+If 0, match to the start of headline text only (lines that start with
+`hsys-consult-entry-regexp').
 
-Use ripgrep (rg) if found, otherwise, plain grep.  Initialize search with
-optional REGEXP and interactively prompt for changes.  Limit matches per
-file to the absolute value of MAX-MATCHES, if given and not 0.  If 0, match
-to headlines only (lines that start with `hsys-consult-entry-regexp').
+Search over PATH-LIST.
 
 With optional PROMPT string, use this as the first part of the grep prompt;
 omit any trailing colon and space in the prompt."
@@ -334,7 +336,6 @@ return the selection from CONSULT-FUNCTION."
 
 (defun hsys-consult--grep-paths (paths &optional regexp max-matches prompt)
   "Interactively search PATHS with a consult package grep command.
-Return a list of (<final-regexp> (<paths-with-matches)).
 
 Use ripgrep (rg) if found, otherwise, plain grep.  Interactively show all
 matches from PATHS; see the documentation for the `dir' argument in
@@ -391,71 +392,55 @@ omit any trailing colon and space in the prompt."
        (consult--grep (or prompt "Grep")
                       #'consult--grep-make-builder paths regexp)))))
 
-(defun hsys-consult--noninteractive-grep-paths (paths regexp &optional 
max-matches)
+(defun hsys-consult--noninteractive-grep-paths (paths regexp)
   "Non-interactively search PATHS for any REGEXP match with consult grep.
 Return a list of (REGEXP (<paths-with-matches)).
 
 Use ripgrep (rg) if found, otherwise, plain grep.  Interactively show all
 matches from PATHS; see the documentation for the `dir' argument in
-`consult-grep' for valid values of PATHS.
-
-Limit matches per file to the absolute value of optional MAX-MATCHES, if
-given and not 0.  If 0, match to the start of headline text only (lines that
-start with `hsys-consult-entry-regexp', which is dynamically simplified if no
-Koutline \".kotl\" files are being searched)."
+`consult-grep' for valid values of PATHS."
   (hsys-consult-require-version)
-  (when max-matches
-    (setq max-matches (prefix-numeric-value max-matches)))
-  (let ((consult-grep-args (if (and (integerp max-matches) (not (zerop 
max-matches)))
-                              (if (listp consult-grep-args)
-                                  (append consult-grep-args
-                                          (list (format "-m %d" (abs 
max-matches))))
-                                (concat consult-grep-args
-                                        (format " -m %d" (abs max-matches))))
-                            (if (listp consult-grep-args)
-                                (append consult-grep-args '("-l"))
-                              (concat consult-grep-args " -l"))))
-       (consult-ripgrep-args (if (and (integerp max-matches) (not (zerop 
max-matches)))
-                                 (if (listp consult-ripgrep-args)
-                                     (append consult-ripgrep-args
-                                             (list (format "-m %d" (abs 
max-matches))))
-                                   (concat consult-ripgrep-args
-                                           (format " -m %d" (abs 
max-matches))))
-                               (if (listp consult-ripgrep-args)
-                                   (append consult-ripgrep-args '("-l"))
-                                 (concat consult-ripgrep-args " -l"))))
-        (hsys-consult-entry-regexp
-         (if (hpath:extension-in-list-p "*.kotl" paths)
-             hsys-consult-entry-regexp
-           ;; If no Koutline files, use simplified heading search regexp
-           "^[*#]+ ")))
-
-    (when (and (integerp max-matches) (zerop max-matches))
-      ;; Final space in leading regexp in next line makes it work with
-      ;; the Orderless package.
-      (setq regexp (concat hsys-consult-entry-regexp (or regexp ""))))
-
-    ;; Ensure any env or lisp variables in paths are replaced so
-    ;; grep does not ignore them.
-    (setq paths (mapcar #'expand-file-name (hpath:expand-list paths)))
-
-    ;; Consult split style usually uses '#' as a separator char but
-    ;; that interferes with matching to Markdown # chars at the start
-    ;; of a line in the regexp, so disable the separator char as it is
-    ;; not needed for simple regexp searches.
-    (let* ((consult-async-split-style nil)
-          (builder-result (funcall
-                           (funcall
-                            (if (executable-find "rg")
-                                #'consult--ripgrep-make-builder
-                              #'consult--grep-make-builder)
-                            paths)
-                           regexp))
+  (setq paths (seq-filter #'stringp paths))
+  (let* ((consult-grep-args (if (listp consult-grep-args)
+                               (append consult-grep-args (list "-m 1"))
+                             (concat consult-grep-args " -m 1")))
+        (consult-ripgrep-args (if (listp consult-ripgrep-args)
+                                  (append consult-ripgrep-args (list "-m 1"))
+                                (concat consult-ripgrep-args " -m 1")))
+         ;; Ensure any env or lisp variables in paths are replaced so
+         ;; grep does not ignore them.
+         (expanded-paths (mapcar #'expand-file-name (hpath:expand-list paths)))
+         ;; Consult split style usually uses '#' as a separator char but
+         ;; that interferes with matching to Markdown # chars at the start
+         ;; of a line in the regexp, so disable the separator char as it is
+         ;; not needed for simple regexp searches.
+         (consult-async-split-style nil)
+        (builder-result (funcall
+                         (funcall
+                          (if (executable-find "rg")
+                              #'consult--ripgrep-make-builder
+                            #'consult--grep-make-builder)
+                           ;; Use `copy-list' to avoid sort modifying
+                           ;; `expanded-paths'
+                          (sort (copy-list expanded-paths) #'string-lessp))
+                         regexp))
         (cmd-list (car builder-result))
-        ;; Grep for filenames with matches in them and cache the line-level 
results
-        (null-separated-files (ignore-errors (car (apply #'process-lines (car 
cmd-list) (cdr cmd-list)))))
-        (matching-files (when null-separated-files (nreverse (split-string 
null-separated-files "\^@" t)))))
-      (list regexp matching-files))))
+        ;; Grep for filenames with matches in them and cache the line-level
+         ;; results
+        (null-separated-files (ignore-errors (apply #'process-lines (car 
cmd-list) (cdr cmd-list))))
+         (matching-files nil))
+    (when null-separated-files
+      (setq matching-files
+            (delete-dups
+             (delq nil
+                   (mapcar
+                    (lambda (line) (substring line 0 (cl-position ?\^@ line)))
+                    null-separated-files)))))
+
+    ;; Ensure return `matching-files' in the same order as `expanded-paths'
+    (list regexp (seq-filter (lambda (p)
+                               (member p matching-files))
+                             expanded-paths))))
 
 (defun hsys-consult--org-grep-tags-string ()
   "When on or between Org tags, return a `consult-grep' match string for them.
diff --git a/hyrolo.el b/hyrolo.el
index e0e913caed4..d64525e2993 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:     14-Oct-26 at 13:17:41 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 02:47:31 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -952,9 +952,9 @@ the variable `hyrolo-file-list'."
     ;; If not called interactively when `consult' is available, then filter
     ;; the list of files to search to only those with matches using a
     ;; `consult-grep' call that finds just the first match in each file.
-    ;; (unless (or (not hsys-consult-flag) interactive-flag
-    ;;             (seq-filter #'bufferp files-or-bufs))
-    ;;   (setq files-or-bufs (cadr (hsys-consult--noninteractive-grep-paths 
files-or-bufs regexp max-matches))))
+    (unless (or (not hsys-consult-flag) interactive-flag
+                (seq-filter #'bufferp files-or-bufs))
+      (setq files-or-bufs (cadr (hsys-consult--noninteractive-grep-paths 
files-or-bufs regexp))))
 
     (unless count-only
       (setq buffer-read-only nil)
diff --git a/kotl/EXAMPLE.kotl b/kotl/EXAMPLE.kotl
index 6a19824fd2f..44dad188afd 100644
--- a/kotl/EXAMPLE.kotl
+++ b/kotl/EXAMPLE.kotl
@@ -407,7 +407,7 @@
 
           3b23c2. b: Turn on blank lines between cells.  Without this code,
                   blank lines will be turned off.  You can also use the
-                  {C-c ]} key binding to toggle line numbers on and off
+                  {C-c ]} key binding to toggle blank lines on and off
                   independent of any other view settings.
 
           3b23c3. cN: Hide any lines greater than N in each cell.  0 means
@@ -552,158 +552,4 @@ alpha ;; label-type
   (creator "[email protected]" create-time "20231105:21:29:07")]
  [81
   (creator "[email protected]" create-time "20261007:21:15:24")]
- [92
-  (creator "[email protected]" create-time "20261016:15:05:05")]
- [93
-  (creator "[email protected]" create-time "20261016:15:05:27")]
- [9
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [10
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [11
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [12
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [82
-  (creator "[email protected]" create-time "20261007:22:18:48")]
- [73
-  (creator "[email protected]" create-time "20260929:05:48:56")]
- [71
-  (creator "[email protected]" create-time "20260928:21:33:05")]
- [74
-  (creator "[email protected]" create-time "20260929:05:49:02")]
- [75
-  (creator "[email protected]" create-time "20260929:05:49:09")]
- [76
-  (creator "[email protected]" create-time "20260929:05:49:14")]
- [78
-  (creator "[email protected]" create-time "20260929:05:50:44")]
- [13
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [85
-  (creator "[email protected]" create-time "20261007:23:56:26")]
- [77
-  (creator "[email protected]" create-time "20260929:05:49:25")]
- [86
-  (creator "[email protected]" create-time "20261008:00:02:09")]
- [88
-  (creator "[email protected]" create-time "20261008:00:02:30")]
- [89
-  (creator "[email protected]" create-time "20261008:00:02:56")]
- [90
-  (creator "[email protected]" create-time "20261008:00:03:52")]
- [14
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [15
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [16
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [17
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [18
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [19
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [20
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [21
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [22
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [23
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [24
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [79
-  (creator "[email protected]" create-time "20261006:04:24:06")]
- [25
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [26
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [27
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [28
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [29
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [30
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [31
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [32
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [33
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [34
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [35
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [36
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [37
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [38
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [39
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [40
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [41
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [42
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [43
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [44
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [45
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [46
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [47
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [48
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [49
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [50
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [51
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [52
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [53
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [54
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [55
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [56
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [57
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [58
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [59
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [60
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [61
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [62
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [63
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [64
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [65
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [66
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [67
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [68
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- [69
-  (creator "[email protected]" create-time "20231105:21:29:07")]
- nil nil nil nil nil nil nil nil]
+ nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 
nil nil nil nil nil nil]
diff --git a/kotl/kfile.el b/kotl/kfile.el
index 69aa4399ff3..feb1b536d1d 100644
--- a/kotl/kfile.el
+++ b/kotl/kfile.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    10/31/93
-;; Last-Mod:     23-Sep-26 at 11:27:18 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 00:10:26 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -264,7 +264,8 @@ If V3-FLAG is true, read as a version-3 buffer."
   "Update kfile internal structure so that view is ready for saving to a file.
 Leave outline file expanded with structure data showing unless optional
 VISIBLE-ONLY-P is non-nil.  Signal an error if kotl is not attached to a file."
-  (let* ((top (kview:top-cell kotl-kview))
+  (let* ((inhibit-redisplay t)  ;; Inhibits internal data display during saves
+         (top (kview:top-cell kotl-kview))
         (file (hypb:buffer-file-name))
         (label-type (kview:label-type kotl-kview))
         (label-min-width (kview:label-min-width kotl-kview))
diff --git a/kotl/kotl-mode.el b/kotl/kotl-mode.el
index 2b1250bdc13..91e8f15862a 100644
--- a/kotl/kotl-mode.el
+++ b/kotl/kotl-mode.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    6/30/93
-;; Last-Mod:     16-Oct-26 at 12:17:14 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 03:00:27 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -671,7 +671,7 @@ Do not delete across cell boundaries."
      (save-excursion
        (kotl-mode:beginning-of-line))
      (save-excursion
-       (kotl-mode:end-of-line)))
+       (kotl-mode:to-end-of-line)))
     (delete-horizontal-space)))
 
 (defun kotl-mode:delete-indentation (&optional arg)
@@ -818,7 +818,7 @@ Does not remove any newlines as `just-one-space' does when 
given a negative N."
   (save-excursion
     (save-restriction
       (save-excursion
-       (narrow-to-region (kotl-mode:beginning-of-line) 
(kotl-mode:end-of-line)))
+       (narrow-to-region (kotl-mode:beginning-of-line) 
(kotl-mode:to-end-of-line)))
       (just-one-space n))))
 
 (defun kotl-mode:kill-line (&optional arg)
@@ -842,7 +842,7 @@ Does not remove any newlines as `just-one-space' does when 
given a negative N."
       (cond
        ((and (null arg) (not (kotl-mode:eolp)))
        ;; kill to eol but not newline
-       (kill-region (point) (setq arg (kotl-mode:end-of-line))))
+       (kill-region (point) (setq arg (kotl-mode:to-end-of-line))))
        ((= num-arg 0)
        ;; kill to bol
        (kill-region (point) (setq arg (kotl-mode:beginning-of-line))))
@@ -1216,9 +1216,9 @@ valid settings."
        (message "Tab insertion now uses spaces to form tabs."))))
 
 (defun kotl-mode:toggle-letter-prefix ()
-  (interactive)
   "Toggle whether `C-c' is the active letter prefix or not.
 Initially this is off as the default value is `C-c ;'."
+  (interactive)
   (if (member kotl-mode:letter-prefix '("C-c" "\C-c"))
       (kotl-mode:set-letter-prefix-standard)
     (kotl-mode:set-letter-prefix-control-c))
@@ -1367,7 +1367,7 @@ that contains mark."
       (ignore-errors (kotl-mode:delete-char 1))
       (goto-char mark)
       (set-marker mark nil)
-      (kotl-mode:end-of-line)
+      (kotl-mode:to-end-of-line)
       (insert "\n")
       (insert-char ?\  (kcell-view:indent))
       (insert line-to-move)
@@ -2084,22 +2084,26 @@ With optional ARG < 0, move to the ARGth previous 
visible cell."
   (kotl-mode:next-cell (if (> arg 0) (1- arg) arg))
   (goto-char (kcell-view:end-contents)))
 
-(defun kotl-mode:end-of-line (&optional arg)
+(defun kotl-mode:to-end-of-line (&optional arg)
   "Move point to end of current or ARGth - 1 line and return point."
   (interactive "p")
   (kotl-mode:maintain-region-highlight)
   (unless arg
     (setq arg 1))
   (unless (integer-or-marker-p arg)
-      (error "(kotl-mode:end-of-line): Wrong type arg, integer-or-marker, 
`%s'" arg))
+      (error "(kotl-mode:to-end-of-line): Wrong type arg, integer-or-marker, 
`%s'" arg))
   (kfill:forward-line (1- arg))
   (end-of-visible-line)
   ;; May have to move backwards to before label if support labels
   ;; at end of cells.
   (point))
 
+;; This next alias is because of an Emacs byte-compiler bug that causes
+;; a failure in this function if it is directly named
+;; 'kotl-mode:end-of-line'.  -- RSW, 2026-10-17
+(defalias 'kotl-mode:end-of-line        'kotl-mode:to-end-of-line)
 (defalias 'kotl-mode:end-of-visual-line 'kotl-mode:end-of-line)
-(defalias 'kotl-mode:move-end-of-line 'kotl-mode:end-of-line)
+(defalias 'kotl-mode:move-end-of-line   'kotl-mode:end-of-line)
 
 (defun kotl-mode:end-of-tree ()
   "Move point to the start of the last cell in tree rooted at the current 
cell."
@@ -2691,7 +2695,7 @@ With optional NEXT-CHAR-VISIBLE, return t only if the 
following char is visible.
 (defun kotl-mode:last-line-p ()
   "Return t iff point is on the last line of the outline."
   (save-excursion
-    (kotl-mode:end-of-line)
+    (kotl-mode:to-end-of-line)
     (looking-at "\n*\\'")))
 
 (defun kotl-mode:root-first-line-only-shown-p ()
@@ -4168,7 +4172,7 @@ Do not delete newline at end of line."
       (goto-char pos))
     (if (kview:valid-position-p)
        (let ((bol (kotl-mode:beginning-of-line))
-             (eol (kotl-mode:end-of-line)))
+             (eol (kotl-mode:to-end-of-line)))
          (prog1
              (buffer-substring bol eol)
            (delete-region bol eol)))
diff --git a/kotl/kview.el b/kotl/kview.el
index 0e59009318b..ec214295c06 100644
--- a/kotl/kview.el
+++ b/kotl/kview.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    6/30/93
-;; Last-Mod:     16-Oct-26 at 11:57:13 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 02:56:46 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -50,7 +50,7 @@
 (declare-function kotl-mode:goto-cell "kotl-mode")
 (declare-function kotl-mode:goto-heading "kotl/kotl-mode")
 (declare-function kotl-mode:hide-subtree "kotl-mode")
-(declare-function kotl-mode:end-of-line "kotl-mode")
+(declare-function kotl-mode:to-end-of-line "kotl-mode")
 (declare-function kotl-mode:to-valid-position "kotl-mode")
 (declare-function kotl-mode:to-visible-position "kotl-mode")
 (declare-function kotl-mode:tree-end "kotl-mode")
@@ -461,7 +461,7 @@ characters of the cell whose level is desired."
     (when pos
       (goto-char pos))
     (if (kview:valid-position-p)
-       (buffer-substring (kotl-mode:beginning-of-line) (kotl-mode:end-of-line))
+       (buffer-substring (kotl-mode:beginning-of-line) 
(kotl-mode:to-end-of-line))
       (error "(kcell-view:line): Invalid position, `%d'" (point)))))
 
 (defun kcell-view:lines-visible ()
diff --git a/man/hyperbole.texi b/man/hyperbole.texi
index b14b779a697..7a2c2873329 100644
--- a/man/hyperbole.texi
+++ b/man/hyperbole.texi
@@ -7,7 +7,7 @@
 @c Author:       Bob Weiner
 @c
 @c Orig-Date:     6-Nov-91 at 11:18:03
-@c Last-Mod:     16-Oct-26 at 13:31:32 by Bob Weiner
+@c Last-Mod:     16-Oct-26 at 22:59:00 by Bob Weiner
 
 @c %**start of header (This is for running Texinfo on a region.)
 @setfilename hyperbole.info
@@ -858,7 +858,8 @@ Hyperbole's markup-free, personal wiki system with 
automatic WikiWord
 highlighting and hyperlinking.  It uses Org mode for note taking and
 adds automatic hyperlinking and highlighting of WikiWord references
 within wiki pages and can be set so WikiWord links appear in all text
-and programming files,  @xref{HyWiki}.
+and programming files, WikiWords can also link to all different types
+of Emacs objects, if desired.  @xref{HyWiki}.
 
 @item 3. HyRolo
 a fast, powerful, hierarchical record manager that does not require
diff --git a/test/kotl-mode-tests.el b/test/kotl-mode-tests.el
index 4389d719e96..5467735a421 100644
--- a/test/kotl-mode-tests.el
+++ b/test/kotl-mode-tests.el
@@ -3,7 +3,7 @@
 ;; Author:       Mats Lidell <[email protected]>
 ;;
 ;; Orig-Date:    18-May-21 at 22:14:10
-;; Last-Mod:      6-Oct-26 at 00:37:17 by Bob Weiner
+;; Last-Mod:     17-Oct-26 at 02:56:46 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -490,7 +490,7 @@
             (kotl-mode:newline 1)
             (insert "second")
             (kotl-mode:previous-line 1)
-            (kotl-mode:end-of-line)
+            (kotl-mode:to-end-of-line)
             (kotl-mode:split-cell)
             (should (= (line-number-at-pos) 3)))
           (ert-info ("Split on first char in cell")
@@ -956,7 +956,7 @@ actually depends on the point adjustment heuristics."
           (kotl-mode:beginning-of-buffer)
           (kotl-mode:forward-char)
           (should (outline-invisible-p))
-          (kotl-mode:end-of-line)
+          (kotl-mode:to-end-of-line)
           (should-not (outline-invisible-p))
           (kotl-mode:forward-char)
           (should (looking-at-p "2")))
@@ -1408,19 +1408,19 @@ marked with :ignore t")
         (should (looking-at-p "23")))
       (ert-info ("Delete one char backward")
         (init)
-        (kotl-mode:end-of-line)
+        (kotl-mode:to-end-of-line)
         (kotl-mode:delete-char -1)
         (kotl-mode:beginning-of-line)
         (should (looking-at-p "012")))
       (ert-info ("Delete one char backward - using backward-char")
         (init)
-        (kotl-mode:end-of-line)
+        (kotl-mode:to-end-of-line)
         (kotl-mode:delete-backward-char 1)
         (kotl-mode:beginning-of-line)
         (should (looking-at-p "012")))
       (ert-info ("Delete two chars backward")
         (init)
-        (kotl-mode:end-of-line)
+        (kotl-mode:to-end-of-line)
         (kotl-mode:delete-char -2)
         (kotl-mode:beginning-of-line)
         (should (looking-at-p "01")))
@@ -1428,7 +1428,7 @@ marked with :ignore t")
         (init)
         (let ((current-prefix-arg 2)
               kill-ring)
-          (kotl-mode:end-of-line)
+          (kotl-mode:to-end-of-line)
           (call-interactively #'kotl-mode:delete-backward-char)
           (kotl-mode:beginning-of-line)
           (should (looking-at-p "01"))

Reply via email to