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?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#61868: 29.0.60; Eglot: setting "workspace" configurations should be easier Date: Tue, 28 Feb 2023 19:33:42 +0000 Message-ID: <87o7pdpotl.fsf@gmail.com> References: <878rgiar9o.fsf@gmail.com> 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="26026"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 61868@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 20:32:43 2023 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 1pX5iN-0006eS-P2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 20:32:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX5i7-0001G6-Lp; Tue, 28 Feb 2023 14:32:27 -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 1pX5hi-0001Dj-G9 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 14:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX5hi-0008Fr-74 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 14:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pX5hh-0001Zo-SW for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 14:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2023 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61868 X-GNU-PR-Package: emacs Original-Received: via spool by 61868-submit@debbugs.gnu.org id=B61868.16776127186048 (code B ref 61868); Tue, 28 Feb 2023 19:32:01 +0000 Original-Received: (at 61868) by debbugs.gnu.org; 28 Feb 2023 19:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:52036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX5he-0001ZR-9t for submit@debbugs.gnu.org; Tue, 28 Feb 2023 14:31:58 -0500 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:37432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX5hb-0001ZA-UJ for 61868@debbugs.gnu.org; Tue, 28 Feb 2023 14:31:57 -0500 Original-Received: by mail-wm1-f46.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so10373772wms.2 for <61868@debbugs.gnu.org>; Tue, 28 Feb 2023 11:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677612708; 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=jbbpceK0ICzKTdSYGzO7RTQVFMtfn2ncWzuXEciEAgY=; b=jr0raNdaUMQpP9FZ4IDOrPyAWo1bISDT09hKlr98Ode9Az6rn/0N7VZk39hPTlKLQX dLGWCMx1yaSThTjeUoxrEL9GNk4unXATSUgiHlAQX7fugVCinSlInPa50DX9y5RpUT2C cX4r2L+w/iQ+C26EYGIPOYZ4CSZKlEnyXr8nfao0ebSJ9xMKNJRa+CkJhK5yOBEe/lPf c2Jizj6+fw3AETqddMTZtmV39aM2ctT0Fwxb9eFZ+YnDzjgrE8hCnqceJ83gimWL++sL xP3XhLa+U43/HSxNRO2nDygc5hJ1nJ3yoU/ThwzqCkQeFRRkb+86+2rUbWllD/nKoro0 lMwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677612708; 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=jbbpceK0ICzKTdSYGzO7RTQVFMtfn2ncWzuXEciEAgY=; b=rp+FNKpzLI0r9fyry6uOx6Z5GSdGtOzIN9z5viluz1lg+MEbdF7VoeYD4tZXLUfHv6 dkPsVIYN2aDdhv477qqGLZ+9SgPsM75vMQbTICeKwVxrrruGzYBr78H4+7Ky924m0O+I UKtG8NFHh03dQHvSWeQI8CS7lP3qr6QUPyclRcYaQkNZqLgmQZO0IFZC1Lhx2kKq/YXO OoOjyhuxI/f1ShgqqP4k/pn60B0f9P4BBqoH1rCALnUIWuXBgvOAPKI6VO1cZNCJmt1E pc3nVXKxBYh0BEZHnydH1g7ZQsV/B10E5PYvV03HHWGNEEp/5K9Zr/qoKe1rpxEH24hg 5I8Q== X-Gm-Message-State: AO0yUKW3wwgBTqRubgbb/Rsd78Hl3qoJTR6F6DH3JGEMiQu27cnfjwJm d0AX1C8GH7vzsCiWfQoaSR2AsysBGxA= X-Google-Smtp-Source: AK7set8/W73ihaI/+OTb16g4O5inyArkT8bpRfKMgita4rQS/xNS/wJGoAt/qVfgqQkPfLTPtlOW7Q== X-Received: by 2002:a05:600c:4d24:b0:3eb:3986:9bfc with SMTP id u36-20020a05600c4d2400b003eb39869bfcmr3076875wmp.37.1677612708626; Tue, 28 Feb 2023 11:31:48 -0800 (PST) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id bd12-20020a05600c1f0c00b003e0015c8618sm17085056wmb.6.2023.02.28.11.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 11:31:48 -0800 (PST) In-Reply-To: <878rgiar9o.fsf@gmail.com> (Augusto Stoffel's message of "Tue, 28 Feb 2023 13:49:55 +0100") 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:257007 Archived-At: Augusto Stoffel writes: > I would suggest adding a refined version of this, using a regular buffer > for input. Moreover, one could allow editing the configuration as a > JSON (perhaps also retaining the option to edit as a plist). This would > be a natural extension of the existing > `eglot-show-workspace-configuration' command. I like this idea. I agree it's crazy hard to set and get right. But this idea needs to be refined indeed. I'm not crazy about adding this complexity to Eglot, especially because there's nothing really eglot-specific about it. It could be used for any variable you want to add to the current project's root .dir-locals.el. But that involves much more consultation in emacs-devel. Here's an idea. Let's make a bare-bones eglot-show-workspace-configuration that simplifies this 80%. The other 20% can for later. In the patch I sent for the other "workspace configuration" bug, the .dir-locals.el is consulted late (actually it is even now). So a simple implementation of eglot-edit-workspace-configuration could be just: (defun eglot-edit-workspace-configuration () (interactive) (find-file (expand-file-name ".dir-locals.el" (project-root (project-cu= rrent))))) My bet is that that two-liner would go a long way. Jo=C3=A3o