Skip to content

Conversation

@fnussbaum
Copy link
Contributor

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))
```
@fnussbaum
Copy link
Contributor Author

fnussbaum commented Feb 9, 2025

Hi @justbur, would it be possible to review/merge this PR? It addresses syl20bnr/spacemacs#16282, and with the release of Emacs 30 likely imminent, it would be great to have this fixed. Thank you!

Edit: I have added an advice to Spacemacs and closed the above issue, but it would of course still be preferable to fix this here.

fnussbaum added a commit to fnussbaum/spacemacs that referenced this pull request Feb 23, 2025
fnussbaum added a commit to syl20bnr/spacemacs that referenced this pull request Feb 23, 2025
@justbur justbur merged commit f23cfc1 into justbur:master Mar 8, 2025
@justbur
Copy link
Owner

justbur commented Mar 8, 2025

Thanks and sorry for the delay

fnussbaum added a commit to syl20bnr/spacemacs that referenced this pull request Mar 12, 2025
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.

2 participants