[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 6f340f9 199/325: Change help of a prefix
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 6f340f9 199/325: Change help of a prefix key to 'Prefix Key' |
Date: |
Sat, 23 Oct 2021 18:48:52 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 6f340f9e11f1a05c0fd7117c45b5e23e06b00af3
Author: Walter Landry <wlandry@caltech.edu>
Commit: Walter Landry <wlandry@caltech.edu>
Change help of a prefix key to 'Prefix Key'
---
ergoemacs-theme-engine.el | 46 ++++++++++++++++++++++++++--------------------
kbd-ergo.svg | 13 -------------
2 files changed, 26 insertions(+), 33 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index b88134f..9feb811 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -663,27 +663,33 @@ See also `find-function-recenter-line' and
`find-function-after-hook'."
)
(when (integerp binding)
(setq binding nil))
- (or (and binding
- (ergoemacs-keymapp binding)
- (or (and (not no-push-p) (push key
ergoemacs-theme--svg-prefixes))
- no-push-p)
- "⌨")
- ;; Handle the M-O binding specially.
- (and (eq binding 'ergoemacs-handle-M-O)
- (or
- (progn
- (setq key (assoc ergoemacs-M-O-binding
ergoemacs-function-short-names))
- (nth 1 key)
- )
- ""
- )
+ (or ;; Prefix keys (e.g. C-x, C-h)
+ (and binding
+ (ergoemacs-keymapp binding)
+ (or (and (not no-push-p) (push key
ergoemacs-theme--svg-prefixes))
+ no-push-p)
+ "Prefix Key")
+ ;; Handle the M-O binding specially.
+ (and (eq binding 'ergoemacs-handle-M-O)
+ (or
+ (progn
+ (setq key (assoc ergoemacs-M-O-binding
ergoemacs-function-short-names))
+ (nth 1 key)
)
- (and binding
- (setq key (assoc binding ergoemacs-function-short-names))
- (nth 1 key))
- (and binding
- (ergoemacs-theme--svg-elt-nonabbrev binding))
- "")))
+ ""
+ )
+ )
+ ;; Regular bindings
+ (and binding
+ (setq key (assoc binding ergoemacs-function-short-names))
+ (nth 1 key))
+ ;; Unknown binding
+ (and binding
+ (ergoemacs-theme--svg-elt-nonabbrev binding))
+ ""
+ )
+ )
+ )
((memq elt '(meta control))
(concat (ergoemacs-key-description--modifier elt) (format " - Emacs %s"
elt))
)
diff --git a/kbd-ergo.svg b/kbd-ergo.svg
index 8f0ab67..c0347a1 100644
--- a/kbd-ergo.svg
+++ b/kbd-ergo.svg
@@ -6989,19 +6989,6 @@
y="573.65869">AA</tspan></text>
<text
xml:space="preserve"
-
style="font-size:11.85218239px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Helvetica"
- x="56.430885"
- y="528.07928"
- id="text3505-9-9-7-6-0-4-5"
- sodipodi:linespacing="125%"
- transform="scale(0.98217521,1.0181483)"><tspan
- sodipodi:role="line"
- id="tspan3507-09-3-5-3-5-6-82"
- x="56.430885"
- y="528.07928"
-
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;font-family:Sans;-inkscape-font-specification:Helvetica
Bold">⌨ = Emacs Command Sequence </tspan></text>
- <text
- xml:space="preserve"
style="font-size:11.85218239px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000080;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Helvetica"
x="21.28425"
y="171.75562"
- [elpa] externals/ergoemacs-mode 4c27ce9 141/325: Unset keys in compilation mode, (continued)
- [elpa] externals/ergoemacs-mode 4c27ce9 141/325: Unset keys in compilation mode, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6bd00c1 148/325: Recent menu sort of works, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode d66bd33 162/325: Fix calc binding for undo and C-f test, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 7145e87 174/325: Fix ergoemacs-move-cursor-previous-pane and ergoemacs-cut-line-or-region, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2f6dcd0 184/325: Remove some translation stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 63f665b 153/325: Make calc-bindings work again., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fc84e0e 177/325: Make M-up, down global rather than override keys, so they can be overridden, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2798242 192/325: Remove all of the ERGOEMACS-* environment variables, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a671c6e 196/325: Make theme-describe sort of work, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 0ad1a45 197/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6f340f9 199/325: Change help of a prefix key to 'Prefix Key',
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode 977f035 206/325: Fix creating png help images, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fd10f7c 214/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode bef9844 207/325: Remove the Ergoemacs menu, change ? -> Help, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 4bd4660 219/325: Convert component--prompt to layout-prompt, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode e05f951 222/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a074551 224/325: Remove more, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 64215dc 223/325: Remove some unused theme functions, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode dea954c 229/325: Remove ergoemacs-component, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3e61eec 240/325: Remove -map functions, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 886e3eb 014/325: Remove an ergoemacs-package call in the tests, Stefan Monnier, 2021/10/23