From: "João Távora" <joaotavora@gmail.com>
To: emacs-devel@gnu.org, Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: master 31945b6c3f: * lisp/progmodes/eglot.el (eglot): Ensure managed-major-mode is a list
Date: Tue, 25 Oct 2022 10:35:22 +0100 [thread overview]
Message-ID: <CALDnm50K7Ay7TMSSArzWEB9BTSZ9o6Ap6GdbF3_o0rEC5fXWwQ@mail.gmail.com> (raw)
In-Reply-To: <CALDnm50rTzxjy=bVPAa_ZM4AWgA+LN6Kn73gNvjJmdnvp7A+bQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3286 bytes --]
Also this patch breaks M-x eglot completely (!), hehe but that was
another type of oversight that I myself commit more than occasionally.
I've just fixed it.
João
On Tue, Oct 25, 2022 at 10:29 AM João Távora <joaotavora@gmail.com> wrote:
> Hello Stephen,
>
> This is a relatively minor nit, but please, in future commits to the file
> lisp/progmodes/eglot.el (and maybe other files), try to ensure that
> whitespace
> which is unrelated to the thing being fixed or added does not creep in.
> It
> makes browsing the history of the file (which I've taken some care to
> preserve)
> much easier.
>
> Personally, I'm quite OK with reviewing whitespace-only cosmetic patches
> to that
> file, as long as they are in separate commits.
>
> If in doubt, please run the final patch by me.
>
> João
>
>
> On Tue, Oct 25, 2022 at 10:18 AM Stephen Leake <
> stephen_leake@stephe-leake.org> wrote:
>
>> branch: master
>> commit 31945b6c3fcbdb6f242f0063811d2fb91e4520cd
>> Author: Stephen Leake <stephen_leake@stephe-leake.org>
>> Commit: Stephen Leake <stephen_leake@stephe-leake.org>
>>
>> * lisp/progmodes/eglot.el (eglot): Ensure managed-major-mode is a list
>> ---
>> lisp/progmodes/eglot.el | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
>> index 71001ba680..432631691c 100644
>> --- a/lisp/progmodes/eglot.el
>> +++ b/lisp/progmodes/eglot.el
>> @@ -229,7 +229,7 @@ language-server/bin/php-language-server.php"))
>> (html-mode . ,(eglot-alternatives
>> '(("vscode-html-language-server" "--stdio") ("html-languageserver"
>> "--stdio"))))
>> (json-mode . ,(eglot-alternatives
>> '(("vscode-json-language-server" "--stdio") ("json-languageserver"
>> "--stdio"))))
>> (dockerfile-mode . ("docker-langserver"
>> "--stdio"))
>> - ((clojure-mode clojurescript-mode
>> clojurec-mode)
>> + ((clojure-mode clojurescript-mode
>> clojurec-mode)
>> . ("clojure-lsp"))
>> (csharp-mode . ("omnisharp" "-lsp"))
>> (purescript-mode .
>> ("purescript-language-server" "--stdio"))
>> @@ -1078,6 +1078,7 @@ MANAGED-MAJOR-MODE, which matters to a minority of
>> servers.
>>
>> INTERACTIVE is t if called interactively."
>> (interactive (append (eglot--guess-contact t) '(t)))
>> + (setq managed-major-mode (eglot--ensure-list managed-mode))
>> (let* ((current-server (eglot-current-server))
>> (live-p (and current-server (jsonrpc-running-p
>> current-server))))
>> (if (and live-p
>> @@ -2898,7 +2899,7 @@ for which LSP on-type-formatting should be
>> requested."
>> (defun eglot--hover-info (contents &optional _range)
>> (mapconcat #'eglot--format-markup
>> (if (vectorp contents) contents (list contents)) "\n"))
>> -
>> +
>> (defun eglot--sig-info (sigs active-sig sig-help-active-param)
>> (cl-loop
>> for (sig . moresigs) on (append sigs nil) for i from 0
>>
>>
>
> --
> João Távora
>
--
João Távora
[-- Attachment #2: Type: text/html, Size: 4698 bytes --]
next prev parent reply other threads:[~2022-10-25 9:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <166668943749.31970.9379739764487638921@vcs2.savannah.gnu.org>
[not found] ` <20221025091717.DD9A3C0E4BF@vcs2.savannah.gnu.org>
2022-10-25 9:29 ` master 31945b6c3f: * lisp/progmodes/eglot.el (eglot): Ensure managed-major-mode is a list João Távora
2022-10-25 9:35 ` João Távora [this message]
2022-10-27 20:13 ` Richard Stallman
2022-10-28 5:42 ` Eli Zaretskii
2022-10-28 8:32 ` João Távora
2022-10-28 11:30 ` Eli Zaretskii
2022-10-28 19:45 ` Stefan Kangas
2022-10-29 5:56 ` Eli Zaretskii
2022-10-29 6:52 ` Stefan Kangas
2022-10-29 7:24 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALDnm50K7Ay7TMSSArzWEB9BTSZ9o6Ap6GdbF3_o0rEC5fXWwQ@mail.gmail.com \
--to=joaotavora@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@stephe-leake.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).