Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bindings for remapped modes in Emacs 30 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fnussbaum
Copy link

Emacs 30 introduces major-mode-remap-defaults, and in particular the auctex remappings are moved to this new variable (from the user option major-mode-remap-alist). Hence it is necessary to fix bind-map--lookup-major-modes which was added in #9.

Emacs 30 also provides the accessor function major-mode-remap with the following definition:

(defun major-mode-remap (mode)
  "Return the function to use to enable MODE."
  (or (cdr (or (assq mode major-mode-remap-alist)
               (assq mode major-mode-remap-defaults)))
      mode))

Emacs 30 introduces `major-mode-remap-defaults`, and in particular the auctex
remappings are moved to this new variable (from the user option
`major-mode-remap-alist`). Hence it is necessary to fix
`bind-map--lookup-major-modes` which was added in justbur#9.

Emacs 30 also provides the accessor function `major-mode-remap` with
the following definition:
```elisp
(defun major-mode-remap (mode)
  "Return the function to use to enable MODE."
  (or (cdr (or (assq mode major-mode-remap-alist)
               (assq mode major-mode-remap-defaults)))
      mode))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant