From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#68246: 30.0.50; Add non-TS mode as extra parent of TS modes Date: Wed, 10 Jan 2024 17:31:50 +0000 Message-ID: References: <83edeww73j.fsf@gnu.org> <83o7dzvrmf.fsf@gnu.org> <838r53vlo5.fsf@gnu.org> <831qavvcbo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Eli Zaretskii , casouri@gmail.com, 68246@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 10 18:33:40 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNcSS-0006y7-Je for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jan 2024 18:33:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNcRu-0005BP-46; Wed, 10 Jan 2024 12:33:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNcRs-0005AH-0G for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 12:33:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNcRr-0003sr-OV for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 12:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNcRq-0007uc-9R for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 12:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2024 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68246 X-GNU-PR-Package: emacs Original-Received: via spool by 68246-submit@debbugs.gnu.org id=B68246.170490793030305 (code B ref 68246); Wed, 10 Jan 2024 17:33:02 +0000 Original-Received: (at 68246) by debbugs.gnu.org; 10 Jan 2024 17:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:42787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNcQz-0007sj-KJ for submit@debbugs.gnu.org; Wed, 10 Jan 2024 12:32:09 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:57663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNcQx-0007s8-MW for 68246@debbugs.gnu.org; Wed, 10 Jan 2024 12:32:08 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2cd1ca52f31so49814621fa.3 for <68246@debbugs.gnu.org>; Wed, 10 Jan 2024 09:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704907923; x=1705512723; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NUmsMR/9pqeDc9fNYGHTR84el3RIP03TjrFrbdHQtvQ=; b=BRlkTisDYho3TeIeBfx/WcZqDE9XBcB0MrUxarlSm0zhxGSnwwaNggCl25yb7ru8fr t8WppnR7XiLjDQnWex/ntiXqwWm5hXQTd1SNXvHO9JXppk4oyvfWyWULZ3CV2eishVhw 0N0kczFcOaasGT0MxMAzozOOthBBks5twzXxf3b7YdMZCN3kHLsp3h1GG8uTWIuhu8qr zBBUITcQVaY7Hnwb2BJON/EvV1470wkNC0afPJ+i/7FGQd5i3WyDAa/t1Z1hYpmeHqNv 5yi7KzwrlwPQYTZv1tInOYlKHMj1uihfNrq0eicfCKeesXjqnUDpvH02VxJfyXHKD1mH M/iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704907923; x=1705512723; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NUmsMR/9pqeDc9fNYGHTR84el3RIP03TjrFrbdHQtvQ=; b=MVHc1RtZZ6WkHMcXnvIhhXyy+eNcKYXwxf7KucFlGw+euT7uxJxo+eO1RmulaH5Dcs xaFVOiPX211XPN7+LUeEctpSSMKNDYaO9lPLuj+HFVWQGZPVb74iWFrYq3E6a/PYurgO uh5JMw/UalGn6uRi/Ogw97899EuHMBFUUZ5fDhpaXvRJTs25YWR/YdofHaq9a1rxzqtF SJwDkGqvqehwZ/gcHtnAaC4+BESVZwjzkZqq1uFN83c60uWyOl3KEW5ydbFUiU++sLct WilvHqi3KKPKRZsAbzZ+W7xBERYrm0SfeU9LW1HFxsG513WY93HPvF/2B448tniS6G3g 000Q== X-Gm-Message-State: AOJu0YzmnT6gxRwqboWWI0lDlZSqdSVOGJ5DNreJ/4h/3XVYmbpQ9xzE SYFFT77ILoElwvABs5jXTj7Sjss5/9ftiz8cO6Y= X-Google-Smtp-Source: AGHT+IFeAHeuXVQntJJ1RP94p1U2lj3uwmHx2xdnvq/SpEEJP5OyC+8ryDms/duQsDleiRrLhIpRuSzNdAjlsUvtBHQ= X-Received: by 2002:a2e:8895:0:b0:2cd:5c96:46f4 with SMTP id k21-20020a2e8895000000b002cd5c9646f4mr769650lji.35.1704907922517; Wed, 10 Jan 2024 09:32:02 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277791 Archived-At: On Wed, Jan 10, 2024 at 4:04=E2=80=AFPM Stefan Monnier wrote: > > > I must be out of luck, because Eglot does need "the language" to send > > as the LSP "languageID" to the server. > > No quite "the language": it needs "the language as defined by LSP (or by > its LSP server)". As there is almost always a 100% match, I'm happy to have eglot-emacs-language-to-lsp-language with very few exceptions. > FWIW, I view centralized mode-indexed databases like > `eglot-server-programs` generally as a "youth diseases": as a package > matures this gets replaced by buffer-local vars Me too. But it's orthogonal to the "needs to know the language" problem. > set by the respective major modes. ...or directory-locals, or whatever hook/interface the user prefers. So I'd phrase that as "suggested by the major-mode". And this major mode doesn't have to be concrete either. The foo-base-mode, parent of old-style foo-mode and new-style foo-ts-mode is an excellent place to suggest that the LSP server is for "foo" is "fools". Jo=C3=A3o