GNU bug report logs - #78338
[PATCH] Eglot: Display number of available code actions for mode-line

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Fri, 9 May 2025 19:15:02 UTC

Severity: normal

Tags: patch

Done: Elijah Gabe Pérez <eg642616 <at> gmail.com>

To reply to this bug, email your comments to 78338 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to joaotavora <at> gmail.com, bug-gnu-emacs <at> gnu.org:
bug#78338; Package emacs. (Fri, 09 May 2025 19:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to joaotavora <at> gmail.com, bug-gnu-emacs <at> gnu.org. (Fri, 09 May 2025 19:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Eglot: Display number of available code actions for mode-line
Date: Fri, 09 May 2025 13:14:36 -0600
[Message part 1 (text/plain, inline)]
Tags: patch


I think it would be useful to have this in Eglot; lsp-mode and neovim
already provide something similar.

This is how it would look in the mode-line: [eglot:emacs/💡1]

[0001-Eglot-Display-number-of-available-code-actions-for-m.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78338; Package emacs. (Sun, 11 May 2025 13:06:04 GMT) Full text and rfc822 format available.

Message #8 received at 78338 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 78338 <at> debbugs.gnu.org
Subject: Re: bug#78338: [PATCH] Eglot: Display number of available code
 actions for mode-line
Date: Sun, 11 May 2025 14:06:13 +0100
I'm not crazy about this idea because numbers in the [eglot] mode line section
already have certain meanings and it's easy to confuse with these new
numbers.

With more or less access to internal symbols, you should be able to do this
in your own construct in your .emacs and then replace

   eglot-mode-line-action-suggestion

with sth like

   elijah/eglot-mode-line-action-suggestion

in eglot-mode-line-format, the latter doing what you want.  Please try that
and list here the symbols that you needed to use (if any).  Maybe
those can be made
external.

João

On Fri, May 9, 2025 at 8:15 PM Elijah Gabe Pérez <eg642616 <at> gmail.com> wrote:
>
> Tags: patch
>
>
> I think it would be useful to have this in Eglot; lsp-mode and neovim
> already provide something similar.
>
> This is how it would look in the mode-line: [eglot:emacs/💡1]
>
>
> --
>                                           - E.G via GNU Emacs and Org.



-- 
João Távora




Reply sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
You have taken responsibility. (Sun, 11 May 2025 18:46:03 GMT) Full text and rfc822 format available.

Notification sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
bug acknowledged by developer. (Sun, 11 May 2025 18:46:04 GMT) Full text and rfc822 format available.

Message #13 received at 78338-done <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: João Távora <joaotavora <at> gmail.com>
Cc: 78338-done <at> debbugs.gnu.org
Subject: Re: bug#78338: [PATCH] Eglot: Display number of available code
 actions for mode-line
Date: Sun, 11 May 2025 12:45:27 -0600
João Távora <joaotavora <at> gmail.com> writes:

> I'm not crazy about this idea because numbers in the [eglot] mode line section
> already have certain meanings and it's easy to confuse with these new
> numbers.

It makes sense.

> With more or less access to internal symbols, you should be able to do this
> in your own construct in your .emacs and then replace
>
>    eglot-mode-line-action-suggestion
>
> with sth like
>
>    elijah/eglot-mode-line-action-suggestion
>
> in eglot-mode-line-format, the latter doing what you want.

Fine, then this can be closed, since it is a very minor change.

-- 
                                          - E.G via GNU Emacs and Org.




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.