From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Fwd: Correct Paths to Emacs C Sources after Installation Date: Tue, 04 Nov 2014 17:43:51 +0200 Message-ID: <83zjc7ug20.fsf@gnu.org> References: <834mugvw5w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415115890 20939 80.91.229.3 (4 Nov 2014 15:44:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 15:44:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 16:44:44 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XlgHj-00069n-OQ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 16:44:43 +0100 Original-Received: from localhost ([::1]:41238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgHj-0007tF-C0 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 10:44:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgH9-0007Ki-16 for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:44:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlgH1-0001WR-IZ for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:44:06 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:40975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgH1-0001WI-58 for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:43:59 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NEI00N00U2CLQ00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 17:42:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEI00FF8UARU780@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 17:42:27 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100732 Archived-At: > Date: Mon, 3 Nov 2014 22:31:15 +0100 > From: Alexander Shukaev > > 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.