|
From: | Stefan Monnier |
Subject: | Re: Explanation Request for the Function set-transient-map in subr.el |
Date: | Fri, 12 Nov 2021 09:41:07 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> What does this section do? In what situations this-command gets called using > keys of the transient map but it is not equal to itself? What does mc mean? > > ((eq t keep-pred) > (let ((mc (lookup-key map (this-command-keys-vector)))) > ;; If the key is unbound `this-command` is > ;; nil and so is `mc`. > (and mc (eq this-command mc)))) It checks whether the user used one of the bindings from the `map` as opposed to one of the bindings from other active keymaps (e.g. the global map). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |