From: Xavier Maillard <zedek@gnu.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org, julliard@winehq.org
Subject: Re: [PATCH 6/7] Small changes
Date: Mon, 5 Mar 2007 08:52:27 +0100 [thread overview]
Message-ID: <200703050752.l257qRog007776@localhost.localdomain> (raw)
In-Reply-To: <7vps7q7z44.fsf@assigned-by-dhcp.cox.net> (junkio@cox.net)
From: Junio C Hamano <junkio@cox.net>
Xavier Maillard <zedek@gnu.org> writes:
> * Makefile: add git-blame as a candidate to the
> byte-compilation. Change the function to call to byte-compile.
Could we have a bit more detailed description on the latter
change?
Sure.
byte-compile-file is an interactive function.
batch--byte-compile is a batch function.
First function would be (better) called when using emacs in its
"interactive" form -ie. M-x byte-compile-file RET.
batch-byte-compile is reserved for batching use (no interaction
with the user).
So in non interactive mode, this is prefered way to do things.
Explaining why something needed a change is the point of a
commit log message. Summarizing what got changed and how is
good but that is secondary, because anybody can see that you
changed the handcrafted --eval to -f by running "git show", even
if you did not have the above proposed log message.
Sorry Iam not "good" at commit log :/
What is left unsaid is _why_ it is better to use single dash
form of "-batch" and -f form instead of handcrafted --eval, and
the proposed log message does not clarify the reason.
First reason is given by C-h f batch-byte-compile RET which
gives:
batch-byte-compile is an autoloaded Lisp function in `bytecomp'.
(batch-byte-compile &optional noforce)
Run `byte-compile-file' on the files remaining on the command line.
Use this from the command line, with `-batch';
it won't work in an interactive Emacs.
Each file is processed even if an error occurred previously.
For example, invoke "emacs -batch -f batch-byte-compile $emacs/ ~/*.el".
If noforce is non-nil, don't recompile a file that seems to be
Second reason is "by habit" :)
Hope Ihave been clear. If you want me to submit something again
from these patches, please tell how to do so (and modify what
Ihave changed).
--
Xavier
next prev parent reply other threads:[~2007-03-05 7:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-03 10:20 [PATCH 6/7] Small changes Xavier Maillard
2007-03-03 22:15 ` Junio C Hamano
2007-03-05 7:52 ` Xavier Maillard [this message]
2007-03-05 8:46 ` Junio C Hamano
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=200703050752.l257qRog007776@localhost.localdomain \
--to=zedek@gnu.org \
--cc=git@vger.kernel.org \
--cc=julliard@winehq.org \
--cc=junkio@cox.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).