bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21299: describe-function on advised autoloads


From: Glenn Morris
Subject: bug#21299: describe-function on advised autoloads
Date: Thu, 20 Aug 2015 13:39:18 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Package: emacs
Version: 25.0.50

A couple of issues related to describe-function on advised autoloads.
Current master, emacs -Q.

1) When the autoload has known arguments:

(autoload 'foo1 "foo" "Do something.

\(fn arg1)")

(defun foo-ad (&rest _args))

(advice-add 'foo1 :before #'foo-ad)

C-h f foo1
 ->  foo1 is an alias for 'foo1'

Informative!

Also, the fact that foo1 has advice is not mentioned.


2) When the function has unknown arguments:

(autoload 'foo2 "foo" "Do something.")
(advice-add 'foo2 :before #'foo-ad)

C-h f foo2
 -> foo2 is an alias for 'foo2'

 (foo2 91 65 114 103 32 108 105 115 116 32 110 111 116 32 97 118 97 105
 108 97 98 108 101 32 117 110 116 105 108 32 102 117 110 99 116 105 111
 110 32 100 101 102 105 110 105 116 105 111 110 32 105 115 32 108 111
 97 100 101 100 46 93)

 Do something.

Nice argument list...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]