From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#26782: describe-function and autoloads not in main loaddefs Date: Fri, 05 May 2017 01:57:13 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493963890 22615 195.159.176.226 (5 May 2017 05:58:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 May 2017 05:58:10 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) To: 26782@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 05 07:58:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6WFi-0005oB-Ri for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 May 2017 07:58:06 +0200 Original-Received: from localhost ([::1]:45162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6WFo-0008AE-HU for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 May 2017 01:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6WFe-00088W-Pc for bug-gnu-emacs@gnu.org; Fri, 05 May 2017 01:58:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6WFe-0007yo-1b for bug-gnu-emacs@gnu.org; Fri, 05 May 2017 01:58:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6WFd-0007yi-US for bug-gnu-emacs@gnu.org; Fri, 05 May 2017 01:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d6WFd-0001bL-Oh for bug-gnu-emacs@gnu.org; Fri, 05 May 2017 01:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2017 05:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14939638426102 (code B ref -1); Fri, 05 May 2017 05:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 May 2017 05:57:22 +0000 Original-Received: from localhost ([127.0.0.1]:55188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6WF0-0001aL-8S for submit@debbugs.gnu.org; Fri, 05 May 2017 01:57:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6WEz-0001aA-7i for submit@debbugs.gnu.org; Fri, 05 May 2017 01:57:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6WEt-0007dO-9P for submit@debbugs.gnu.org; Fri, 05 May 2017 01:57:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6WEt-0007dK-5r for submit@debbugs.gnu.org; Fri, 05 May 2017 01:57:15 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d6WEr-0007Xh-Td; Fri, 05 May 2017 01:57:14 -0400 X-Spook: Jet Black out global Medco satellite imagery WMATA X-Ran: 1N1T6/\~iw/g>,8o]d#M%%D4&.9j}-Y~B6kR=j[n3efl<@\>>bw{626?-[>y>w,p`YW:R` X-Hue: yellow X-Attribution: GM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132275 Archived-At: 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.