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 16:33:54 +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 1415115440 13344 80.91.229.3 (4 Nov 2014 15:37:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 15:37:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 16:37:11 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 1XlgAR-0001x8-Ay for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 16:37:11 +0100 Original-Received: from localhost ([::1]:41161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgAQ-0005hD-VY for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 10:37:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlg7K-0001Q2-2G for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:33:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlg7I-0006L3-Qu for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:33:57 -0500 Original-Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:38361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlg7I-0006KU-8g for help-gnu-emacs@gnu.org; Tue, 04 Nov 2014 10:33:56 -0500 Original-Received: by mail-lb0-f172.google.com with SMTP id w7so4162141lbi.31 for ; Tue, 04 Nov 2014 07:33:54 -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=kV+vK72NW7z2nneIyImO2iPZhCN07V82bCauxDIPFMg=; b=MknaFctI41GmSWvjNnNcyXOWJbg5NYTtsLGOw+i6OHgRLWmk36CG+UPCuk0thIvqsi uWR7SDHHIz8ySZIls8qV+13eVQrwaJaruhkSSNBvr8cTMgKjzWbMsJVZmDUYC/irCSNB AmSOy8WUCRazOSYjt7yWz1Gr4tHEnX5u0qDut/PzmLQuRxuM/G3PNzjuWPHWu/yy7crx z7VW//GhgtR2Lb3lt3PT0bYxQr4U6nuCryu43XXT0xLry4ewWoXNdrc2LBo6dff7TdTk JTveYcDu2ud4RyukHHzAdhC5l/lE6FCKEG2YZL7xY0bPxIdfvgKo6DO4e3XhW2qIh0sC 6gQQ== X-Received: by 10.152.37.104 with SMTP id x8mr60748230laj.74.1415115234702; Tue, 04 Nov 2014 07:33:54 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Tue, 4 Nov 2014 07:33:54 -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:c04::22c 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:100731 Archived-At: > > This is done under the assumption that a common case is when Emacs was > built locally. And I think it's more common for Emacs to be built > locally, compared to the situation where the user installed > a precompiled package and then fetched the sources. I happen to disagree, I'd say 99% of Emacs users have no clue how to build it. Many (probably most?) Linux distributions serve prebuilt packages. MSYS2 on Windows serve prebuilt packages through pacman (package manager ported from Arch Linux) as well. Cygwin serves prebuilt packages. I provide standalone Emacs builds for Windows too. Furthermore, Eli told me recently that sources should be included (either separately or in the same archive) anyway to be compliant with the license. Can you give "typical examples" where (expand-file-name "../src/emacs" > invocation-directory) will give the right result? Would you agree that this is *at least* more reasonable default in many cases than hard coding nonexistent directory? There were plenty of examples like relocating/deleting sources from original location where they were during build or moving to different machine with prebuilt Emacs (for instance on UFD) or distributing it as prebuilt package to other users. I don't know what other "more" convincing examples you want to find as these ones pretty much cover the use cases of "source-directory" variable. Last but not least, in many package managers there are options to install sources separately from binaries and by convention they are usually installed under corresponding "src/" suffix. This again proves that my proposed default is more reasonable than a hard coded path to some random directory.