On Sun, Jan 4, 2026 at 9:05 AM Ihor Radchenko <[email protected]> wrote: > > Note that we do use major-mode-remap, when available (on main branch).
Ahh, it sure is on the main branch. I'm not sure how I missed that. I must have assumed that since that change wasn't part of Emacs 30 and isn't currently on HEAD in the Emacs repository, that it didn't exist. My apologies. > For Emacs 29, would you be interested to create a patch? I don't currently have FSF paperwork in place. I assume the Emacs copyright exemption limit applies to Org as well, correct? I believe I'm near my limit for Emacs itself. I think I could add Emacs 29 support specifically for org-src-get-lang-mode in a few lines, so maybe that still falls under the limit. However, searching for major-mode-remap within the org-mode repository I see it used in multiple places. As such, I believe my suggestion to create an org-compat.el version of that function and then use it in those places would likely be a more appropriate solution. I suspect making those additional changes might put me over the exception limit. If you believe it would still fall beneath the exception limit, I'd be more than happy to create a patch for this. I've also CC'd Stefan as it appears he made the original change and might be interested in adding Emacs 29 support too. Thanks, Troy.
