On 2026-01-01 22:32, Troy Brown wrote: > Org source blocks don't respect the user's configuration of their > desired major mode. As a result, the source block may use a > different major mode than what is specified in > "major-mode-remap-alist" (introduced in Emacs 29). > --8<-- > I think all of this could be automatically addressed if Org used > "major-mode-remap", back-ported for older Emacs versions (likely by > creating "org-major-mode-remap" in "org-compat.el"), and used at the > end of "org-src-get-lang-mode" to map the resultant major mode > accordingly.
On 2026-01-04 14:05, Ihor Radchenko wrote: > Note that we do use major-mode-remap, when available (on main > branch). On 2026-01-10 16:08, Ihor Radchenko wrote: > I have updated `org-src-get-lang-mode' on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a365775e4 Fixed, via ‘a365775e4’ on main. Thanks, -- Jacob S. Gordon [email protected] Please don’t send me HTML emails or MS Office/Apple iWork documents. https://useplaintext.email/#etiquette https://www.fsf.org/campaigns/opendocument
