all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* curiosity in value of "source-directory" in function "autoload-generated-file" and in the containing file "autoload.el.gz"
@ 2017-06-18 16:51 Alan
  2017-06-18 17:58 ` Drew Adams
  2017-06-18 19:02 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Alan @ 2017-06-18 16:51 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-18 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.