From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
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 22:02:35 +0300 [thread overview]
Message-ID: <83injtxgok.fsf@gnu.org> (raw)
In-Reply-To: <e46c4204-b1be-4940-869b-b1d791652b27@googlegroups.com> (message from Alan on Sun, 18 Jun 2017 09:51:37 -0700 (PDT))
> Date: Sun, 18 Jun 2017 09:51:37 -0700 (PDT)
> From: Alan <wehmann@fnal.gov>
> Injection-Date: Sun, 18 Jun 2017 16:51:37 +0000
>
> 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.
source-directory is a built-in variable, defined in C. The above
snippet is needed when building Emacs and when running it uninstalled,
i.e. from its build tree. I think.
prev parent reply other threads:[~2017-06-18 19:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-18 16:51 curiosity in value of "source-directory" in function "autoload-generated-file" and in the containing file "autoload.el.gz" Alan
2017-06-18 17:58 ` Drew Adams
2017-06-18 19:02 ` Eli Zaretskii [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83injtxgok.fsf@gnu.org \
--to=eliz@gnu.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.