From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felician Nemeth Newsgroups: gmane.emacs.devel Subject: Re: eglot's interface for major modes Date: Tue, 11 Apr 2023 16:05:45 +0200 Message-ID: <87leiyy0na.fsf@betli.tmit.bme.hu> References: <874jpr35eh.fsf@mailbox.org> <86v8i7tmda.fsf@stephe-leake.org> <87jzymzqh2.fsf@betli.tmit.bme.hu> <87ile63e02.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34644"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Stephen Leake , emacs-devel@gnu.org To: Sebastian Poeplau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 11 16:06:35 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 1pmEdn-0008sP-D1 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Apr 2023 16:06:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmEd7-0005ry-Cd; Tue, 11 Apr 2023 10:05: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 1pmEd5-0005qY-VZ for emacs-devel@gnu.org; Tue, 11 Apr 2023 10:05:51 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmEd3-0006C8-Q6 for emacs-devel@gnu.org; Tue, 11 Apr 2023 10:05:51 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id jg21so20341083ejc.2 for ; Tue, 11 Apr 2023 07:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681221947; x=1683813947; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/AS1jvaLHTex7+wuIZSBpQADy1N9wb28rLdwPAdGE3s=; b=Mot9F/PzdA3eJkkoZa4bjnOkU68WytoL9knVsKc3OkSEwbNpEbPb9RC22zWQzKjkR0 1LvlRe6OlLTgIfA1n9bHXkvywGnMygrGcf7yRaQHcBRH6zCNZD8Z+QoAvBvcyodP0G7N TZ2X3CtpQUe4RVmG/92rXOW+h/Ay+Zzc3mZKy+56CgAzG9duBaIzpmQ57nQIQzTqYZvp ksFqi5pgu2RaIA43EzWiSx4PeJiNqEA7iLPLPBdSh5uDgm/5Ksrm9dsVMau1eACuc8l/ V6GOOxDgWYzGNdZDte5L2nvms8TeQVfh9YgqaUMNOTOfDPKcQ86itqlkj6fAUulntVPI 01Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681221947; x=1683813947; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/AS1jvaLHTex7+wuIZSBpQADy1N9wb28rLdwPAdGE3s=; b=KrGzXLC8RHBslbam3q4cbk+THIKi5AZXuV4ZIjgz4pauEcW/7YYYyxEabBF+CCboUg QmTc2P0SC3QV+n6SSquXg+5lLroafI6mtPNtHYPKCM+6zu+hWjR3RihemzR7LdqykuPJ K5HzPSujALPzQHBLf2qAAAjjsg44aD1X8aA4DjGSElPu7Di68863ImIi15P9DOWvhy/2 BRr/NOlh+h+TG3RlXeKCtczpSBxn3MfGni1r8Ug7SHXS/fFDPXsYZAHGE772+0wkXSLD U7lPPUTK7J23TTfW0VwTcn1MiM9VXvtQ6d905QUEgJF4lwsvwuI35nUW9+B9FcrPm/on gKcg== X-Gm-Message-State: AAQBX9fxwcmcoPrB7VQywxVdnLXWm6EOmqW5/sA1WNdlEckadg7lZf4t tZBCLY8u0WCCXpXJI7uNiiVjPwajaXU= X-Google-Smtp-Source: AKy350bBfG7+tR7N+insSUJqN0Rxgros41st0q7f+dnstp+O45+B3GX7D8amoruRl43hmfphkuxfYA== X-Received: by 2002:a17:906:a2c3:b0:92f:b290:78c with SMTP id by3-20020a170906a2c300b0092fb290078cmr9849754ejb.21.1681221946887; Tue, 11 Apr 2023 07:05:46 -0700 (PDT) Original-Received: from betli.gmail.com (catv-86-101-66-128.catv.fixed.vodafone.hu. [86.101.66.128]) by smtp.gmail.com with ESMTPSA id de8-20020a1709069bc800b0094a7655e3a8sm2489858ejc.23.2023.04.11.07.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 07:05:46 -0700 (PDT) In-Reply-To: <87ile63e02.fsf@mailbox.org> (Sebastian Poeplau's message of "Sat, 08 Apr 2023 11:37:18 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUMBwgHAgMFAAGPjY7/ //80MDHq6eqJt3pKAAABr0lEQVQ4jX2UzZKDIAzHqR177q7TPbtx2HMr6guQcrbY9txZ0fd/hA0f onXazcEJ/CD8E4Js8/HS9mwjXtqeMRxHXJkakTEm4b4GPVQW8PU8ov4fQCqeThlF60MBWdo1IXzd 2nEEZE7CEAZLwI0N/gJAhTj7ESQAX4gPgO8lyI+cvgViSVPlNomAj2M9gW40eg7VWY3cATjUcyiO Z+i03cFruGLYoUR7VyU3HihdmCEVhoDN65FXkpbSxkomOzsTQN/gySaodGb9Gdi1oSRXP46gdBWh LcUKJNdeGCWac74GKakmne0aHCFvyqJPYLsCFAVlhRTvGdzMdLHqtgRyUulyXIAH7CYQ3AB0Nody JQhAkq/qtOnbjhxdzYDkXPxlH5y4WdUAeUcX1NVJ6GR7UQEYPGWoAnA36OQNn5lRRp38vHTAp9Br LoTmvlPPDoRCKzpjG1SXT89AaT5l456BamJuMcs+NIOMzJ/s5dI6yUVcrARlruwOebfdv6gunTn4 ww3+QjGBEn5suVyLHoSGvAqREuDLN+iqZ+VcFg+HBbsJUU9+FZthbez9T+bdb+kPv2Ls6ct3hTkA AAAASUVORK5CYII= Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=felician.nemeth@gmail.com; helo=mail-ej1-x630.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 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:305238 Archived-At: >>> (defun ada-light-other-file () >> >> Would it make sense to locally set ff-other-file-alist to this? That >> way, users can globally bind ff-find-other-file and make it work with >> both c-mode and ada-light-mode. > > I may be mistaken, but my understanding of ff-other-file-alist is that > it needs to be set to a mapping between file extensions of specification > and implementation files; whatever the value, ff-find-other-file will > use the algorithm in find-file.el. Even the algorithm can be redefined. The latest version of the documentation of variable ff-other-file-alist explains the details. Eglot-x contains a possibly overly complicated example that also delegates the ff-other-file functionality to LSP servers. But it's basically (setq-local ff-other-file-alist '(("*.ext ext-mode--ff-other-file)))