branch: externals/hyperbole commit 1154b391e3706eaa2d3c4cc5a229fb9219cc67b4 Author: bw <r...@gnu.org> Commit: bw <r...@gnu.org>
Fix link-to-regexp-match to use 'n' count during regexp search --- ChangeLog | 2 ++ hactypes.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f174532673..f865876778 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2023-12-23 Bob Weiner <r...@gnu.org> +* hactypes.el (link-to-regexp-match): Fix to use arg 'n' in the regexp search. + * kotl/kotl-mode.el (kotl-mode): Ensure local vars are set if current buffer is HyRolo display matches buffer. diff --git a/hactypes.el b/hactypes.el index ab445a2525..5665dcbba1 100644 --- a/hactypes.el +++ b/hactypes.el @@ -3,7 +3,7 @@ ;; Author: Bob Weiner ;; ;; Orig-Date: 23-Sep-91 at 20:34:36 -;; Last-Mod: 3-Dec-23 at 11:37:36 by Bob Weiner +;; Last-Mod: 23-Dec-23 at 02:17:41 by Bob Weiner ;; ;; SPDX-License-Identifier: GPL-3.0-or-later ;; @@ -651,7 +651,7 @@ Return t if found, signal an error if not." (hpath:display-buffer source) (widen) (goto-char (point-min)) - (if (re-search-forward regexp nil t) + (if (re-search-forward regexp nil t n) (progn (beginning-of-line) (recenter 0) t) (hypb:error "(link-to-regexp-match): Pattern not found: `%s'" regexp)))))