[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 883f5ff 2/4: Fix minibuffer menu issue not ha
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 883f5ff 2/4: Fix minibuffer menu issue not handling numbers and non-ASCII characters |
Date: |
Sun, 26 Sep 2021 12:57:23 -0400 (EDT) |
branch: externals/hyperbole
commit 883f5ff6dae63d5813a1a08842f6b2d635d247d2
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
Fix minibuffer menu issue not handling numbers and non-ASCII characters
---
ChangeLog | 5 +++++
hui-mini.el | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9285081..d9eb33b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-09-26 Bob Weiner <rsw@gnu.org>
+
+* hui-mini.el (hui:menu-item-keys): Fix bug in catch fallthrough that returned
+ the item rather than nil, causing numbers and non-ASCII chars to not work.
+
2021-09-11 Mats Lidell <matsl@gnu.org>
* hsettings.el (hyperbole-web-search-browser-function): Use
diff --git a/hui-mini.el b/hui-mini.el
index 8d1ef15..64c200f 100644
--- a/hui-mini.el
+++ b/hui-mini.el
@@ -293,9 +293,12 @@ or if there are none, then its first character."
;; Return either the first capital letter in item or if
;; none, then its first character.
(or (catch 'capital
- (mapc (lambda (c) (and (<= ?A c) (>= ?Z c)
+ (progn (mapc (lambda (c) (and (<= ?A c) (>= ?Z c)
(throw 'capital c)))
- item))
+ item)
+ ;; Ensure nil is returned from catch if no
+ ;; matching char is found
+ nil))
(aref item 0)))
(mapcar 'car (cdr menu-alist))))