From ccca44a6e7fe1677d3ba9de5480fc99a2c285e8a Mon Sep 17 00:00:00 2001 From: bw Date: Tue, 30 Jun 2026 00:52:45 -0400 Subject: [PATCH] hui:menu-maybe-highlight-item-keys - Fix items without highlight --- ChangeLog | 7 +++++++ hui-mini.el | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1fb22bb3..8392e939 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2026-06-30 Bob Weiner + +* hui-mini.el (hui:menu-maybe-highlight-item-keys): Fix that in + column layout mode, items in the first column on 2nd and succeeding + lines did not have the first capital letter highlighted because were + neglecting newlines as word separators and handling only spaces. + 2026-06-28 Bob Weiner * hywiki.el (hywiki-include-special-modes): Add HyWiki support in csv, diff --git a/hui-mini.el b/hui-mini.el index 816249c0..460972bb 100644 --- a/hui-mini.el +++ b/hui-mini.el @@ -3,7 +3,7 @@ ;; Author: Bob Weiner ;; ;; Orig-Date: 15-Oct-91 at 20:13:17 -;; Last-Mod: 25-Jun-26 at 09:52:07 by Bob Weiner +;; Last-Mod: 30-Jun-26 at 00:48:36 by Bob Weiner ;; ;; SPDX-License-Identifier: GPL-3.0-or-later ;; @@ -608,7 +608,7 @@ potentially modified MENU-STR." (mapc (lambda (c) (cond ((= c ?>) (setq after-menu-name-flag t)) - ((= c ?\ ) + ((memq c '(?\n ?\r ?\ )) (setq after-word-capital-letter-flag nil)) ((and after-menu-name-flag (not after-word-capital-letter-flag)