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: curiosity in value of "source-directory" in function "autoload-generated-file" and in the containing file "autoload.el.gz" Date: Sun, 18 Jun 2017 10:58:47 -0700 (PDT) Message-ID: <5bbfa1c8-98ef-476f-a486-7ae60ce2610c@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 1497808772 21155 195.159.176.226 (18 Jun 2017 17:59:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 17:59:32 +0000 (UTC) To: Alan , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 19:59:27 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 1dMeTv-0005D6-E2 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 19:59:27 +0200 Original-Received: from localhost ([::1]:39137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMeU0-0007wp-Q3 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 13:59:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMeTV-0007wk-4N for help-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:59:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMeTR-0004Kw-8l for help-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:59:01 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36331) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMeTQ-0004Kk-Vq for help-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:58:57 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v5IHwnQB027659 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 18 Jun 2017 17:58:49 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v5IHwmNS029609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 18 Jun 2017 17:58:49 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v5IHwlBa007023; Sun, 18 Jun 2017 17:58:48 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6770.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 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:113523 Archived-At: > I find it curious that the file > "/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/autoload.el.g= z" > has the following code: >=20 > (defun autoload-generated-file () > (expand-file-name generated-autoload-file > (if (not (local-variable-p 'generated-autoload-file)) > (expand-file-name "lisp" source-directory)))) >=20 > and "source-directory" in this code has no other mention in this file, > except in a comment. `source-directory' is a predefined global variable. `C-h v' tells you this (where ... is filled in): source-directory is a variable defined in `C source code'. Its value is "..." Documentation: Directory in which Emacs sources were found when Emacs was built. You cannot count on them to still be there!