GNU bug report logs - #74995
30.0.93; shortdoc-function-examples not autoloaded

Previous Next

Package: emacs;

Reported by: Fran Burstall <fran.burstall <at> gmail.com>

Date: Fri, 20 Dec 2024 15:48:02 UTC

Severity: normal

Found in version 30.0.93

Fixed in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Fran Burstall (Gmail)" <fran.burstall <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 74995 <at> debbugs.gnu.org
Subject: bug#74995: 30.0.93; shortdoc-function-examples not autoloaded
Date: Fri, 20 Dec 2024 17:08:34 +0000
[Message part 1 (text/plain, inline)]
Sorry.  It seems that things are slightly more complicated.  I get the same
as you from emacs -Q.

To get what I saw, from emacs -Q, put

(require 'help-fns)  ; something I load, loads this.

(add-hook 'help-fns-describe-function-functions
  #'shortdoc-help-fns-examples-function)

into *scratch* and evaluate both forms.  Now doing "C-h append RET" causes:

help-fns--run-describe-functions: Symbol’s function definition is void:
shortdoc-help-fns-examples-function

Thanks,

---Fran


On Fri, 20 Dec 2024 at 15:56, Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Fran Burstall <fran.burstall <at> gmail.com>
> > Date: Fri, 20 Dec 2024 15:44:25 +0000
> >
> >
> > According to the NEWS, there are new functions
> >
> > shortdoc-function-examples
> > shortdoc-help-fns-examples-function
> >
> > and a suggestion to
> >
> > (add-hook 'help-fns-describe-function-functions
> >     #'shortdoc-help-fns-examples-function)
> >
> > However, neither function is available until the shortdoc
> > package is loaded.
> >
> > Perhaps a couple of autoload cookies are needed here?
>
> I started "emacs -Q", inserted
>
>     (add-hook 'help-fns-describe-function-functions
>         #'shortdoc-help-fns-examples-function)
>
> into *scratch*, evaluated it, then typed "C-h f string-replace RET"
> and got a *Help* buffer with an example of using string-replace.  So
> I'm not sure why you say we need autoload cookies, since the advice in
> NEWS seems to work OOTB.  What did I miss?
>
> Thanks.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 139 days ago.

Previous Next


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