bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68246: 30.0.50; Add non-TS mode as extra parent of TS modes


From: Eli Zaretskii
Subject: bug#68246: 30.0.50; Add non-TS mode as extra parent of TS modes
Date: Sat, 06 Jan 2024 10:09:32 +0200

> From: João Távora <joaotavora@gmail.com>
> Date: Fri, 5 Jan 2024 23:37:46 +0000
> Cc: Eli Zaretskii <eliz@gnu.org>, Yuan Fu <casouri@gmail.com>, 
> 68246@debbugs.gnu.org, 
>       monnier@iro.umontreal.ca
> 
> > But even if we added all the base modes today (as empty stubs), AFAIU it
> > wouldn't solve the exact problem that Monnier's patch is addressing,
> > namely to make packages and customizations work in both foo-mode and
> > foo-ts-mode even if they only say:
> >
> >     (derived-mode-p 'foo-mode)
> 
> That's why these packages should be changed to say
> 
>   (derived-mode-p 'foo-base-mode)
> 
> Or maybe
> 
>    (cl-some #'derived-mode-p '(foo-mode foo-base-mode))

Stefan's patch solves this in a simpler way, which is also friendlier
to 3rd-party packages out there.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]