From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: PL support Date: Sat, 9 May 2020 16:25:20 -0400 Message-ID: References: <9mmFgzvrBwjt_n_VJyaJdXINraNi5HsGpwq-0MLeKiJA7kG2BQA4uywrzjyz7lpRS0OZDpjEi8lspOKYUA7P_QsODsDew_8nbH960G55fmY=@protonmail.com> <87d07xamrg.fsf@ericabrahamsen.net> <878silajdl.fsf@ericabrahamsen.net> <87tv18pyh4.fsf@russet.org.uk> <83zhaih0oz.fsf@gnu.org> <83pnbegsvm.fsf@gnu.org> <83imh5hby1.fsf@gnu.org> <2e4e8ce9-d857-f3e3-31cf-a40dee67bd25@yandex.ru> <83y2q1dsvh.fsf@gnu.org> <2468efa6-7dbd-8634-44cc-586bb6985f49@yandex.ru> <83pnbddrfd.fsf@gnu.org> <83k11ldpxs.fsf@gnu.org> <83imh5dnun.fsf@gnu.org> <2c09354e7994f0e61271ab0078256a9dc4202171.camel@k-7.ch> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?S=C3=A9bastien_G?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 22:26:00 2020 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 1jXW2q-0000tS-QP for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 22:26:00 +0200 Original-Received: from localhost ([::1]:52026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXW2p-0001WW-SC for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 16:25:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXW2G-0000km-UI for emacs-devel@gnu.org; Sat, 09 May 2020 16:25:24 -0400 Original-Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:44620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXW2F-0002hr-Mw for emacs-devel@gnu.org; Sat, 09 May 2020 16:25:24 -0400 Original-Received: by mail-qv1-xf2c.google.com with SMTP id ck5so2669646qvb.11 for ; Sat, 09 May 2020 13:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6wD8lSwZh51zVBN9WKG6RQqqpIxpfVae83ivjZf6ds0=; b=ltqGy1hfvXny+1u9PpMVDkGzhtQQGWeToCtLQuY/3Z3XfRvu9fstAJFRbJAyzUjgLf DkadFEV6o8Vd368f12/mRPA101OjY5QELdsxZEcpc3wPO0+Z3jX31F15ZtVntt664ulp /lnhMxtNOdgcNm+C7UnV1GRFI3EyND/8KhuD8Pttqh8UzGvu+/n6G2NiR7CKo0VDCux6 2T2s88hNuCiHuqMMDDPrI70Fl1MCvDJcpOp4oTQPxucyrEco/nU/HMQ1Qgx4doPq07Rw U4yxoFIaKVIlrSPFyo2tjiBA6AnS1jxXRFQkJmL6s9f5EfN0GOluvgANVKluxB6iPdl0 7AWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6wD8lSwZh51zVBN9WKG6RQqqpIxpfVae83ivjZf6ds0=; b=a3arP5DvB1R3IUbDC+Aq3zcRT0Zwmm2uQMCNbgn/mig4SfGrwG+pIXvsYyil2CWSW/ TdTWnqb8/ZM7RfRo5rPMZ7aZ+iPGjzLazlif8ezRv40KWmcX91+0iJradCngC5LQIjGx FTCvg866eBUQSV58KS1/QoOEkBIfo9RBvWTybqZvAUxagOpTzpPGfNdPnbHCDS7tNXD+ y9rarmZFEydhOIVeTQLWn28mKsf+ulHjM4IG2cWxWO38Ac5yhOlE2OcXETleMOlOw3lG JF+x6xCOT+HdTZsCf4CM43RG+NPQWahjSKI1uTfU1oBNEdDdGJxmK7gJlSAdwFaGDXt2 b1MA== X-Gm-Message-State: AGi0PuawUfNwx1FyqAO3/JcI2wubonwCS578JwliHkjq2WXz9QEgungQ 7k1wSNih7UROgSBYbGs8cDhgczOIHwEg/vtv X-Google-Smtp-Source: APiQypKgN9LnK9OraHI/9hYr8E+0iOPNMXtHqLphT4+Bbd395wtn6cC1x+0Wd7aa/bRH7twdvFqHyA== X-Received: by 2002:a0c:e786:: with SMTP id x6mr8920449qvn.11.1589055922261; Sat, 09 May 2020 13:25:22 -0700 (PDT) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id n92sm4870607qtd.68.2020.05.09.13.25.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 May 2020 13:25:21 -0700 (PDT) In-Reply-To: <2c09354e7994f0e61271ab0078256a9dc4202171.camel@k-7.ch> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=casouri@gmail.com; helo=mail-qv1-xf2c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:249575 Archived-At: > On May 9, 2020, at 3:26 PM, S=C3=A9bastien G wrote: >=20 > Le samedi 09 mai 2020 =C3=A0 18:36 +0100, Jo=C3=A3o T=C3=A1vora a = =C3=A9crit : >> enhance eglot.el to automatically download server programs. >=20 >=20 > Maybe downloading and installing server programs can be delegate to a > new "external-tools.el" library. Something that can manage not only > language server, but any extrnal tools requested by a mode. >=20 > This library could provide an API to: > - Declare, in a single elisp function call, an external tool with a > name and how install it (which pkg and pkg manager to use) > - Let modes request the presence of specific external tool with a > single elisp function call > - Modes can, optionnaly, request the latest version of the external > tool to be present >=20 > When an external tools is requested: > - If the tool is not installed: Install it > - If the tool is already installed and latest version is required: > Update it > - If the tool is already installed and latest version is not required: > Do nothing > - When installing or updating something, ask user confirmation before > do it > - If the tool requested cannot be installed, the mode can know it and > desactivate some of its features. >=20 >=20 > "external-tools" could be useful to many modes and elisp functions. I have thought about a similar facility. While convenient for package = authors and users, maintaining the sources and installation of these = programs is a non-trivial maintenance burden and could come with = security risks. I=E2=80=99m not sure if Emacs has enough man-power for = that. Yuan