From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= Newsgroups: gmane.emacs.devel Subject: Re: Elisp LSP Server Date: Wed, 03 Nov 2021 21:06:46 +0100 Message-ID: <97672d50-e183-445d-9661-5fec61ae5a96@www.fastmail.com> References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <8100571.MQnaI0vtd3@galex-713.eu> <2131617.6ipFHDhFrr@galex-713.eu> Reply-To: jostein@kjonigsen.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0b6e470231c5434791ba7e385e60a07f Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="952"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e Cc: "Ergus via Emacs development discussions." To: "Richard M. Stallman" , "Alexandre Garreau" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 21:08:29 2021 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 1miMYd-000AcD-Io for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 21:08:29 +0100 Original-Received: from localhost ([::1]:42254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miMYb-0003Sg-Np for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 16:08:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMXS-0002LU-Cg for emacs-devel@gnu.org; Wed, 03 Nov 2021 16:07:14 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:40317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMXP-0001OI-JR; Wed, 03 Nov 2021 16:07:14 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8C6D0320070D; Wed, 3 Nov 2021 16:07:07 -0400 (EDT) Original-Received: from imap47 ([10.202.2.97]) by compute3.internal (MEProxy); Wed, 03 Nov 2021 16:07:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=mime-version:message-id:in-reply-to :references:date:from:reply-to:to:cc:subject:content-type; s= fm1; bh=DcyAjZ6h4W82dmwm3r0uEEqniyi74aMuy9ZpMGSuIVo=; b=nlAEuj/u msLyt0PsmjtpR1Z3srkF5mF82YxQ4T2955CQCaAPXRShCjo4KVYsfAL1Svdt8AKi VvlEoDRYvktxzQ7Sr+j5Amd7fbcvNoAVmlSCVTG882xmsmz57qRGdbKSoZTrGOZt iLF2QCMhsmm61K8/4IV4VpftiEsgkKK8lxO0UUWL3eQNG/zrqcATM52EBsScX57E gtajwCA8y66blGN8YUi1nhJhDOt0lboJZ5AVNYmy8GR3qA3ON1lfWKvxdOSIh2Hi sXv+5JwEzhsmLn7tt67z9bnukSKh3PNShqxfSe5Z/zX6Aet7auyFXr2GlRDXusfH C0d/LzHyiDCC+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:reply-to:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=DcyAjZ6h4W82dmwm3r0uEEqniyi74aMuy9ZpMGSuIVo=; b=CwkCTbyh dHxPbP4Cj/GB7CW0x+Goz6bnxeelbHkWqa8ffb9Q4ttORXcsOiWhR2kdi+4aFc4f MMPhBm5+7V7wUOfOA/55JKvQ+pqXv8zMtKV5wAlKOklL+gmCYecEnHxGHFdNotvb WtpK+71r1aN2SPhb+RcZk9FDBEDylso94I1VDxxV/MHBF70WGARBEmzWZ7BwBFV7 8dACb1kM//pygB2jI2QbVBAwxytRmKcAShIz2ihMWG9iELplJ9TkWBWhifEpbi/W u7mADy0TgZFQ5NEAAxlz4J1hYtyUNAP7EtottyZH0XjYu07B3XkFYB3Ri2Fmd/GL 1WfQG716t51CSA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtddvgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhrhfvufgtsegrtderreerreejnecuhfhrohhmpeflohhs thgvihhnpgfmjhppnhhighhsvghnuceojhhoshhtvghinhesshgvtghurhgvrdhkjhhonh highhsvghnrdhnvghtqeenucggtffrrghtthgvrhhnpeegjeelieeihfduvedvfedukeei heeiffduueevgfeuvdekhfeghfeitdelffehteenucffohhmrghinhepkhhjnhhighhsvg hnrdhnohdpshhtrghllhhmrghnrdhorhhgpdhgnhhurdhorhhgpdhfshhfrdhorhhgpdhi nhhtvghrnhgvthhhrghllhhofhhfrghmvgdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhsthgvihhnsehsvggtuhhrvgdrkhhj ohhnihhgshgvnhdrnhgvth X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id A88622740063; Wed, 3 Nov 2021 16:07:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=64.147.123.19; envelope-from=jostein@secure.kjonigsen.net; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.devel:278623 Archived-At: --0b6e470231c5434791ba7e385e60a07f Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable > How does a server know the names of files on your computer? Hey Richard.=20 An LSP-server is actually software running on your own machine, but in a= different process. And it=E2=80=99s very often free software too! Thus a client-server architecture with corresponding terms.=20 For someone not intimately into LSP as a protocol, I can see how that ca= n be confusing.=20 -- Vennlig hilsen Jostein Kj=C3=B8nigsen jostein@kjonigsen.net =F0=9F=8D=B5 jostein@gmail.com https://jostein.kj=C3=B8nigsen.no On Wed, Nov 3, 2021, at 04:18, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >=20 > > To me it would mean to have something written in the page=E2=80=99= s source that=20 > > would trigger emacs to be launched, and possibly its window to be=20 > > displayed as part of the page (that is: without decoration or abil= ity to=20 > > be moved, and it would scroll with the page=E2=80=99s content and = wouldn=E2=80=99t be=20 > > displayed if the browser=E2=80=99s window=E2=80=99s not). >=20 > It sounds like this would turn Emacs into a sort of widget for use by > websites. That's not what we want Emacs to be. >=20 > > What I would imagine would be for instance or=20 > > possibly with attributes specifying that we want to open it with e= macs or=20 > > at line n (I=E2=80=99m sure standards exist for those, there is ce= rtainly some=20 > > anchor syntax for within github to point at a line, something like=20 > > file.c#l123). >=20 > How does a server know the names of files on your computer? > Why does it want you to edit some specific file? >=20 > > open at line, open with a certain mode enabled, open several files= at once,=20 > > open an svg file either as an image or as source, etc. >=20 > > the main one being =E2=80=9Copen at line=E2=80=9D >=20 > I can understand what it means to specify to go to a certain position > in a file while visiting it in Emacs, but why would a web site > do such a thing? >=20 > The scenarios that I can envision are unethical ones, where your compu= ting > is done by a web site run by someone else, and thus not under your con= trol. > I can't think of an ethical scenario that would use this. >=20 > Can you describe one? >=20 >=20 > --=20 > Dr Richard Stallman (https://stallman.org) > Chief GNUisance of the GNU Project (https://gnu.org) > Founder, Free Software Foundation (https://fsf.org) > Internet Hall-of-Famer (https://internethalloffame.org) >=20 >=20 >=20 >=20 --0b6e470231c5434791ba7e385e60a07f Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
> How d= oes a server know the names of files on your computer?
Hey Richard. 

An LSP-serve= r is actually software running on your own machine, but in a different p= rocess. And it=E2=80=99s very often free software too!
Thus a client-server architecture with corresponding terms.&= nbsp;

For someone not intimately into LSP a= s a protocol, I can see how that can be confusing. 

<= /div>
--
Vennlig h= ilsen
Jostein Kj=C3=B8nigsen
=

http= s://jostein.kj=C3=B8nigsen.no

On Wed, Nov 3, 2021, at 04:18, Richard Stallman wrote:
[[[ To any NSA a= nd FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemie= s,     ]]]
[[[ foreign or domestic, re= quires you to follow Snowden's example. ]]]

  > To me it would mean to have something written in the page=E2= =80=99s source that 
  > would trigger emacs = to be launched, and possibly its window to be 
 = > displayed as part of the page (that is: without decoration or abil= ity to 
  > be moved, and it would scroll wit= h the page=E2=80=99s content and wouldn=E2=80=99t be 
  > displayed if the browser=E2=80=99s window=E2=80=99s not).

It sounds like this would turn Emacs into a = sort of widget for use by
websites.  That's not what = we want Emacs to be.

  > What I wou= ld imagine would be for instance <embed src=3D"file.c" /> or =
  > possibly with attributes specifying that we w= ant to open it with emacs or 
  > at line n (= I=E2=80=99m sure standards exist for those, there is certainly some = ;
  > anchor syntax for within github to point at = a line, something like 
  > file.c#l123).
=

How does a server know the names of files on y= our computer?
Why does it want you to edit some specific f= ile?

  > open at line, open with a = certain mode enabled, open several files at once, 
&n= bsp; > open an svg file either as an image or as source, etc.

  > the main one being =E2=80=9Copen at li= ne=E2=80=9D

I can understand what it means = to specify to go to a certain position
in a file while vis= iting it in Emacs, but why would a web site
do such a thin= g?

The scenarios that I can envision are un= ethical ones, where your computing
is done by a web site r= un by someone else, and thus not under your control.
I can= 't think of an ethical scenario that would use this.

<= /div>
Can you describe one?


<= div>-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the = GNU Project (https://gnu.org)
<= div>Founder, Free Software Foundation (https= ://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)




<= div>
--0b6e470231c5434791ba7e385e60a07f--