|
From: | Alexander Shukaev |
Subject: | Re: Correct Path to Emacs C Sources after Installation |
Date: | Wed, 5 Nov 2014 17:23:35 +0100 |
Unless I'm missing something, this unconditionally sets the value of
source-directory to /usr/local/share/emacs/VERSION/etc/ in the
installed binary, is that right? If so, I don't think this can be
acceptable, because it disallows the current practice of leaving the
sources where Emacs was built.
Vsource_directory= Fexpand_file_name (build_string ("../"),Fcar (decode_env_path (0, PATH_DUMPLOADSEARCH, 0)));
As I said earlier, I like Stefan's suggestion of changing the users of
this variable, so that they could look in alternative places if the C
sources in source-directory are not accessible.
After all, it might
well be that the sources are being removed while Emacs is running, so
a one-time computation might still cause failure.
There are only 2 users of source-directory now: find-func.el and
check-declare.el. All you need is to teach them to look in
data-directory if the files cannot be found in source-directory. I
think this will be much easier, and perhaps should also use some
defcustom that users could customize (e.g., Emacs could look in a list
of directories, not just one particular place).
Thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |