unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26782: describe-function and autoloads not in main loaddefs
@ 2017-05-05  5:57 Glenn Morris
  2017-05-17 18:01 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2017-05-05  5:57 UTC (permalink / raw)
  To: 26782

Package: emacs
Version: 25.2
Severity: minor

emacs -Q -l cl-lib
C-h f cl-assoc
 -> "cl-assoc is an autoloaded Lisp function..."

This creates the confusing impression that you can expect to use
cl-assoc (eg) in emacs -Q. But you can't, because while it does have an
autoload cookie, it's in a file with generated-autoload-file non-nil, so
the autoloads don't go into the main loaddefs.el file. The autoload is
just an internal implementation detail of cl-lib that users should not
be concerned about. The same applies for other places that set
generated-autoload-file non-nil; eg rmail-add-label.

Perhaps the "autoloaded" bit should not be included in the
describe-function output if the autoload isn't in the main loaddefs
file. Or maybe it should be qualified somehow, though I'm not sure it
would be useful information.

The issue is going to get even more confusing in Emacs 26.1, where the
new definition-prefixes feature means that you don't even have to
explicitly load the main library any more. Eg:

emacs-25.2 -Q -l rmail
C-h f rmail- TAB
rmail-add-label
-> "rmail-add-label is an interactive autoloaded Lisp function"

In Emacs 26.1, you won't even need the "-l rmail" to get rmail-add-label
returned as a completion.






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#26782: describe-function and autoloads not in main loaddefs
  2017-05-05  5:57 bug#26782: describe-function and autoloads not in main loaddefs Glenn Morris
@ 2017-05-17 18:01 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2017-05-17 18:01 UTC (permalink / raw)
  To: 26782


The simplest solution would be to just remove the "autoloaded" text.
It was added when help-enable-auto-load was added, so that you could
tell if C-h f had auto-loaded the function definition. Since nowadays
C-h f will unconditionally load even non-autoloaded things via
definition-prefixes, maybe it's no longer useful to add the "autoloaded"
text.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-17 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-05  5:57 bug#26782: describe-function and autoloads not in main loaddefs Glenn Morris
2017-05-17 18:01 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).