aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2018-07-07 19:41:56 -0500
committerNick Drozd <nicholasdrozd@gmail.com>2018-07-16 09:33:45 -0500
commit1a320c996cf648cb2ec58020f0180078b15b5763 (patch)
tree2a77b4aad650b7d48822e2730e137f502cbf4951 /helpful.el
parent07fd87cffbcc243b77c1598477167ce702250c48 (diff)
Check against global-keycodes before parent-keycodes
The former is usually a subset of the latter, so check it first.
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpful.el b/helpful.el
index 4bd6192..ff62ac2 100644
--- a/helpful.el
+++ b/helpful.el
@@ -1236,8 +1236,8 @@ buffer."
command-sym (list global-map) nil t))))
(->> keycodes
;; Ignore keybindings from the parent or global map.
- (--remove (-contains-p parent-keycodes it))
- (--remove (-contains-p global-keycodes it))
+ (--remove (or (-contains-p global-keycodes it)
+ (-contains-p parent-keycodes it)))
;; Convert raw keycode vectors into human-readable strings.
(-map #'key-description))))