GNU bug report logs -
#68246
30.0.50; Add non-TS mode as extra parent of TS modes
Previous Next
Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Thu, 4 Jan 2024 22:12:01 UTC
Severity: wishlist
Found in version 30.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: João Távora <joaotavora <at> gmail.com>
> Date: Sat, 6 Jan 2024 22:22:49 +0000
> Cc: Eli Zaretskii <eliz <at> gnu.org>, casouri <at> gmail.com, 68246 <at> debbugs.gnu.org
>
> On Sat, Jan 6, 2024 at 3:50 PM Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
> For simplifying the existing ways these 3 packages already
> solve the problem, I propose that instead of calling 'derived-mode-add-parents'
> directly near the mode definitions, we instead do something like:
>
> (set-language-for-mode 'foo-ts-mode 'foo)
This assumes that the only important aspect of a major mode that
transcends the "normal" ancestry is the language that the mode
supports. But that is not necessarily true in all cases. Also, some
major modes don't have a "language" attribute, in the usual sense of
that word.
IOW, this is IMO an even more leaky abstraction than what we get with
derived-mode-add-parents.
This bug report was last modified 1 year and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.