help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Correct Paths to Emacs C Sources after Installation


From: Eli Zaretskii
Subject: Re: Fwd: Correct Paths to Emacs C Sources after Installation
Date: Tue, 04 Nov 2014 17:43:51 +0200

> Date: Mon, 3 Nov 2014 22:31:15 +0100
> From: Alexander Shukaev <haroogan@gmail.com>
> 
> Wouldn't it be safer to patch:
>
>   Vsource_directory
>     = Fexpand_file_name (build_string ("../"),
>  Fcar (decode_env_path (0, PATH_DUMPLOADSEARCH, 0)));
>
> into something that will expand the path from the Emacs executable +
> "../src/emacs" at run time?

You mean, by default?  No, because such a default will never be
correct, except (evidently) in your very special use case.

Moreover, the resulting directory will not be version-specific, so it
is wrong even in your case, because the next installation will
overwrite the source tree, and older Emacs binaries will not find
their matching sources.

> And possibly ask build system to copy sources there.

No other project installs sources, so this would be unusual.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]