mclear-tools / tabspaces

GNU General Public License v3.0
224 stars 14 forks source link

allow opting out of automatic keymap prefix binding #62

Open montchr opened 1 month ago

montchr commented 1 month ago

There does not appear to be a way to opt out of the automatic binding of tabspaces-command-map to tabspaces-keymap-prefix without causing a warning message to appear. I set tabspaces-keymap-prefix to nil, which should prevent the binding, but then I get the following warning:

⛔ Warning (emacs): Value ‘nil’ does not match type string

I'm not sure how to get a trace for this message, however, since it is not an error. As a workaround, I've just set the prefix to a key inside my custom keymap.

mclearc commented 1 month ago

That's odd -- when I set it to nil I do not get a warning. It just disables the keybinding (as one would expect). So I'm not able to reproduce this.

There does not appear to be a way to opt out of the automatic binding of tabspaces-command-map to tabspaces-keymap-prefix without causing a warning message to appear. I set tabspaces-keymap-prefix to nil, which should prevent the binding, but then I get the following warning:

⛔ Warning (emacs): Value ‘nil’ does not match type string

I'm not sure how to get a trace for this message, however, since it is not an error. As a workaround, I've just set the prefix to a key inside my custom keymap.