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: Tue, 6 Aug 2024 16:34:00 +0100 Message-ID: References: <87sevtz8xg.fsf@gmail.com> <86msm1z8c4.fsf@gnu.org> <87ttg8k9l6.fsf@gmail.com> <86frrszbep.fsf@gnu.org> <87o765k7ze.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007b3ffc061f0586a6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 72343@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 17:35:56 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 1sbME7-0002Be-3M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 17:35:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbMDt-0005e5-Ju; Tue, 06 Aug 2024 11:35:41 -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 1sbMDq-0005dl-Lh for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:35:38 -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 1sbMDq-00077u-CC for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:35:38 -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=wT0RRwYhnkXOkksZFgdMj6XnKuYmc+D3MbbkJIkefaI=; b=bDEoXExRd4ey41mKTK/Q2ouszt99i4n2/T6vVdKjidvkpmCp1JJPM9vKaWi7vai8l9fFQ+Z9EYtuDN3TxVm5M35llGcCh9oPefZjQZPxp56koLXDs/25BOulg0gKzR5/nh24VM8HQlBFtzph8yWIvl4F2FLgj2g9r26h6tagZNQ+UJPhje6nPqtED1IdNO+YVjLX7WFgP5EE6tLNc+/l7f3RoeQ9eU0Sq5CG1nw4lTbqALvs/fXe2cEwq8Q60ZNdjmITNUo2/NYrE6D2AdWdZu9biejjInrqVP4M9mHCi/dbvn4YbyUS4qScQqjKMDbj4q+ydGdESn8gVmm3+SOakg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbMEE-0001Qf-8b for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:36: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: Tue, 06 Aug 2024 15:36: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.17229585445457 (code B ref 72343); Tue, 06 Aug 2024 15:36:02 +0000 Original-Received: (at 72343) by debbugs.gnu.org; 6 Aug 2024 15:35:44 +0000 Original-Received: from localhost ([127.0.0.1]:32915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbMDw-0001Pv-Fs for submit@debbugs.gnu.org; Tue, 06 Aug 2024 11:35:44 -0400 Original-Received: from mail-oa1-f41.google.com ([209.85.160.41]:57796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbMDt-0001Pd-TE for 72343@debbugs.gnu.org; Tue, 06 Aug 2024 11:35:42 -0400 Original-Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-2689f749702so382708fac.3 for <72343@debbugs.gnu.org>; Tue, 06 Aug 2024 08:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722958452; x=1723563252; 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=wT0RRwYhnkXOkksZFgdMj6XnKuYmc+D3MbbkJIkefaI=; b=fPlIBXYU/sRtaEE/IY8c3omePzapPvA69Oe0bBYenVIB9wJSnV9qwtJdkMVwdvaAwq shP3Wx9XVzAGbBjWH1D4i+WauX+Y3hhzOb9Ejl4DQMY9o2joB+J7nlg04KQlPnOPjvgg ocjNjY8iMSuKoIkElobzFEjZErzcuTc2zsx+qMt9UCXVhI18WPc36E/ksAX6OR3fkfWu wjAyT/P4GYkr6Elgg0N98/RjTa5YMAyMtw27MaiX+IKQxPTBPYgJqlMTCzbCE3/9YIqU ZoMhgjUZdVUhPK0/dr8Avs8m+3jLoXpiIwb/iKt3UemMgd8ZnshFRrer6zSIf8cXGy/l aUGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722958452; x=1723563252; 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=wT0RRwYhnkXOkksZFgdMj6XnKuYmc+D3MbbkJIkefaI=; b=DLp9QHkw8333iYhnPOfy90bJH1lz9Yc3uijq/ZN5aJbJVV3NeNqGRtNsbw+ML0ZUzf 7s6qVyaip1315lpY26EsWxBMrRr89fewL0/zlx2r9oHDQge8wIXGiMxGOrvVwSQcZzJB UlB/3bIOw753evifpyWblNIig4fzm3TC0SnR8+jDSdQ/iZV+UK2VA1rT3z66dRiADXRP Gc5KJlPrzFKdXRnO7/qzAWVPr/cohfOh56WFioZNC9/SuzhgRysIKtyxC9Nyg6bpbhz6 OBs53dzergy5oGQ1C5tglFrRrSJnBzit3ojdr76phqCbeb6g5VEvb9KSx0uMr4GWZygH a5FQ== X-Gm-Message-State: AOJu0YwkFn4b1LwbdTOP3RW2fa0/gn3c12qHhjsmiYQUQ1Qdsr63EnUr JZPsA/q7TnGPsdAhAYwRD+FNjGrut7G3TG8WmdN/apJB+L+Dovurd383qnwS5dSaE7hq6O8KxSf gwS034IHdoa1GmWXZCFL6tvXaY3c= X-Google-Smtp-Source: AGHT+IGVc07NSZnMXsZJ7vc1PvpqqqYRp6EpfqrLVwtfYIcmzuEDl1/smPqFQHR5+6kws6ACcYizBY+xkDOnMaMEsC0= X-Received: by 2002:a05:6870:6586:b0:25d:7cc4:caa8 with SMTP id 586e51a60fabf-26891a81021mr19233843fac.10.1722958451783; Tue, 06 Aug 2024 08:34:11 -0700 (PDT) In-Reply-To: <87o765k7ze.fsf@gmail.com> 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:289835 Archived-At: --0000000000007b3ffc061f0586a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable * lisp/progmodes/eglot.el (eglot-server-programs): Explicitly list modes derived from tex-mode, so that the correct language id is guessed. Won't it break when another mode is derived from it? May I ask why don't you just use the :language-id cookie which is designed exactly for this -- to avoid a guess? Jo=C3=A3o --0000000000007b3ffc061f0586a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
* lisp/progmodes/eglot.el (eglot-server-p= rograms): Explicitly list modes
derived from tex-mode, so that the corre= ct language id is guessed.

Won't it break when a= nother mode is derived from it?=C2=A0 May I ask why=C2=A0
don'= ;t you just use the :language-id cookie which is designed=C2=A0
e= xactly for this -- to avoid a guess?

Jo=C3=A3o
--0000000000007b3ffc061f0586a6--