I have a keymap which uses
[t] to bind a default command which should be executed if any key not bound in the map is pressed. This is described in the documentation of
define-key and it works for the most part. BUT if I bind a Meta combination in that map, any other Meta key combination will skip this default command from there on.
Example Code to illustrate the problem:
(let ((map (make-sparse-keymap))) (define-key map (kbd "M-a") 'some-command) (define-key map [t] (lambda () (interactive) (message "this will be skipped by Meta combinations"))) (set-transient-map map))
I want to be able to bind a command to a Meta combination, but let other Meta combinations still run the default.
How to do that?