help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct Paths to Emacs C Sources after Installation


From: Alexis
Subject: Re: Correct Paths to Emacs C Sources after Installation
Date: Tue, 04 Nov 2014 11:52:22 +1100

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]