unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Stephen Leake <stephen_leake@stephe-leake.org>,
	Danny Freeman <danny@dfreeman.email>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: eglot--spinner
Date: Fri, 18 Nov 2022 08:48:54 +0000	[thread overview]
Message-ID: <CALDnm50yya8fM0kdiijnBvASQWwc5k2FaX3J4aD3PxALe3CgHA@mail.gmail.com> (raw)
In-Reply-To: <86r0y07jlw.fsf@stephe-leake.org>

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

Hi Stephen,

Look in the bug tracker: there's someone implementing a better
progress indicator with an implementation that looks very good
from what I've seen so far and uses LSP interfaces.

Here it is: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59149

We can/should try to coalesce the "eglot--spinner" with that.

Thanks,
João


On Fri, Nov 18, 2022 at 8:27 AM Stephen Leake <
stephen_leake@stephe-leake.org> wrote:

> The only uses of eglot--spinner in eglot.el are:
>
> eglot--mode-line-format, where it is added to the mode line.
>
> eglot--signal-textDocument/didChange, where it is set to (list nil
> :textDocument/didChange t), meaning didChange is done. Because this is
> set to done, it is not actually displayed in the modeline.
>
> For ada-mode, I'd like to use eglot--spinner to show "indexing"
> progress; the server is parsing all the files in the project, collecting
> cross reference information, which takes a while. The user needs to know
> when it is done; then they can use cross reference commands.
>
> So I'd like to delete setting eglot--spinner in
> eglot--signal-textDocument/didChange; otherwise that will overwrite the
> indexing progress when a buffer is edited.
>
> This would also imply making eglot--spinner public.
>
> That then raises the issue of future conflicting uses of eglot-spinner.
> So perhaps it would be better for ada-mode to add another item to the
> mode line? To do that requires a hook in eglot--mode-line-format, so it
> is grouped with the other eglot-derived mode line items.
>
> --
> -- Stephe
>


-- 
João Távora

[-- Attachment #2: Type: text/html, Size: 2281 bytes --]

  reply	other threads:[~2022-11-18  8:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18  8:27 eglot--spinner Stephen Leake
2022-11-18  8:48 ` João Távora [this message]
2022-11-18 13:28   ` eglot--spinner Danny Freeman
2022-11-19  9:36   ` eglot--spinner Stephen Leake
2022-11-19 11:24     ` eglot--spinner João Távora
2022-11-20 21:46       ` eglot--spinner Stephen Leake

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=CALDnm50yya8fM0kdiijnBvASQWwc5k2FaX3J4aD3PxALe3CgHA@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=danny@dfreeman.email \
    --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).