From: "Jan Djärv" <jan.h.d@swipnet.se>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: Why <config.h> and not "config.h" ?
Date: Wed, 28 Jul 2010 09:57:28 +0200 [thread overview]
Message-ID: <4C4FE2E8.2030009@swipnet.se> (raw)
In-Reply-To: <878w4wrrde.fsf@telefonica.net>
2010-07-28 09:35, Óscar Fuentes skrev:
> Jan Djärv<jan.h.d@swipnet.se> writes:
>
>>> As explained above, if the .elc files are corrupted by a buggy Emacs or
>>> a buggy Emacs ends using healthy .elc files, by sharing the produced
>>> .elc/.el files among several builds you are hiding a bug. Mixing the
>>> products of different builds is never a good idea.
>>
>> Didn't you read what I wrote? Out-of-tree builds use the *SAME* elc
>> files, those located in the tree. Adding another out-of-tree build
>> does not remake the elc-files. That is one of the strong reasons to
>> use out-of -tree builds for different configurations.
>
> Yes, I read what you wrote. It seems that you are not trying to
> understand what I say, though.
>
> The fact that several builds share the same .elc files is, precisely, a
> potential source of problems. If you can't see that, well, lucky you,
> because then it is clear that you never experienced a problem caused by
> a setup like that.
As I said, it is a feature not having to run make bootstrap in every build
tree. I usually have five of them (Gtk, Lucid, Motif/Lesstif, X, no-X).
>
>> BTW, I used Emacs for more than 20 years and have yet to see a
>> corrupted elc-file.
>
> Corrupted in any sense? Is the byte compiler so robust that it never
> miscompiled an .el file on 20 years?
No, I read on this list of bytecompiler errors from time to time. They seem
to be few and far between though. I haven't experienced it though.
>
>>>> Considering that<> enables a real use-case and "" does not, and the
>>>> fact that using "" gives exactly no benefits what so ever, please
>>>> stick to<>. It is not even less to type. I can't imagine any reason
>>>> for switching now.
>>>
>>> Maybe is my hideous English, but as explained on my original message<>
>>> is giving me problems with some tool.
>>
>> Some code analysis tools is too vague.
>
> Are you suggesting that I'm making up the issue? Or maybe the issue is
> irrelevant to you because it doesn't affect the tools you use?
No, I don't think you are making up things, there are a lot of buggy tools out
there. But which tools are we going to make this change for? Are they free
and generally useful for all developers? Most analysis tools I've used does
not have any problem with <> and "". You usually can pass -I. to them if that
is needed.
>
>> We are building Emacs right now out-of-tree.
>
> No, you are building on a mixed setup, both out of tree and in-tree.
>
Yes, but not from the same source tree. However, I do from time to time
migrate from in-tree to out-tree.
> Anyways, if you are building out of tree, there is no problem with the
> change because, as Miles explained, the angle brackets are used
> precisely for supporting simultaneous out of tree and in-tree
> builds. Removing the angle brackets is no problem for simultaneous out
> of tree builds.
And having them there is no problem either.
>
>> If you are going to impose a change on that process again just after
>> it was changed recently, you have to come up with something better
>> than that.
>
> Here we go again. No matter how small is the change one proposes,
> somebody will extract terrible cosequences from it, or refuse to
> evaluate the benefits dismissing it as useless, or both.
Motivating a change to cater for some broken analysis tool isn't terribly
convincing too me.
And, as pointed out, autoconf recommends <>.
>
>> As for the gcc thing, that is intentional, it is how it is
>> supposed to work.
>
> Yes, I know, I was caught there. AFAIK the algorithm used by GCC assumes
> that angle brackets are for system headers.
>
No, it does not. The search for include files with <> does not start in the
current directory, where as for "" it does. That is the only difference. If
the headers are system headers or not is not the difference.
Jan D.
next prev parent reply other threads:[~2010-07-28 7:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 2:23 Why <config.h> and not "config.h" ? Óscar Fuentes
2010-07-28 2:30 ` Miles Bader
2010-07-28 3:25 ` Óscar Fuentes
2010-07-28 6:30 ` Jan Djärv
2010-07-28 6:46 ` Óscar Fuentes
2010-07-28 7:06 ` Jan Djärv
2010-07-28 7:35 ` Óscar Fuentes
2010-07-28 7:57 ` Jan Djärv [this message]
2010-07-28 8:04 ` immanuel litzroth
2010-07-28 8:19 ` Jan Djärv
2010-07-28 9:38 ` Óscar Fuentes
2010-07-28 10:07 ` Óscar Fuentes
2010-07-28 8:29 ` Andreas Schwab
2010-07-28 8:59 ` Óscar Fuentes
2010-07-29 14:26 ` Stefan Monnier
2010-07-30 9:21 ` Stephen J. Turnbull
2010-07-30 9:55 ` Eli Zaretskii
2010-08-01 9:31 ` Stephen J. Turnbull
2010-07-28 7:06 ` Andreas Röhler
2010-07-28 7:10 ` Óscar Fuentes
2010-07-28 7:15 ` Yavor Doganov
2010-07-28 7:46 ` Óscar Fuentes
2010-07-28 19:50 ` Dan Nicolaescu
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=4C4FE2E8.2030009@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
/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.