GNU bug report logs - #38248
help-follow-symbol silent when no symbol was found

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Sun, 17 Nov 2019 19:42:01 UTC

Severity: minor

Tags: patch

Done: Juanma Barranquero <lekktu <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 38248 in the body.
You can then email your comments to 38248 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#38248; Package emacs. (Sun, 17 Nov 2019 19:42:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 17 Nov 2019 19:42:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: help-follow-symbol silent when no symbol was found
Date: Sun, 17 Nov 2019 20:40:33 +0100
[Message part 1 (text/plain, inline)]
Package: emacs
Severity: minor
Tags: patch

Currently, help-follow and help-follow-mouse signal an error if there's
nothing to follow. However, help-follow-symbol does not, which means that
C-c C-c in the help buffer when over an arbitrary non-symbol does nothing
and says nothing.

That's not just inconsistent, but a bit disconcerting, as sometimes
following a symbol can be slow. In my build, it takes a second or more to
show the symbol documentation, so when there's no symbol I stand waiting
for something to happen for a couple of seconds.

The following patch fixes that. The only reason against I can think of is
when `help-follow-symbol' is called from elisp, because it will now signal
an error. However, at least in the Emacs sources help-follow-symbol is
never called from elisp, just as a keybinding or menu entry.
[Message part 2 (text/html, inline)]
[0001-lisp-help-mode.el-help-follow-symbol-Signal-no-symbo.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38248; Package emacs. (Thu, 21 Nov 2019 15:13:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 38248 <at> debbugs.gnu.org
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Thu, 21 Nov 2019 16:12:03 +0100
Juanma Barranquero <lekktu <at> gmail.com> writes:

> That's not just inconsistent, but a bit disconcerting, as sometimes
> following a symbol can be slow. In my build, it takes a second or more
> to show the symbol documentation, so when there's no symbol I stand
> waiting for something to happen for a couple of seconds.
>
> The following patch fixes that. The only reason against I can think of
> is when `help-follow-symbol' is called from elisp, because it will now
> signal an error.  However, at least in the Emacs sources
> help-follow-symbol is never called from elisp, just as a keybinding or
> menu entry.

Adding an error-out here I think should be OK.  I googled a bit and
couldn't see anything out-of-tree that uses that command as a function.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38248; Package emacs. (Fri, 22 Nov 2019 18:52:04 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 38248 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Fri, 22 Nov 2019 19:50:21 +0100
[Message part 1 (text/plain, inline)]
Eli, are you OK with this (slightly) incompatible change?
[Message part 2 (text/html, inline)]
[0001-help-follow-symbol-now-tells-that-no-symbol-was-foun.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38248; Package emacs. (Fri, 22 Nov 2019 19:26:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: larsi <at> gnus.org, 38248 <at> debbugs.gnu.org
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Fri, 22 Nov 2019 21:25:31 +0200
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Fri, 22 Nov 2019 19:50:21 +0100
> Cc: 38248 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> 
> Eli, are you OK with this (slightly) incompatible change?

Rationale?

> +** help-follow-symbol now signals user-error if point (or the position

user-error should be quoted 'like this'.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38248; Package emacs. (Fri, 22 Nov 2019 19:42:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 38248 <at> debbugs.gnu.org
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Fri, 22 Nov 2019 20:40:15 +0100
[Message part 1 (text/plain, inline)]
On Fri, Nov 22, 2019 at 8:25 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> Rationale?

I quote from my original bug report:

Currently, help-follow and help-follow-mouse signal an error if there's
nothing to follow. However, help-follow-symbol does not, which means
that C-c C-c in the help buffer when over an arbitrary non-symbol does
nothing and says nothing.

That's not just inconsistent, but a bit disconcerting, as sometimes
following a symbol can be slow. In my build, it takes a second or more
to show the symbol documentation, so when there's no symbol I stand
waiting for something to happen for a couple of seconds.

> > +** help-follow-symbol now signals user-error if point (or the position
>
> user-error should be quoted 'like this'.

Ok.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38248; Package emacs. (Fri, 22 Nov 2019 19:53:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: larsi <at> gnus.org, 38248 <at> debbugs.gnu.org
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Fri, 22 Nov 2019 21:52:56 +0200
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Fri, 22 Nov 2019 20:40:15 +0100
> Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 38248 <at> debbugs.gnu.org
> 
> Currently, help-follow and help-follow-mouse signal an error if there's
> nothing to follow. However, help-follow-symbol does not, which means
> that C-c C-c in the help buffer when over an arbitrary non-symbol does
> nothing and says nothing.
> 
> That's not just inconsistent, but a bit disconcerting, as sometimes
> following a symbol can be slow. In my build, it takes a second or more
> to show the symbol documentation, so when there's no symbol I stand
> waiting for something to happen for a couple of seconds.

OK.




Reply sent to Juanma Barranquero <lekktu <at> gmail.com>:
You have taken responsibility. (Fri, 22 Nov 2019 20:14:04 GMT) Full text and rfc822 format available.

Notification sent to Juanma Barranquero <lekktu <at> gmail.com>:
bug acknowledged by developer. (Fri, 22 Nov 2019 20:14:04 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 38248-done <at> debbugs.gnu.org
Subject: Re: bug#38248: help-follow-symbol silent when no symbol was found
Date: Fri, 22 Nov 2019 21:13:03 +0100
[Message part 1 (text/plain, inline)]
Committed as b7d4c5d1d1b55fea8382663f18263e2000678be5
[Message part 2 (text/html, inline)]

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

This bug report was last modified 4 years and 125 days ago.

Previous Next


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