From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Correct Paths to Emacs C Sources after Installation Date: Tue, 4 Nov 2014 01:35:51 +0100 Message-ID: References: <834mugvw5w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1415061379 17148 80.91.229.3 (4 Nov 2014 00:36:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 00:36:19 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 01:36:07 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 1XlS6Q-00004x-9z for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 01:36:06 +0100 Original-Received: from localhost ([::1]:37922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlS6P-0002vH-Ri for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 19:36:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlS6E-0002v9-4y for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 19:35:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlS6D-0005FA-5Q for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 19:35:54 -0500 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:52519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlS6C-0005F6-QK for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 19:35:53 -0500 Original-Received: by mail-la0-f46.google.com with SMTP id hs14so4961lab.5 for ; Mon, 03 Nov 2014 16:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E2RjeWDccr5eRfDIKylMM9vXA3PIzf7qWCpZGwqOlbs=; b=H3pnjHAi5zsiu/QCxj61FZ4PJegqYYhDh/dlhl2TlZscWGx9e2Ur62gUxNpruw88TC XyhtnkC+X5uqHBmnXIiD05C37+dlXc/WmZ7poG3MfDn7l2Yvl0vjaTlWcByoAiRvSl2L xoNCJV2BdQbgU7tegTkpuf38dd/GSjCK0r2eUBbMJA+41R7ODIwvEGZsPpo5tm/Yhw2+ SS3IlnbDwvJCbRews5qVWj+4bgbyK7t/3Z88tAUp95n5MaMWc7/SlJahzrD0+WTy8oDA Z1nv9GMZ3mimBaEN5YZyueXKAsm0x53Q7znflS3GV5tXK32b7tPYG4YhezE9bgN7xJcJ wOfA== X-Received: by 10.152.6.41 with SMTP id x9mr7579786lax.95.1415061351570; Mon, 03 Nov 2014 16:35:51 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Mon, 3 Nov 2014 16:35:51 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:100708 Archived-At: > > I just put the following in my init file: > > (let ((source (format "~/src/emacs/emacs-%s/" emacs-version))) > (when (file-directory-p source) > (setq source-directory source))) > Of course, but this has to be done manually by end users to "clean-up" wrong hard coded path. You can still do that if you want, but I believe that the default has to be changed to something more reasonable. Since there exist strict conventions on directory structure for open-source software deployment ("bin", "src", "share", etc.), these have to be exploited to install sources under ".../src/emacs" and referring to this directory *relatively* from the currently running Emacs executable. To me that looks like a robust and cross-platform default.