From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Thu, 9 Mar 2023 22:26:02 -0800 Message-ID: <8275EC74-8AE5-494E-9E09-EB68D4792C01@gmail.com> References: <86sfeisu49.fsf@stephe-leake.org> <87356gvkkb.fsf@gmail.com> <87r0tz8jag.fsf_-_@gmail.com> <87lek78eyq.fsf@gmail.com> <6866252E-DA6D-4399-B4CD-06C0E44B3A03@gmail.com> <871qlyfic2.fsf@gmail.com> <86o7p2qgmh.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36514"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Stephen Leake , Emacs developers To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 07:26:36 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 1paWD5-0009Ma-NT for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 07:26:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paWCq-0007Uh-9D; Fri, 10 Mar 2023 01:26:20 -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 1paWCm-0007UT-Uo for emacs-devel@gnu.org; Fri, 10 Mar 2023 01:26:18 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paWCl-0007EA-ET for emacs-devel@gnu.org; Fri, 10 Mar 2023 01:26:16 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id u5so4538656plq.7 for ; Thu, 09 Mar 2023 22:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678429574; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=q0PvK4s0EWBkZIYGBHolH9pbL1SLMff6Qx5BNc87U5o=; b=Zx3e8dTSNAvGK/zdlrK3qD6+IcB3Tz/ySmtiofpOeOl+Uq0rZz1PXTWArbyd4LwSEj vkdem0nqLMNSS6KGrI6SzVdrxv+rVQWiEgZGoVMqpR7UvdA+ZVXxYCipyOwNBahHqkAC 5W6FQVNE4Ku9uAoIC6ij3AZLd6EElrZlndqaLbRgWY9WhOZprqhbeDl+rKMj6h2hDgyR aTgbH8yks51GsTMEiybvGOsBW9Tq8jJQ8DkMT7srSVvD/DwudQ0L7euUpRVrychbUKpI tIncW+qK5jfMUijJZ8w7M3+12RaOtFnGX1MgpXeO+WC/JIUjv/t8oxKSAhJqQIvswGk7 BjbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678429574; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q0PvK4s0EWBkZIYGBHolH9pbL1SLMff6Qx5BNc87U5o=; b=G7H/V8aF9GuOJt6Eff/ursHL47Ebs1zbjiOG7d7lYW/0/v0CYkoJOJd9W+aP91XEGD BpHvy082HT1wKF8E30G17jFBv0Bcb3Coh55F+kQHdkv7ZqsHOxORnWAMnCQohF8KeBWN sj2lJxGzgigtFlei9q2LyingC+z//LsJwPG5VaL57x+D5D2c71zUqdj/Do6TMLlBv5ry kuSmzvjwhY6Lu13ZQRc90VySLkh/GfdwoqBxfm3+LBa0/ZWBT82z5L4zlFdJC4PDzatV cZ5nUetpBqjr97zvrNWthvgUdFT8NU1Gu21UUOX2CCSSZCnX2VDwW53iW5L+NbO8c0A4 nq7g== X-Gm-Message-State: AO0yUKX/wzbZszPbuVvbAEvl379VoaETufiLFObNsmq6Ze8n1oyH2KYl drJ2rm9S7LnfJzSVOZseGE4= X-Google-Smtp-Source: AK7set+yZ9c+QBlFp8trWXfeCevVaGwZPUOBYUEO9H/10Lx73yg2rn0wPn0hG4BQPy0d//Z9WGPW6A== X-Received: by 2002:a05:6a20:6a1b:b0:cd:2d12:8176 with SMTP id p27-20020a056a206a1b00b000cd2d128176mr24551888pzk.19.1678429574221; Thu, 09 Mar 2023 22:26:14 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id k3-20020aa790c3000000b005aa60d8545esm613877pfk.61.2023.03.09.22.26.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2023 22:26:13 -0800 (PST) In-Reply-To: <86o7p2qgmh.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=casouri@gmail.com; helo=mail-pl1-x62a.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:304228 Archived-At: > On Mar 9, 2023, at 9:20 AM, Juri Linkov wrote: >=20 >>> Orthogonal to Augusto=E2=80=99s function, but I think something like = this >>> would be nice: a function that pops up a buffer and enters recursive >>> edit for arbitrary input and edit, and when you hit C-c C-c, it >>> returns the buffer content, kind of like Magit=E2=80=99s commit = buffer. Plus >>> buffer content validator (eg, validate JSON), and arbitrary major >>> modes in the buffer, etc. >>=20 >> This sounds like a generally useful thing for Emacs. There should be = a >> version without recursive edit which calls a callback function when >> quitting. >=20 > 'read-string-from-buffer' was intended to do this by relying on > 'string-edit'. You could add a new function e.g. named > 'read-expression-from-buffer' that does the same as > 'read--expression' but using a buffer instead of the minibuffer. Of course Emacs has one built-in :-) I=E2=80=99ll see if I can make some = improvement to the read-string-from-buffer functions. In particular, I = think arbitrary setup function and validator would be useful additions. Yuan=