GNU bug report logs - #58892
29.0.50; [PATCH] eglot-manual: Open the local info documentation

Previous Next

Package: emacs;

Reported by: Felician Nemeth <felician.nemeth <at> gmail.com>

Date: Sun, 30 Oct 2022 09:06:01 UTC

Severity: normal

Tags: patch

Found in version 29.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58892 in the body.
You can then email your comments to 58892 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 09:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Felician Nemeth <felician.nemeth <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 30 Oct 2022 09:06:01 GMT) Full text and rfc822 format available.

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

From: Felician Nemeth <felician.nemeth <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; [PATCH] eglot-manual: Open the local info documentation
Date: Sun, 30 Oct 2022 10:05:25 +0100
[Message part 1 (text/plain, inline)]
Eglot now has a beautiful documentation in info format.  This patch
let the user open it from Eglot's menu.

BTW, the menu is the mode-line and I think it cannot be accessed using
only the keyboard.  Would it make sense to put this menu in the "Tools"
part of the menu-bar as well?

Thanks.

[0001-eglot-manual-Open-the-local-info-documentation.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 10:19:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Felician Nemeth <felician.nemeth <at> gmail.com>,
 Lars Ingebrigtsen <larsi <at> gnus.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50;
 [PATCH] eglot-manual: Open the local info documentation
Date: Sun, 30 Oct 2022 12:18:29 +0200
> From: Felician Nemeth <felician.nemeth <at> gmail.com>
> Date: Sun, 30 Oct 2022 10:05:25 +0100
> 
> Eglot now has a beautiful documentation in info format.  This patch
> let the user open it from Eglot's menu.
> 
> BTW, the menu is the mode-line and I think it cannot be accessed using
> only the keyboard.  Would it make sense to put this menu in the "Tools"
> part of the menu-bar as well?

I'm unsure about any of this.  We don't do anything like that for any
other mode, AFAIR.  And Eglot's main features are already mentioned in
short in the Emacs user manual.

What do others think?  Lars, Stefan?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 12:43:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,
 Felician Nemeth <felician.nemeth <at> gmail.com>, 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50; [PATCH] eglot-manual: Open the local info
 documentation
Date: Sun, 30 Oct 2022 08:42:32 -0400
>> Eglot now has a beautiful documentation in info format.  This patch
>> let the user open it from Eglot's menu.
>> 
>> BTW, the menu is the mode-line and I think it cannot be accessed using
>> only the keyboard.  Would it make sense to put this menu in the "Tools"
>> part of the menu-bar as well?
>
> I'm unsure about any of this.  We don't do anything like that for any
> other mode, AFAIR.  And Eglot's main features are already mentioned in
> short in the Emacs user manual.
>
> What do others think?  Lars, Stefan?

I don't think it makes much sense to add this specifically for
Eglot, indeed.  It might make sense OTOH to add to the Help menu an
entry that lets you jump directly to the docs relevant to the current
modes.

It could be a submenu generated by considering the list of all currently
active minor modes (buffer-local and global) plus the current major mode
(and its parents, maybe?) and for each one of them try and find out
where they might be documented (e.g. relying on a symbol property
to map a mode to its Info node?).


        Stefan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 12:54:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: larsi <at> gnus.org, felician.nemeth <at> gmail.com, 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50; [PATCH] eglot-manual: Open the local info
 documentation
Date: Sun, 30 Oct 2022 14:53:07 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Felician Nemeth <felician.nemeth <at> gmail.com>,  Lars Ingebrigtsen
>  <larsi <at> gnus.org>,  58892 <at> debbugs.gnu.org
> Date: Sun, 30 Oct 2022 08:42:32 -0400
> 
> I don't think it makes much sense to add this specifically for
> Eglot, indeed.  It might make sense OTOH to add to the Help menu an
> entry that lets you jump directly to the docs relevant to the current
> modes.

Sure, I'm okay with providing a general feature like that.  Sounds
useful.  It could also be a variant of "C-h m", perhaps when that is
invoked with a prefix argument (so that the feature could be reachable
without a mouse).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 13:33:02 GMT) Full text and rfc822 format available.

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

From: Felician Nemeth <felician.nemeth <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50; [PATCH] eglot-manual: Open the local info
 documentation
Date: Sun, 30 Oct 2022 14:32:39 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Felician Nemeth <felician.nemeth <at> gmail.com>
>> Date: Sun, 30 Oct 2022 10:05:25 +0100
>> 
>> Eglot now has a beautiful documentation in info format.  This patch
>> let the user open it from Eglot's menu.
>> 
>> BTW, the menu is the mode-line and I think it cannot be accessed using
>> only the keyboard.  Would it make sense to put this menu in the "Tools"
>> part of the menu-bar as well?
>
> I'm unsure about any of this.  We don't do anything like that for any
> other mode, AFAIR.  And Eglot's main features are already mentioned in
> short in the Emacs user manual.

Currently, Eglot has a menu item that opens
https://github.com/joaotavora/eglot#readme.  I think opening that URL
doesn't make sense anymore since eglot.texi is the primary source of the
documentation.   Is it OK then to remove this menu item?

It seems I couldn't clearly articulate my other suggestion.  When I
write this reply I can click on the mode-line to open message-mode-menu,
but this menu is also available from the menu bar.  I'd tried to suggest
something similar to Eglot.

