From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Wed, 8 Mar 2023 22:52:02 +0700 Message-ID: References: <86sfeisu49.fsf@stephe-leake.org> <87356gvkkb.fsf@gmail.com> <87r0tz8jag.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="16529"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , Yuan Fu , Stephen Leake , Emacs developers To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 08 16:52:30 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 1pZw5e-0004Af-0X for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Mar 2023 16:52:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZw5S-0003OJ-AI; Wed, 08 Mar 2023 10:52:18 -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 1pZw5R-0003O8-A5 for emacs-devel@gnu.org; Wed, 08 Mar 2023 10:52:17 -0500 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZw5P-0000Q9-PH for emacs-devel@gnu.org; Wed, 08 Mar 2023 10:52:17 -0500 Original-Received: by mail-wr1-x432.google.com with SMTP id l25so15861974wrb.3 for ; Wed, 08 Mar 2023 07:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678290734; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oUchmm2MONL8P6Nv9AScww8XWhF2W+QjymqfjfHAmrQ=; b=VEKKOuIn50htiHu13F2y3OPvvImJ4/y9am2Od85jVpx96Zoeh5y6kQQMeZ7mwcC7Dr a6AQFUr86ENy+E4L4MV6O7yVmGGsFAGmuCeYbmcYBJQkvWRX2dSPyJVNz5AD+rG1oUAT FyID/84ARppdMGoetMEOeOFngFhJrh/HYsf/zV1ODLobUoDb2St5JqL4sir9He7LoOqZ M3cMW91rV1CDP3HH2JyD4hPIIVRVQ21vhxWYeO9mJILSr1/dI0+i0Vm1t/qFzQ9XdnSi QfbT3Qzd6W8A59IiOVlIFfzfbUZDPGDJVTcj6xNoHe9coJ0P8IYBciEY65+rKLNKHzw/ gtEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678290734; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oUchmm2MONL8P6Nv9AScww8XWhF2W+QjymqfjfHAmrQ=; b=6QzDUUhGzSxrFbAx/zhkqxk7lU717Ul8zRdkvr2CAwPU6lwg/UQE0m7FUyW1oXM6OY UaNdqVetKq4gTQuPwg7pjopJqa7v6V0/XZUaP03nMRcTqaRXbMY16yuL+miCYHgf8Zga SfufxvPhyUXr3UBEDYB2hWG4kK3s/6nmNf9ZrG3oExrcZA0PjonVAKd90JGkiJXd66sJ f66E02kODJdpH14x2PXycnk/tM8guwjANmJ4gy01/3oE/dY5LlLxj4e8kHEpRoY01UaJ Fh2kRLSM0qjeKes+C0oGJnYKaMTuYDyAmiHIuXFNcnriLklT65WyBRGpocVIcUb1KPJt uizA== X-Gm-Message-State: AO0yUKVygJdjGDWoAdaWqK9hJx+ZzCHEL7iY7FSY4agHd74XLyGt0kMv of+lqNDfc7OdF7Z/nVWP+GNd7wKvD42KMWzAonE= X-Google-Smtp-Source: AK7set+TbwzrFLfhp7JyiUJNtjYqjU3PWYDEMLwGXowasSPLgpX2EeMe9sWtqFJ9hh/ROFzc4PiwvscB5rQ7Myj5eiY= X-Received: by 2002:a5d:5951:0:b0:2ce:7219:4d64 with SMTP id e17-20020a5d5951000000b002ce72194d64mr1870498wri.11.1678290733990; Wed, 08 Mar 2023 07:52:13 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x432.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:304143 Archived-At: On Wed, 8 Mar 2023 at 22:27, Jo=C3=A3o T=C3=A1vora w= rote: > > Dotted notation is a common informal convention for addressing a > > subtree (or, in particular, a leaf) of a JSON structure. > > OK. So if someone puts this function elsewhere and Eglot > can take advantage, that's fine and dandy. Where would you > put a dotted-settings-to-plist function? I do not know if I would at all. As I said, it is an informal convention. It skirts a number of corner cases, and as soon as you try to build a sound implementation, you are forced to address those, which breeds incompatible dialects. (As a few examples, on the first sight, it looks as if the dotted path is a dot-separated concatenation of unquoted object keys going from the root object. What do you do if one of the keys contains a dot? a space? What if one of the keys being traversed is an empty string? What if you need to traverse an array?) I just expect people to be able to read =E2=80=98rust-analyzer.assist.emitMustUse (default: false)=E2=80=99 in docu= mentation and write { "rust-analyzer": { "assist": { "emitMustUse": true } } } in a JSON config or rust-analyzer: assist: emitMustUse: true in YAML.