GNU bug report logs - #68246
30.0.50; Add non-TS mode as extra parent of TS modes

Previous Next

Package: emacs;

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


Message #224 received at 68246 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: João Távora <joaotavora <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 68246 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, casouri <at> gmail.com
Subject: Re: bug#68246: 30.0.50; Add non-TS mode as extra parent of TS modes
Date: Wed, 10 Jan 2024 03:15:36 +0200
On 09/01/2024 13:05, João Távora wrote:
>> which I propose to solve with `derived-mode-p`, since
>> that's what we've been using all these years.
> Even before your patch and before TS modes, derived-mode-p leads
> to exposing Eglot users looking to customize eglot-server-programs to
> much more complicated concepts.
> 
> If I could reliably write `get-language-for-mode`, this is much closer to
> what they are really after:
> 
>      (ocaml "ocamllsp")
>      (reason "ocamllsp")

In the end, this could be a reliable solution without fully committing 
that our language identifiers are fully synced to VS Code/LSP.

Overrides would still be needed, but it could help shorten the list.




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.