GNU bug report logs -
#71823
31.0.50; project-mode-line and eglot duplicate project-name in mode-line
Previous Next
Reported by: Spencer Baugh <sbaugh <at> janestreet.com>
Date: Fri, 28 Jun 2024 14:14:02 UTC
Severity: normal
Found in version 31.0.50
Done: João Távora <joaotavora <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #83 received at 71823 <at> debbugs.gnu.org (full text, mbox):
On Wed, Jul 3, 2024 at 4:12 PM Spencer Baugh <sbaugh <at> janestreet.com> wrote:
>
> João Távora <joaotavora <at> gmail.com> writes:
>
> > On Wed, Jul 3, 2024 at 3:47 PM Spencer Baugh <sbaugh <at> janestreet.com> wrote:
> >
> >> Do any of these seem acceptable?
> >
> > No, sorry.
>
> When you originally said the patch was OK, how did you think the
> project-mode-line worked?
I said the idea was OK :-) I forgot that Eglot's own display of
the project name is not only that. It has more functionality:
the project name is only a label. So what I thought would be a mere
replacement and is actually not.
> >> > I also don't understand the other changes (i.e. to the menu) but
> >> > that's OK.
> >>
> >> The project-name in the eglot mode line entry had the server menu
> >> attached to it. Since the project-name is no longer present, the server
> >> menu isn't accessible. To make the server menu accessible again, it's
> >> added to the main eglot menu.
> >
> > Ah right. Well that unexpected side effect alone makes this
> > approach unacceptable.
>
> Why is that? What's the problem with moving the server menu to the main
> menu?
Nothing in particular, but if we're going to do that, we might as well do
the other thing, which I still think is cleaner.
> >> But I don't want to delegate the responsibility of solving this problem
> >> to the user, I want the problem to just be gone: the entries should just
> >> not duplicate project-name.
> >
> > This problem wasn't introduced by Eglot.
>
> Definitely, but it seems like it is best to fix it in Eglot.
It's best to allow the user to choose, and Eglot doesn't have a way
to let the user choose (while project has). So let's give them one
in Eglot.
João
This bug report was last modified 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.