From: Glenn Morris <rgm@gnu.org>
To: 26782@debbugs.gnu.org
Subject: bug#26782: describe-function and autoloads not in main loaddefs
Date: Fri, 05 May 2017 01:57:13 -0400 [thread overview]
Message-ID: <l6efw3hmme.fsf@fencepost.gnu.org> (raw)
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.
next reply other threads:[~2017-05-05 5:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-05 5:57 Glenn Morris [this message]
2017-05-17 18:01 ` bug#26782: describe-function and autoloads not in main loaddefs Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=l6efw3hmme.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=26782@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.