emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
623 stars 162 forks source link

Finding the currently active ESS keymaps #1280

Open meedstrom opened 9 months ago

meedstrom commented 9 months ago

Hi! I wouldn't exactly file this as a bug, but it is strange.

Normally, I can find the major mode map symbol in the output of this expression:

(mapcar #'help-fns-find-keymap-name (current-active-maps))

But ess-r-mode-map does not show up.

I rely on that expression in my package https://github.com/meedstrom/massmapper. So I'm wondering if someone can shed light on why it doesn't show up? What's ESS doing specially? I tried searching the source and found nothing unusual about the keymap definitions. Something unusual with how modes are enabled perhaps?

EDIT:

The output from above contains a nil, which is probably where the ESS map should be, but evaluating directly (help-fns-find-keymap-name ess-r-mode-map) does return ess-r-mode-map, not nil. Hmm. Is there a buffer-local change made to ess-r-mode-map after the mode is enabled?