From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Thu, 09 Mar 2023 19:32:49 +0100 Message-ID: <87mt4lai7i.fsf@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> <86edpxvm0h.fsf@mail.linkov.net> Mime-Version: 1.0 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="36095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Yuan Fu , Stephen Leake , Emacs developers To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 09 19:33:45 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 1paL5F-0009GE-6D for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Mar 2023 19:33:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paL4U-0003aC-Sg; Thu, 09 Mar 2023 13:32:58 -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 1paL4S-0003YK-Jq for emacs-devel@gnu.org; Thu, 09 Mar 2023 13:32:56 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paL4Q-0001yU-Tw for emacs-devel@gnu.org; Thu, 09 Mar 2023 13:32:56 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id a25so10939501edb.0 for ; Thu, 09 Mar 2023 10:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678386771; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5b+xW9bI30RBDLjv270ngoMNd7uMrK1rl8WHht6a2zU=; b=W2VVxTRyHyyJjUBbSgM/dg3CR2MDMC5wpapijgNo5aS7BaJbt7/qSb45P3zvk3EQd7 QYbT0UCEfSud2qRoML3PPYzunEA7oiq3ixCnqULVlVupuYLYxDJDu/TlSKi1mIu6JpPh mZewqdqLhPespELjWEfk+05GBsi+PFjVeBcjKNd1dnAmBdejteiFKvo5tsqqxERsPRp9 5kCIX7PhOups/Uz4lHkaOT7s5Us/ceMFyq4q2u36ygxPhNyAGbRAw9ZHXDpIKYwQG4I0 8dhSJKdQUmOk3aaBkuKX2sFnm58lrlAO7F77ftiUG3Vy78FeCsD0PKEIpENnkuB5Ia7Y bh9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678386771; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5b+xW9bI30RBDLjv270ngoMNd7uMrK1rl8WHht6a2zU=; b=mte9f3j9nW60b4jkHVLyaRVlOgh9TWmzAYul6NRo1Nn5OhB5L7TwuUYQhabps7NoIF yxOjrObsc8AkCTMhKsLq5D2d8cjJ7PVFffCl6TpJqullE6voJt3cxbeVWrLGonRF9QPH hCBmJ3yawFROr9TCYOhVzZnzikRuM60Hz20rBQegFBf4t1Urgygsnt97PCAjUvrRxx7R ShUz3O67HTlqpiZTT2DC7chyDvSR3wNx0JfnwkebfG4I1UQVNKDJ2VCX7V2ow5iceLel 93GumcecNhYzuikGrdVyRGPCOEoX4VfLkIXlSbX6crs5fEHlpsxWv1I93CryiMz4ePLO E9bQ== X-Gm-Message-State: AO0yUKVoDwMFSUqx+bd9r0+7aRIvrPcoBrvQudFzizQXSnI4WbXxyxCg AgeNHvM3WwFoaV+mw8iOWk/fvjCeagkYjA== X-Google-Smtp-Source: AK7set8p1deHdhFrVF3yA1fs201cYiwp3fu62bhdaTCR8+KIFXyXkmDd3tXpzSSuA7PKV7H1/u5KJQ== X-Received: by 2002:a05:6402:205c:b0:4cf:350e:344c with SMTP id bc28-20020a056402205c00b004cf350e344cmr20029571edb.28.1678386770748; Thu, 09 Mar 2023 10:32:50 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id 20-20020a508e54000000b004c07b11deb8sm37487edx.64.2023.03.09.10.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 10:32:50 -0800 (PST) In-Reply-To: <86edpxvm0h.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 09 Mar 2023 20:05:02 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x530.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:304224 Archived-At: On Thu, 9 Mar 2023 at 20:05, Juri Linkov wrote: >> > Orthogonal to Augusto=E2=80=99s function, but I think something li= ke this >> > would be nice: a function that pops up a buffer and enters recursi= ve >> > 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 bu= ffer. Plus >> > buffer content validator (eg, validate JSON), and arbitrary major >> > modes in the buffer, etc. >> >> This sounds like a generally useful thing for Emacs. There should b= e a >> version without recursive edit which calls a callback function when >> quitting. >> >> Of course, that won't work as a drop-in replacement for the read-* family >> that uses the minibuffer. > > string-edit provides callback args, and > read-string-from-buffer uses recursive-edit > in these callbacks. This is very nice indeed! It seems to be missing just one thing, which is the ability to set a major mode in the popup buffer. If I do M-x js-json-mode in the string-edit buffer, the header line disappears and C-c C-c gets unbound.