From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Correct Paths to Emacs C Sources after Installation
Date: Tue, 04 Nov 2014 12:41:46 -0500 [thread overview]
Message-ID: <jwvwq7ayj0a.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.12759.1415115240.1147.help-gnu-emacs@gnu.org
> 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.
The only relevant comparison is "built locally" with "the user installed
a precompiled package and then fetched the sources". So users who don't
have the source are not relevant.
>> 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?
*If* the current value points to an non-existing directory and if
../src/emacs points to an existing directory, then yes, it's probably
a better default. The question is whether it'd happen often enough to
justify the corresponding code.
> 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/<package-name>" suffix. This again
> proves that my proposed default is more reasonable than a hard coded path
> to some random directory.
I'm not debating whether it's reasonable or not. I never said it was
not reasonable. I just would like to see some concrete examples where
"../src/emacs" would work.
I do think it's important to make it easier to jump to the sources
(which is why I wrote the code that adds the "C source" button).
Another approach is to leave the default value of source-directory alone
and instead change the behavior of the "C source" button so that (if
source-directory doesn't exist) it tries a bunch of alternative
directories. Yet another option is to offer to actually download the
code (or visit it straight from the Git repository via the URL package).
Prebuilt packages (such as Debian's) could tweak the code to offer to
install the corresponding source package.
Stefan
PS: Side note: the right way to propose such a change is to submit it
via M-x report-emacs-bug.
next prev parent reply other threads:[~2014-11-04 17:41 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 20:55 Correct Paths to Emacs C Sources after Installation Alexander Shukaev
2014-11-03 20:58 ` Eli Zaretskii
[not found] ` <CAKu-7Ww3nzB3SQmKpR73xSVoC=U1Tf5UaJCokm4fpBvMSqAoNQ@mail.gmail.com>
2014-11-03 21:31 ` Fwd: " Alexander Shukaev
2014-11-03 22:27 ` Alexander Shukaev
2014-11-03 22:45 ` Stefan Monnier
2014-11-03 23:05 ` Alexander Shukaev
2014-11-04 0:24 ` John Mastro
2014-11-04 0:35 ` Alexander Shukaev
2014-11-04 0:52 ` Alexis
2014-11-04 1:11 ` Alexander Shukaev
2014-11-04 1:17 ` Alexander Shukaev
2014-11-04 1:21 ` Alexander Shukaev
2014-11-04 1:26 ` Alexander Shukaev
2014-11-04 1:30 ` Alexis
2014-11-04 12:20 ` Alexander Shukaev
2014-11-04 8:53 ` Thien-Thi Nguyen
2014-11-04 15:47 ` Eli Zaretskii
2014-11-04 15:02 ` Stefan Monnier
2014-11-04 15:33 ` Alexander Shukaev
2014-11-04 15:51 ` Eli Zaretskii
2014-11-04 16:07 ` Alexander Shukaev
2014-11-04 16:18 ` Alexander Shukaev
2014-11-04 16:48 ` Eli Zaretskii
2014-11-04 16:26 ` Eli Zaretskii
[not found] ` <mailman.12770.1415117275.1147.help-gnu-emacs@gnu.org>
2014-11-04 17:48 ` Stefan Monnier
2014-11-04 18:39 ` Alexander Shukaev
2014-11-04 18:57 ` Glenn Morris
2014-11-04 19:20 ` Alexander Shukaev
2014-11-04 21:00 ` Bob Proulx
2014-11-05 2:43 ` Yuri Khan
[not found] ` <mailman.12848.1415155389.1147.help-gnu-emacs@gnu.org>
2014-11-05 14:26 ` Ted Zlatanov
2014-11-05 2:07 ` Stefan Monnier
[not found] ` <mailman.12847.1415153254.1147.help-gnu-emacs@gnu.org>
2014-11-07 4:17 ` Jason Rumney
[not found] ` <mailman.12759.1415115240.1147.help-gnu-emacs@gnu.org>
2014-11-04 17:41 ` Stefan Monnier [this message]
2014-11-04 15:45 ` Eli Zaretskii
2014-11-04 15:43 ` Fwd: " Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwq7ayj0a.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.