all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Alan <wehmann@fnal.gov>, 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 10:58:47 -0700 (PDT)	[thread overview]
Message-ID: <5bbfa1c8-98ef-476f-a486-7ae60ce2610c@default> (raw)
In-Reply-To: <e46c4204-b1be-4940-869b-b1d791652b27@googlegroups.com>

> 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
>                     (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 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!



  reply	other threads:[~2017-06-18 17:58 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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bbfa1c8-98ef-476f-a486-7ae60ce2610c@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=wehmann@fnal.gov \
    /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.