From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Poeplau Newsgroups: gmane.emacs.devel Subject: Re: eglot's interface for major modes Date: Thu, 13 Apr 2023 21:24:39 +0200 Message-ID: <871qknwplo.fsf@mailbox.org> References: <874jpr35eh.fsf@mailbox.org> <86v8i7tmda.fsf@stephe-leake.org> <87jzymzqh2.fsf@betli.tmit.bme.hu> <87ile63e02.fsf@mailbox.org> <87leiyy0na.fsf@betli.tmit.bme.hu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16643"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake , emacs-devel@gnu.org To: Felician Nemeth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 14 07:41:21 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 1pnCBV-00046A-25 for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Apr 2023 07:41:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnCAd-0000dT-Ou; Fri, 14 Apr 2023 01:40:27 -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 1pn2ax-0002TI-BI for emacs-devel@gnu.org; Thu, 13 Apr 2023 15:26:59 -0400 Original-Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pn2aX-000678-KZ for emacs-devel@gnu.org; Thu, 13 Apr 2023 15:26:59 -0400 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Py8hM5mk0z9sjr; Thu, 13 Apr 2023 21:26:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1681413987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yfTrcscXrB4pUHvVITvCNkEP9eWBa7SphA1A/63rY70=; b=aK8ubTdlZCV4JACI3eYUxjlE6FvkxRO5bObFeXE694GYay+7Ajl5mmZ9TfPYNKfMSj0R9/ 7r7Klnx7ahHHQxO23KS6GBhFTmwGqLHvWfQeYYVicHcSS7Coo+u/kNioeUJ0IJOGzt23XG v2P96K6o4hnHC7lx6PiexlehtHWR3FlLEPYCaswxLf45vaXy4exJ1PwgbAjVA5oY0v3krH 1OpkrzBRwuXd385WoCvdrigGrehl/lHprIN7XyZYF7Bo+49SBDN1qQZZnxGGjIXuyVTEPu Y2YxjB4ErkjMttcIZiBspCQp1jp4XeLwuvN6ImxhDUBZ1dPgFBWMx65efeQ5ag== In-reply-to: <87leiyy0na.fsf@betli.tmit.bme.hu> X-MBO-RS-ID: a56045c092e58595327 X-MBO-RS-META: dskr6w8gfhwu7zq59wxz5846qhrs1yig Received-SPF: pass client-ip=2001:67c:2050:0:465::201; envelope-from=sebastian.poeplau@mailbox.org; helo=mout-p-201.mailbox.org 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, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 14 Apr 2023 01:40:26 -0400 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:305303 Archived-At: >> 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. Interesting! I checked the doc string in Emacs 28 before writing my earlier message; it seems that a lot has changed since then :) > 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))) That would indeed be a good fit! I'll have a look.