From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Newsgroups: gmane.emacs.help Subject: curiosity in value of "source-directory" in function "autoload-generated-file" and in the containing file "autoload.el.gz" Date: Sun, 18 Jun 2017 09:51:37 -0700 (PDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1497804932 17347 195.159.176.226 (18 Jun 2017 16:55:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 16:55:32 +0000 (UTC) Injection-Date: Sun, 18 Jun 2017 16:51:37 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 18:55:28 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 1dMdU0-0004FJ-IP for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 18:55:28 +0200 Original-Received: from localhost ([::1]:38997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMdU5-0000sm-QH for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 12:55:33 -0400 X-Received: by 10.107.170.201 with SMTP id g70mr10300808ioj.95.1497804697831; Sun, 18 Jun 2017 09:51:37 -0700 (PDT) X-Received: by 10.157.52.161 with SMTP id g30mr188890otc.17.1497804697800; Sun, 18 Jun 2017 09:51:37 -0700 (PDT) Original-Path: usenet.stanford.edu!185no1536520itv.0!news-out.google.com!k7ni1185itk.0!nntp.google.com!185no1536512itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=172.56.12.9; posting-account=czAMxQoAAAAUEojshw4CrIvcwSdulymE Original-NNTP-Posting-Host: 172.56.12.9 Original-Xref: usenet.stanford.edu gnu.emacs.help:219141 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:113522 Archived-At: I find it curious that the file "/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/autoload.el.gz" has the following code: (defun autoload-generated-file () (expand-file-name generated-autoload-file ;; File-local settings of generated-autoload-file should ;; be interpreted relative to the file's location, ;; of course. (if (not (local-variable-p 'generated-autoload-file)) (expand-file-name "lisp" source-directory)))) and "source-directory" in this code has no other mention in this file, except in a comment. I am debugging difficulties creating the file "vm-autoloads.el" using the View Mail machinery that allows one to update to the lastest trunk version of VM. In doing so I run into a situation where "source-directory" has the value "/Users/build/workspace/Emacs-Multi-Build/label/mavericks/emacs-source/lisp/vm-autoloads.el" & this directory is unavailable (for good reason). My system is: Mac Book Air running OS X 10.12.5 Sierra GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-20 I won't try to describe what I am doing to resolve the issues getting "vm-autoloads.el" built properly. I only stop to remark about this curiosity that I see in the value of "source=directlry" when "autoload-generated-file" gets used. For what it is worth, the posting at URL "https://stackoverflow.com/questions/10535529/emacs-elisp-expand-file-name-behaviour-on-windows" shows a similar difficulty with the value of "source-directory" in this function.