[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/devil f6ddd7cac1 38/49: Fix undefined error for RET, <f10>
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/devil f6ddd7cac1 38/49: Fix undefined error for RET, <f10>, etc. |
|
Date: |
Mon, 15 May 2023 12:59:34 -0400 (EDT) |
branch: elpa/devil
commit f6ddd7cac1efad6c23c9a6839996edf894f1a633
Author: Susam Pal <susam@susam.net>
Commit: Susam Pal <susam@susam.net>
Fix undefined error for RET, <f10>, etc.
When the translated key sequence contains multiple letters for the
non-modifier part, e.g., "RET", "<f10>", the translation is considered
undefined and it is ignored. This change fixes this issue and now
supports such translations.
---
devil.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/devil.el b/devil.el
index 24c20a4cec..a50b503e19 100644
--- a/devil.el
+++ b/devil.el
@@ -281,6 +281,7 @@ sequences should be read from the user."
(devil--set-transient-map (substring described-key -1) binding))
t)
(t
+ (devil--log "Undefined key: %s => %s" described-key translated-key)
(message "Devil: %s is undefined" translated-key)
t))))
@@ -376,7 +377,7 @@ this-command: %s; last-command: %s;
last-repeatable-command: %s"
(catch 'break
(dolist (chunk (split-string translated-key " "))
(when (or (string= chunk "")
- (not (string-match-p "^\\(?:[ACHMSs]-\\)*[^ ]?$" chunk))
+ (not (string-match-p "^\\(?:[ACHMSs]-\\)*[^ ]*$" chunk))
(string-match-p "\\([ACHMSs]-\\)[^ ]*\\1" chunk))
(throw 'break t)))))
- [nongnu] elpa/devil 402dcfd7fb 13/49: Fix repeatable key sequence for yank-pop, (continued)
- [nongnu] elpa/devil 402dcfd7fb 13/49: Fix repeatable key sequence for yank-pop, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil ef5449deda 16/49: Add kill-line and undo to repeatable keys, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 02464b7516 18/49: Explain why a single activation key is the default, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 4b1eba8a1c 24/49: Add stricter validation of translated key sequence, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 6943ff3e82 28/49: Remove custom version command., ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 459ce032e4 32/49: * devil.el (devil--log-command-loop-info): Use a single 'format', ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil fa6eb0a319 33/49: Move tests to separate file using ERT, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 355bcc9c14 34/49: Extract most of the README into a separate manual, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 79fd50fe22 36/49: Set version to 0.3.0, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil c60437c11b 39/49: Support making all key sequences repeatable, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil f6ddd7cac1 38/49: Fix undefined error for RET, <f10>, etc.,
ELPA Syncer <=
- [nongnu] elpa/devil 72ce585e59 42/49: Document devil-all-keys-repeatable in the manual, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 305a41dc55 45/49: Add MELPA badges, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 2fe542cbc6 46/49: Mention Emacs at the beginning of documentation, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil b84cd61eec 40/49: Format .org files consistently, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil a42a778ec3 43/49: Add devil-all-keys-repeatable to changelog, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 1ddc4dc2e3 44/49: Fix key translation for key vector as Devil key, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil fbc422c666 20/49: Add steps to install Devil from MELPA, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 2090eb34f4 21/49: Move configuration examples to subsections, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil 92b95191ca 25/49: Remove demo files, ELPA Syncer, 2023/05/15
- [nongnu] elpa/devil ef7a7d4c74 29/49: Add 'devil' customisation group, ELPA Syncer, 2023/05/15