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: Correct Paths to Emacs C Sources after Installation Date: Tue, 04 Nov 2014 17:47:04 +0200 Message-ID: <83wq7bufwn.fsf@gnu.org> References: <834mugvw5w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415116062 23975 80.91.229.3 (4 Nov 2014 15:47:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 15:47:42 +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:47:35 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 1XlgKV-0007ki-3b for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 16:47:35 +0100 Original-Received: from localhost ([::1]:41259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgKU-0001eo-Q8 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 10:47:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgKE-0001Y4-PG for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:47:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlgK8-0002lb-Sb for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:47:18 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:64440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgK8-0002lW-Kx for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:47:12 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NEI00K00UFJ9P00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 17:47:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEI00JNTUINQHA0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 17:47:11 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:100734 Archived-At: > Date: Tue, 4 Nov 2014 01:35:51 +0100 > From: Alexander Shukaev > Cc: "help-gnu-emacs@gnu.org" > > > > > 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 provide your users with a site-init file that will do it for them. Moreover, if source-directory points to a non-existing place, Emacs will prompt (once) for the source directory. > Since there exist strict conventions on directory structure for > open-source software deployment ("bin", "src", "share", etc.) Where did you find conventions about the "src" trees? Can you provide a link to those conventions? I'm not aware of such conventions. > these have to be exploited to install sources under ".../src/emacs" This is wrong: it doesn't include the version number, so it will be overwritten by each new installation. > To me that looks like a robust and cross-platform default. Defaults only make sense if they are widely used. This one isn't.