From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Correct Paths to Emacs C Sources after Installation Date: Tue, 04 Nov 2014 11:52:22 +1100 Message-ID: <87y4rru6fa.fsf@gmail.com> References: <834mugvw5w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415062824 5806 80.91.229.3 (4 Nov 2014 01:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 01:00:24 +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 02:00:17 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 1XlSTm-00024C-QJ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 02:00:14 +0100 Original-Received: from localhost ([::1]:37978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlSTm-0002Rk-HG for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 20:00:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlSTT-0002QD-CR for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 20:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlSTK-0003Ky-8W for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 19:59:55 -0500 Original-Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:33975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlSTJ-0003KV-Vk for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 19:59:46 -0500 Original-Received: by mail-pd0-f182.google.com with SMTP id fp1so12447115pdb.41 for ; Mon, 03 Nov 2014 16:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=cQnhB9RYt375Q7kwWJYab/019JJgzPGM1muq276umsI=; b=NAczBg1k33vqAswyp/Xzd6BsY8E0iehLDx2IdMoWonGjytXyZS+VMMAd3mQ4Ehcqx6 Y7m0+Yjzem+WaSPHcnFx3wbhkqxL8hh6Xh1My/7WxC1nESbt6rL8dxoKeEyzfleFGV3s /h+kYQ6XACu6ORSbS9d/Vq/gnqDpk1jwcYxv6QsflcSA24wZbfEUsdDWUlDHenh8I/p5 x9eiRqbkTpbN3/6iYgdaiwC284M8Uu5aGspwP8YUuU+qAv5tUYHCKGDg2wOH06LW+u19 CDmR7ejdKph7GsTDjL5GIDHsrmnV9uOt3NdBFC9x0Qu7gB2mIQ8OL4Pr3IUFpxIF23pw MQRA== X-Received: by 10.68.216.70 with SMTP id oo6mr6901112pbc.124.1415062784148; Mon, 03 Nov 2014 16:59:44 -0800 (PST) Original-Received: from localhost (ppp118-209-92-67.lns20.mel4.internode.on.net. [118.209.92.67]) by mx.google.com with ESMTPSA id v9sm18288975pdr.62.2014.11.03.16.59.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Nov 2014 16:59:43 -0800 (PST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::236 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:100709 Archived-At: Alexander Shukaev writes: >> >> 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. i'm not sure i understand. i've built and installed 24.4 from source. Say i do: C-h f sort RET A buffer is opened saying "sort is a built-in function in `C source code'." If i TAB to the "C source code" link and press RET, the file fns.c is opened in a new buffer, with point at line 1733: DEFUN ("sort", Fsort, Ssort, 2, 2, 0, i haven't done any particular configuration (e.g. something like the above 'let')in order for all this to happen. It just works "out of the box". Is this in fact what you're wanting? If so, i take it the above doesn't work for you? Alexis.