From: Alan <wehmann@fnal.gov>
To: help-gnu-emacs@gnu.org
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) [thread overview]
Message-ID: <e46c4204-b1be-4940-869b-b1d791652b27@googlegroups.com> (raw)
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.
next reply other threads:[~2017-06-18 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-18 16:51 Alan [this message]
2017-06-18 17:58 ` curiosity in value of "source-directory" in function "autoload-generated-file" and in the containing file "autoload.el.gz" Drew Adams
2017-06-18 19:02 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e46c4204-b1be-4940-869b-b1d791652b27@googlegroups.com \
--to=wehmann@fnal.gov \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).