From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Basic question about autoload function Date: Fri, 08 Dec 2017 14:39:29 +0100 Message-ID: <87mv2ts5im.fsf@web.de> References: <8199d375-ba83-44b0-b30f-5503fab7f4cf@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512740419 20707 195.159.176.226 (8 Dec 2017 13:40:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 13:40:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Kaushal Modi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 08 14:40:16 2017 Return-path: Envelope-to: geh-help-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 1eNIsy-0005D3-2R for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 14:40:16 +0100 Original-Received: from localhost ([::1]:37297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNIt3-0004pj-NN for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 08:40:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNIsP-0004oT-VK for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 08:39:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNIsL-0006Hd-3C for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 08:39:42 -0500 Original-Received: from mout.web.de ([212.227.17.11]:50123) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNIsK-0006EC-PN for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 08:39:37 -0500 Original-Received: from drachen.dragon ([188.106.175.242]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LZedc-1emVI52uiq-00lTaj; Fri, 08 Dec 2017 14:39:29 +0100 In-Reply-To: (Kaushal Modi's message of "Wed, 06 Dec 2017 19:14:33 +0000") X-Provags-ID: V03:K0:GkBBvwl4Ycsl6QVFVxXXkveh3z16MeAUifjn+27B41ZrfVmOGga eDqSslsZRqHbzE4+xF0CnlLKS3XsnFkrntZQNrwlSrkwGv16h3JEAoBcnyGcXwAf8U0gPos z99JkCG2NFD82uyZtleukPWHjccxP4S86e3RE0NFaWTCiEP3IEVP6+rEhM/rJoENDRCsyC3 +9qym17JoP1wVNbYnWJQA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Rhqr2P7Ebnw=:qcNSQTbaBChwREKqd5/3k3 GCGJi1s91Wy/GS5pXxbgUFNNg6hO/7HpbOI4f6ZExh2UOehuaU4XM3U3L7zNGrbNBo6v9YrNy FPydw/QexxJQyjRjNhbql7n3aRGYM+1KYfj8SRw/Kwz72jbO9dLT79rEi8/5m3eh6NUO65KjF 87pMA+R1Vt/OizR53PHyZDhFcN9yZRNHL8YRkCwu0h9++Z/h7LHRfrHd3j/RNqxXNWu59u2G3 e8rHivCVU47csN3cX6EE5lb2rBDxCsyheJCtmDFSFfFCIyTCDDFhjdyHRPKrPinbytPu5yZO+ NI8MtsCVfmcrATgMfJ+yoQqQx7OiYh+m7SBw+ghlcRl16w7WwkqybdUtiUgfawo4unkJpe8sw y9OCVyWLkMu5pLVXKB4AzFDa0rJrcAtX2Dt4Saisw76jfRVUZK043VahiO87GPygRsyH3Dw5f rhWtqzlDZaaVAWdtjEVL5456fyjKz3cGBjsp8ED6eremd0Xk6z3PcnxuA1yu+ihTYkRn+8/r6 Ud3fsH2aw9p2ZoWyJ9Xw8Badlst5HHsz0Av9T4ddaRjxAjbIa52b78/adU2dCU36XEE+xsSxH NI8vYZ3ALH7HwCFUZhsTHVAW/4uKO36xGyHCaErBKs3ywIWdTj3m9PVAARgvZp9wwoGyvY/Ki J5UlFcxQzbe9FWBXF7tf2cC330W8dJODESga6pDxLqsShRgw4PckAHb8Xw9el9Ntn3pwnfhCA CUKF7A5+H/+W68qR41XMCeVUy7Yuon8Wk5ZJTP9FHC5IaYMN+JE60xxwMFcyyEVIvHj8AkgE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115308 Archived-At: Kaushal Modi writes: > I meant to say that the documentation does not imply that the FUNCTION > has to be defined inside FILE. I was wondering if that was intentional > i.e. FUNCTION can or cannot be defined inside FILE. Looking at the DEFUN of `autoload-do-load' in eval.c, it is only checked whether after loading the FILE, the `indirect-function' of the symbol FUNCTION has changed. So AFAICT yes, it doesn't matter where the function is defined, as long as it has been defined after loading the FILE. Which is also what I would expect, since "the file which defined some function" is not necessarily well-defined. Michael.