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#72343: [PATCH] Fix eglot-server-programs for TeX modes Date: Sun, 28 Jul 2024 22:31:46 +0100 Message-ID: References: <87sevtz8xg.fsf@gmail.com> <86msm1z8c4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000808aa6061e55793b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33557"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , 72343@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 23:34:05 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 1sYBWn-0008Wf-JQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 23:34:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYBWb-0003tT-7r; Sun, 28 Jul 2024 17:33:53 -0400 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 1sYBWZ-0003sx-GQ for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 17:33:51 -0400 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 1sYBWZ-000103-7X for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 17:33:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=/yvFJ+cgW3uwEflzCVgwlUQ46vj5PrTg53RukfD7KOw=; b=D/rm553x1+hA7fjZLXi0eu3CGuSAShZCuP/32g7fiD+jMp3ie7ccG8QrLsqau1aPTkgROl+7KT2eu6LNj7y0lx2YcVY47XBrMVMMtsrgv5kHnM1N4zRFFpifmXuEfsWR9t3HtYxNeYoSypQGSlBrFwOBQxhgvWuRnAkzoVCf208XOMmO1f9Zc4oD6UrzY4WmwCGh+MYa9AquIYpIojqyK8wMOnqbITZUDXIoPLGKJguIoHy3Fi8UqCxFAHsqQKpXQJpuHeZjisq9z42O1F2WdGuFZbqHQACC3g47yuOqkj2zcbq7TZTMVmDfJHxLmYue0Ze9NtljdHWqDcD8rDynDQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYBWk-0004fl-22 for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 17:34:02 -0400 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: Sun, 28 Jul 2024 21:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72343-submit@debbugs.gnu.org id=B72343.172220240017913 (code B ref 72343); Sun, 28 Jul 2024 21:34:02 +0000 Original-Received: (at 72343) by debbugs.gnu.org; 28 Jul 2024 21:33:20 +0000 Original-Received: from localhost ([127.0.0.1]:44408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYBW4-0004er-EF for submit@debbugs.gnu.org; Sun, 28 Jul 2024 17:33:20 -0400 Original-Received: from mail-oa1-f48.google.com ([209.85.160.48]:49384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYBW1-0004ec-GN for 72343@debbugs.gnu.org; Sun, 28 Jul 2024 17:33:19 -0400 Original-Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-26119999171so2075249fac.2 for <72343@debbugs.gnu.org>; Sun, 28 Jul 2024 14:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722202320; x=1722807120; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/yvFJ+cgW3uwEflzCVgwlUQ46vj5PrTg53RukfD7KOw=; b=fMcIlDW9CAz90/EWdqj2Uf1EXiO9iI7m7oD5JIw+YpwHKbHLF8BFtIlqmzZmZzBynZ CgwjNidr8slfkVthDGHFAyRz2Tdsqshnmp+THk/BLZniSNUPZLQ/Z4Bbc2hWIKDAnGjK JLN2g+7RL92iOX0p/9IokR81NutO1e1+p6r1k6K2Fy0fKbPJbSmFk4OIvr7OqWEXCcK5 JNrB5YFDfYERgswAY6r5CEnjZuSS7mVSQInia0qNaFt/iVMU5QNkYFASjJkc/KFxabyx t/OYTRf1MsvmpWPcjiN8jNf91IRaTipxaDkujggPXAcFfWU2kgdHfm+Frwp4PGJEHYNI oJ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722202320; x=1722807120; h=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=/yvFJ+cgW3uwEflzCVgwlUQ46vj5PrTg53RukfD7KOw=; b=fRIhxmXLWETQXF8/HTwJxefKjHesc4YGWfdaqMFQnSuewrzghIABuAivIPEIIsGKK6 IEbEYR84EbdtST4ZZ6oPY5KGWOXG5egXv8W6LwKImS3SozUOd33BXxP+oZnJTtVVPA6i fEwpqyVz9fHrcRG65lWICqUOfCj5yLZQpka/qQrgXusysZXO9wnIhbRo8vhsI7GeyC4N GSNbzQj7lYM3d6q+GR7AJoZQhQRyzW2VCuS6txuLDhQ8A36qewZBA+ldRsHQI84zMQoI at0NPSjvdnHFwy3iSnJGoTfInW+AdEWZwt9ljNrOiq8yqrMosVQngceTA5Eo4t9fQK4B xbcg== X-Forwarded-Encrypted: i=1; AJvYcCWHmozV9RwaWS/47uA1Bn840KK51EWxCCDt+quFQ+2EKwoVH4hPT1TB+eS/cjj0BPuqJy8/cGY2Dtkm3jjJTbtzI3BO344= X-Gm-Message-State: AOJu0YxAkJ84lX0SYo8YLy1Zt0dIQLuD+gzWvKn3HVziWCwPz2jZLvZe Qq71qXS7hevYrOwBnUMZbNP1PE1gLb6+yqpvziH9mfF12ocWnFyGDuH+BVAiOe6DTAem/7Y6pdo gRC9YXrV3qqk+7Zn4zbCarruhaDA= X-Google-Smtp-Source: AGHT+IGlcZbaav01RfCDD4S72a1BKaDxh8LbOMqjEJVHtXq8zhy+u2L/FFTuv47Tkb27uRWvtQvbyaH08Ys1Kp8VWhk= X-Received: by 2002:a05:6870:2247:b0:260:e2ea:e680 with SMTP id 586e51a60fabf-267d4d1666bmr7107608fac.10.1722202319780; Sun, 28 Jul 2024 14:31:59 -0700 (PDT) In-Reply-To: <86msm1z8c4.fsf@gnu.org> 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:289497 Archived-At: --000000000000808aa6061e55793b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 28, 2024 at 7:21=E2=80=AFPM Eli Zaretskii wrote: > > I noticed Eglot currently sends the languageId "tex" in all TeX-derived > > modes, which is not correct; it should be "latex", "bibtex", etc. If that's the goal, I think the :language-id cookie can help. Has that been tried? I think it's documented well enough here: https://joaotavora.github.io/eglot/#index-eglot_002dserver_002dprograms Also, is it an additional goal to prefer Augusto's 'digestif' sever here? Unless I'm misreading it, this change seems to have the side effect that context-mode, texinfo-mode will no longer be served by 'texlab' (by default) if the user has that installed. Probably plain-tex-mode could also be served by 'texlab'. Jo=C3=A3o --000000000000808aa6061e55793b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Jul 28, 2024 at 7:21=E2=80=AFPM E= li Zaretskii <eliz@gnu.org> wrote= :

> > I noticed E= glot currently sends the languageId "tex" in all TeX-derived> > modes, which is not correct; it should be "latex", &qu= ot;bibtex", etc.

If that's the goal, I think the :language-id cookie ca= n help.=C2=A0
Has that been tried?=C2=A0 I = think it's documented well enough here:


Also, is it an additional goa= l to prefer=C2=A0Augusto's 'digestif' sever here?=C2=A0=C2=A0
Unless I'm misreading it, this = change seems to have the side=C2=A0
effect=C2=A0 that context-mod= e, texinfo-mode will=C2=A0no longer be served=C2=A0
by 'texla= b' (by default) if the user has that installed.=C2=A0 Probably=C2=A0
plain-tex-mode could also be served by 'texlab'.
=
Jo=C3=A3o

--000000000000808aa6061e55793b--