(The last item in message-mode-menu is "Message manual", so there is
prior art to what the patch of this bug report tries to achieve.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Sun, 30 Oct 2022 14:03:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Felician Nemeth <felician.nemeth <at> gmail.com>,
 João Távora <joaotavora <at> gmail.com>
Cc: larsi <at> gnus.org, monnier <at> iro.umontreal.ca, 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50; [PATCH] eglot-manual: Open the local info
 documentation
Date: Sun, 30 Oct 2022 16:02:13 +0200
> From: Felician Nemeth <felician.nemeth <at> gmail.com>
> Cc: 58892 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>, Stefan
>  Monnier <monnier <at> iro.umontreal.ca>
> Date: Sun, 30 Oct 2022 14:32:39 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Felician Nemeth <felician.nemeth <at> gmail.com>
> >> Date: Sun, 30 Oct 2022 10:05:25 +0100
> >> 
> >> Eglot now has a beautiful documentation in info format.  This patch
> >> let the user open it from Eglot's menu.
> >> 
> >> BTW, the menu is the mode-line and I think it cannot be accessed using
> >> only the keyboard.  Would it make sense to put this menu in the "Tools"
> >> part of the menu-bar as well?
> >
> > I'm unsure about any of this.  We don't do anything like that for any
> > other mode, AFAIR.  And Eglot's main features are already mentioned in
> > short in the Emacs user manual.
> 
> Currently, Eglot has a menu item that opens
> https://github.com/joaotavora/eglot#readme.  I think opening that URL
> doesn't make sense anymore since eglot.texi is the primary source of the
> documentation.   Is it OK then to remove this menu item?

Fine by me, but please wait for João to chime in.

> It seems I couldn't clearly articulate my other suggestion.  When I
> write this reply I can click on the mode-line to open message-mode-menu,
> but this menu is also available from the menu bar.  I'd tried to suggest
> something similar to Eglot.

It's okay to display a "Minor mode menu" from the mode-line's mode
lighter, yes.  We do that for other minor modes.  But we should be
careful not to make that menu too long.

> (The last item in message-mode-menu is "Message manual", so there is
> prior art to what the patch of this bug report tries to achieve.)

I think that's an exception rather than a rule.  Mode-specific menus
rarely have an item for their manuals.  And Eglot should need that
less than others, since most of its features just provide backends for
existing Emacs features.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Mon, 31 Oct 2022 13:23:01 GMT) Full text and rfc822 format available.

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

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, Felician Nemeth <felician.nemeth <at> gmail.com>,
 monnier <at> iro.umontreal.ca, 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50;
 [PATCH] eglot-manual: Open the local info documentation
Date: Mon, 31 Oct 2022 13:22:56 +0000
[Message part 1 (text/plain, inline)]
On Sun, Oct 30, 2022 at 2:02 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

>
> > Currently, Eglot has a menu item that opens
> > https://github.com/joaotavora/eglot#readme.  I think opening that URL
> > doesn't make sense anymore since eglot.texi is the primary source of the
> > documentation.   Is it OK then to remove this menu item?
>
> Fine by me, but please wait for João to chime in.
>

Yes, it's fine. Show a patch and or push directly if you have permissions.


> > (The last item in message-mode-menu is "Message manual", so there is
> > prior art to what the patch of this bug report tries to achieve.)
>
> I think that's an exception rather than a rule.  Mode-specific menus
> rarely have an item for their manuals.  And Eglot should need that
> less than others, since most of its features just provide backends for
> existing Emacs features.
>

Yes, that's true. But users are not really familiar with all of them: they
don't
have the visibility that Eglot has.  So Felicián's idea makes sense to me,
judging from these years of watching the Eglot bug tracker (where Felicián
is a long-time regular, which would explain why he thinks this feature is
useful).

If there was a keybinding C-xyz so that C-xyz RET eglot RET would land
one in the Eglot manual within Emacs, I think that would come some
way.  Maybe there is this binding?

João
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58892; Package emacs. (Mon, 31 Oct 2022 13:37:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: larsi <at> gnus.org, felician.nemeth <at> gmail.com, monnier <at> iro.umontreal.ca,
 58892 <at> debbugs.gnu.org
Subject: Re: bug#58892: 29.0.50;
 [PATCH] eglot-manual: Open the local info documentation
Date: Mon, 31 Oct 2022 15:36:13 +0200
> From: João Távora <joaotavora <at> gmail.com>
> Date: Mon, 31 Oct 2022 13:22:56 +0000
> Cc: Felician Nemeth <felician.nemeth <at> gmail.com>, 58892 <at> debbugs.gnu.org, larsi <at> gnus.org, 
> 	monnier <at> iro.umontreal.ca
> 
> If there was a keybinding C-xyz so that C-xyz RET eglot RET would land 
> one in the Eglot manual within Emacs, I think that would come some 
> way.  Maybe there is this binding?

Yes, it's "C-h R".




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Fri, 11 Nov 2022 13:06:02 GMT) Full text and rfc822 format available.

Notification sent to Felician Nemeth <felician.nemeth <at> gmail.com>:
bug acknowledged by developer. (Fri, 11 Nov 2022 13:06:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: João Távora <joaotavora <at> gmail.com>
Cc: 58892-done <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Felician Nemeth <felician.nemeth <at> gmail.com>, larsi <at> gnus.org,
 monnier <at> iro.umontreal.ca
Subject: Re: bug#58892: 29.0.50;
 [PATCH] eglot-manual: Open the local info documentation
Date: Fri, 11 Nov 2022 05:05:28 -0800
João Távora <joaotavora <at> gmail.com> writes:

> On Sun, Oct 30, 2022 at 2:02 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>  > Currently, Eglot has a menu item that opens
>  > https://github.com/joaotavora/eglot#readme.  I think opening that URL
>  > doesn't make sense anymore since eglot.texi is the primary source of the
>  > documentation.   Is it OK then to remove this menu item?
>
>  Fine by me, but please wait for João to chime in.
>
> Yes, it's fine. Show a patch and or push directly if you have permissions.

Now done, see commit c64d94c849.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Dec 2022 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 192 days ago.

Previous Next


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