From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Basic question about autoload function Date: Wed, 6 Dec 2017 11:04:02 -0800 (PST) Message-ID: <8199d375-ba83-44b0-b30f-5503fab7f4cf@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1512587087 9207 195.159.176.226 (6 Dec 2017 19:04:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 19:04:47 +0000 (UTC) To: Kaushal Modi , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 06 20:04:43 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 1eMezl-0002DS-W2 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2017 20:04:38 +0100 Original-Received: from localhost ([::1]:57090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMezt-0001lB-8t for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2017 14:04:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMezN-0001kk-Hz for help-gnu-emacs@gnu.org; Wed, 06 Dec 2017 14:04:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMezK-00044m-6c for help-gnu-emacs@gnu.org; Wed, 06 Dec 2017 14:04:13 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:40932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eMezJ-00042d-PX for help-gnu-emacs@gnu.org; Wed, 06 Dec 2017 14:04:10 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vB6J2eTk089033; Wed, 6 Dec 2017 19:04:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=VNYa2PoYiWm0c11T3VLE5zVRaeKDXyeK7AO1k9ALX4Y=; b=dzf4HdMcBEL+o6kTIsuqO96Yf7EfNLiflGJhaVvv/jOeYgimoHmGTatUTnqqrjSAl93Q wFd4F+BDodRE4Em9JKpZJYjUbooOaOuP7+x4/+Lr93v2SsPw2mzs98n8JnCHk2eZMvCT RKhDGK73hjMnSjdZiedjLr2/U+GeqeJHsC8PpCIlo9cUTK5wCCg0JEBp0+MW0RtnbOkL QRRvGIDctrXm2QQ6uuRFOV5oY5jfX8xjyhaEDe2bYbh7MNU/lII/4lkUtriRqHnE/zgG lsS67NIY3lmM6iZzWVU0edAKJWAL3exS3hBod0eTyDdxy4CFC+ROAgDPeplxsAubftgH 4w== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2epcvqjhvk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Dec 2017 19:04:05 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vB6J442Y011622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 6 Dec 2017 19:04:04 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vB6J43MJ032081; Wed, 6 Dec 2017 19:04:04 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4615.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8737 signatures=668643 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1712060271 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 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:115270 Archived-At: > I have recently realized that (autoload #'foo-fn "bar-pkg") > works even if foo-fn is *not* defined inside bar-pkg. What do you mean by "works"? All that does is cause file bar-pkg.el[c] to be loaded whenever someone or something tries to invoke/use function, macro, or keymap `foo-fn'. (But it does nothing if `foo-fn' is a function already defined.) Yes, nothing implies that `foo-fn' is defined in bar-pkg.el. > The documentation also doesn't say that it has to be that way. What doesn't have to be what way? > So I was just pleasantly surprised that that did the right thing. The right thing being ___? I guess you wanted Emacs to load that file when that function is invoked?