aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/help.el
diff options
context:
space:
mode:
authorStefan Kangas2020-10-18 16:49:55 +0200
committerStefan Kangas2020-10-18 17:25:23 +0200
commit420023a6f066d6ffb85e23ffe3abcfee3d523ea7 (patch)
tree15f408b22538e59be8a71d6d4b8eda2e4fbbe606 /lisp/help.el
parentef5a604f082f772424400f48b64e9c04edbcc766 (diff)
downloademacs-scratch/substitute-command-keys.tar.gz
emacs-scratch/substitute-command-keys.zip
Prefer Lisp version of describer in help--describe-vectorscratch/substitute-command-keys
* src/keymap.c (Fhelp__describe_vector): * lisp/help.el (describe-map): Use Lisp versions of describe_command and describe_translation. * src/keymap.c (describe_command, describe_translation): Remove. (describe_vector_basic): New function.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index e8dfbdef74a..6ae2664cf41 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -1274,10 +1274,13 @@ TRANSL, PARTIAL, SHADOW, NOMENU, MENTION-SHADOW are as in
1274 (map (keymap-canonicalize map)) 1274 (map (keymap-canonicalize map))
1275 (tail map) 1275 (tail map)
1276 (first t) 1276 (first t)
1277 (describer (if transl
1278 #'help--describe-translation
1279 #'help--describe-command))
1277 done vect) 1280 done vect)
1278 (while (and (consp tail) (not done)) 1281 (while (and (consp tail) (not done))
1279 (cond ((or (vectorp (car tail)) (char-table-p (car tail))) 1282 (cond ((or (vectorp (car tail)) (char-table-p (car tail)))
1280 (help--describe-vector (car tail) prefix transl partial 1283 (help--describe-vector (car tail) prefix describer partial
1281 shadow map mention-shadow)) 1284 shadow map mention-shadow))
1282 ((consp (car tail)) 1285 ((consp (car tail))
1283 (let ((event (caar tail)) 1286 (let ((event (caar tail))