Hi,

Would there be any workaround using major-mode-remap-alist directly?
That was introduced in <= 29.1 as per describe-variable

HNY, /PA

On Sun, 4 Jan 2026 at 19:40, Troy Brown via General discussions about
Org-mode. <[email protected]> wrote:

> 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.
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

"Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
Year 1 of the New Koprocracy

Reply via email to