From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Sun, 12 Nov 2023 02:25:12 +0000 Message-ID: References: <83h6uv47e8.fsf@gnu.org> <4639d7ca-2109-864c-33c0-38e65f26f262@yandex.ru> <835ybb3txt.fsf@gnu.org> <83wn3q311i.fsf@gnu.org> <412afa2d-5dbc-52da-39c4-99be3873929c@yandex.ru> <83o7p20wdi.fsf@gnu.org> <72b09256-5a1b-8962-9e3c-7d2ffd0dc0d7@yandex.ru> <83ilf925n8.fsf@gnu.org> <95afa441-18ae-e62a-be16-be73a545bbba@yandex.ru> <54cb435f-4d51-4c0d-43d8-2991dd7ee6bd@gutov.dev> <4b0b05a2-8c83-7026-4310-327d595dfd8a@gutov.dev> <87cywg8mx0.fsf@catern.com> 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="39443"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 12 03:23:13 2023 Return-path: Envelope-to: ged-emacs-devel@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 1r2080-000A4J-Vn for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Nov 2023 03:23:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r207E-0003bf-Oi; Sat, 11 Nov 2023 21:22:24 -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 1r207D-0003bM-7c for emacs-devel@gnu.org; Sat, 11 Nov 2023 21:22:23 -0500 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r207B-0004A4-Kx for emacs-devel@gnu.org; Sat, 11 Nov 2023 21:22:22 -0500 Original-Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507bd644a96so4722641e87.3 for ; Sat, 11 Nov 2023 18:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699755740; x=1700360540; darn=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=UVZZRSmaafGpop/yRzEC3mAds+NrY9ta8pN/pk3a3nA=; b=Muv2QF8rvTPgr0WzMWJD3rOLUwwZ2xtBZDLR0MTO97rjgDylEp1/LvqPamuyxV7qus G1ARXQpHcPphCi15uFL3t8kBoBjyeCBpAFOPJdDOKwpeFJJM8X30JKSmGVc69dxls5lD ctEfPCBQczToC35MXL5ANxFCRKV4jdVqWsPD9tZlp2wPEizRZBZSZ207wChKJW6ZKidH GwYI1PDEzmXoCcrKAWnCznsIJvxH7T2zbIxXweFYLsUAPx2m0h5a7jixae1C/i8FIf3n V0bLuIfsxhOi5GgtlviZhJUABNuBK7UfDrn9V6mJiXLJjdkvwBy+JAAtLUS0J2nKCTzt yAZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699755740; x=1700360540; 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=UVZZRSmaafGpop/yRzEC3mAds+NrY9ta8pN/pk3a3nA=; b=AzY2+szZEuAWAkF2UpEgZLn+MJ5DMVCp7IH29RwMJ3LvrR/mlg589uh3073lF9L7JO blbC+lRFwoefLHG2bI+ltOKeeq97UiLNuWCDXgNnD+us0UB0wO0Sc+gcPM05cItHDyT6 kazX6NSaQ0/XMEeN0v88anVa52UK0mQOyXQvYLVpmmdaZa5InAKQI6FLYR981qGQmtsg /vvwasFYciJGgQ40sdw/dl8X8GYQVx6PWyK6QEv6Vx3CTq6f7Qc7FkcrMIweKJj+tY5P Ri0JvC4mJyijcKMk7esETEiDJbAAjrWzhLxqNEcMrO4ngV1cwZVFoGjbwSKv9rkEf91v Jcjg== X-Gm-Message-State: AOJu0YxwnzpcQ9q7h7bJM/+4SAoFUyTflRtmNTkecwlGeqYRPoDPNasq RfWIQu5wndL4BuUW3zacduVH1hVJbOSt7pNWvMA= X-Google-Smtp-Source: AGHT+IHV0/09jR0kcWqVeQpI6XbBfP36AGnaWabaUBHFLvU3x2Sx0lgqnBdmsXOnFojcQitMOcCk/CgIkpbNhtWiWDI= X-Received: by 2002:ac2:46c4:0:b0:503:fee:5849 with SMTP id p4-20020ac246c4000000b005030fee5849mr1798337lfo.53.1699755739683; Sat, 11 Nov 2023 18:22:19 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312625 Archived-At: On Sun, Nov 12, 2023 at 2:10=E2=80=AFAM Dmitry Gutov wro= te: > > On 12/11/2023 04:08, Jo=C3=A3o T=C3=A1vora wrote: > > Noooo. Eglot only does LSP things! > > Server-specific extensions are LSP things, in my book. Okay, it might > not be in eglot.el itself, but then someone will create > eglot-superduperclang.el to support those extensions. Could be, but why can't this code live in c++-ts-mode? > > The major mode may do that if > > it has another alternative backend, or if it knows it is using LSP > > with a specific language server, like 'superduperclangdfork'. > > I'm pretty sure major modes that are specific to the language server in > use are a bad idea. You may have misunderstood my suggestion. I'm saying code specific to certain languages, LSP-based on not, should always live in major mode files and have major-mode prefixes. It's always been like this. The LSP server program doesn't have to be available for themajor mode to work, but it works better with it. Major modes already do this. For example, you don't _have_ to have a Python interpreter program to use python-mode.el to edit Python code, but having one enables M-x run-python of course. And run-python uses comint.el which is a library that python.el relies on. Just like it could and should rely on eglot.el if it wants to offer M-x python-find-super-special-annotation with the 'superduperpyright' LSP server program. I'm fairly sure other major modes do this. octave-mode comes to mind, and probably others. Jo=C3=A3o