From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#69094: [PATCH] Add sml-mode entry to 'eglot-server-programs' Date: Tue, 13 Feb 2024 09:40:56 +0000 Message-ID: <878r3o8zx3.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13248"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com To: 69094@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 13 10:42:11 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 1rZpIo-0003G2-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Feb 2024 10:42:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZpIX-0002Wr-0o; Tue, 13 Feb 2024 04:41:54 -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 1rZpIP-0002IB-RQ for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 04:41:45 -0500 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 1rZpIO-0000KC-PC for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 04:41:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZpIf-0003kK-Ql; Tue, 13 Feb 2024 04:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: joaotavora@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Feb 2024 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: joaotavora@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.170781728314333 (code B ref -1); Tue, 13 Feb 2024 09:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2024 09:41:23 +0000 Original-Received: from localhost ([127.0.0.1]:41560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZpI2-0003j6-V8 for submit@debbugs.gnu.org; Tue, 13 Feb 2024 04:41:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZpI0-0003ip-7k for submit@debbugs.gnu.org; Tue, 13 Feb 2024 04:41:21 -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 1rZpHh-0001FU-Pl for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 04:41:02 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZpHf-0000FF-Pw for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 04:41:01 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 92B5A240104 for ; Tue, 13 Feb 2024 10:40:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707817257; bh=JfEw0HneVA82JXHuE5h5j/ZDgKigajqbgsp0P8Wu71Q=; h=From:To:Subject:OpenPGP:Date:Message-ID:MIME-Version:Content-Type: From; b=UZIx5A+WNgiyUNzxSf7ysU5gWPWjkt5uCxtZJlv0L4/+c7KfHrzv8Q+zldOe6XTGa RGafskRcEsMe/FyeKiVKw8lJijjqTR7DAaR32B2G5EmEHkBZWKQrMccrl/m/+jVe4B JFWVN/sj3iunUCh6NlpwREUni+u6pBp2Tk75LS41QFUj+dNhHRIHNz+GbtM2Tg6olO omyxvztpfH7ClLhjl/f3crYdSNDyvrWakR2cpkIGYGn+/iffD3029jjmI+iUuINgC1 /HlTgSlzyd4HWOJNttdscOEXSIUt0a+7PY9NHDuCbT3yl+SywU/Ffy70vsjLeVGf11 yrwZlWt1LODEA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TYxCY1z0kz9rxV for ; Tue, 13 Feb 2024 10:40:57 +0100 (CET) OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: 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:279948 Archived-At: --=-=-= Content-Type: text/plain There is a new LSP server for Standard ML; it's not complete yet, it appears to work without any issues when I built it from source: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-sml-mode-entry-to-'eglot-server-programs'.patch Content-Description: [PATCH] Add sml-mode entry to 'eglot-server-programs' >From c044db0dc8cc95fd7c28011515bf80e3319dabf4 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Tue, 13 Feb 2024 10:38:48 +0100 Subject: [PATCH] Add sml-mode entry to 'eglot-server-programs' * lisp/progmodes/eglot.el (eglot-server-programs): Use the "millet" LSP server (https://github.com/azdavis/millet). --- lisp/progmodes/eglot.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 2f32a8e6eda..f341428cac3 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -310,7 +310,10 @@ eglot-server-programs ("vscode-markdown-language-server" "--stdio")))) (graphviz-dot-mode . ("dot-language-server" "--stdio")) (terraform-mode . ("terraform-ls" "serve")) - ((uiua-ts-mode uiua-mode) . ("uiua" "lsp"))) + ((uiua-ts-mode uiua-mode) . ("uiua" "lsp")) + (sml-mode + . ,(lambda (_interactive project) + (list "millet-ls" (project-root project))))) "How the command `eglot' guesses the server to start. An association list of (MAJOR-MODE . CONTACT) pairs. MAJOR-MODE identifies the buffers that are to be managed by a specific -- 2.43.0 --=-=-=--