From: Philipp Stephani <p.stephani2@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: `batch-byte-compile' for directories?
Date: Fri, 19 Jun 2015 20:19:04 +0200 [thread overview]
Message-ID: <wvr4616ja7dz.fsf@phst2.muc.corp.google.com> (raw)
Hi,
the function `batch-byte-compile' supports directories. The code for
this is:
(let (source dest)
(dolist (file (directory-files (car command-line-args-left)))
(if (and (string-match emacs-lisp-file-regexp file)
(not (auto-save-file-name-p file))
(setq source
(expand-file-name file
(car command-line-args-left)))
(setq dest (byte-compile-dest-file source))
(file-exists-p dest)
(file-newer-than-file-p source dest))
(if (null (batch-byte-compile-file source))
(setq error t)))))
What I find weird is the condition that the destination file has to
exist for the compilation to be performed. I would expect logic similar
to the explicit file case (don't check destination file by default, and
if NOFORCE is set check for either nonexistent or old destination
file). Is the current behavior intended?
Thanks,
Philipp
--
Google Germany GmbH
Dienerstraße 12
80331 München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
next reply other threads:[~2015-06-19 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 18:19 Philipp Stephani [this message]
[not found] <mailman.5310.1434737951.904.help-gnu-emacs@gnu.org>
2015-06-19 18:54 ` `batch-byte-compile' for directories? Stefan Monnier
2015-06-21 12:02 ` Philipp Stephani
[not found] ` <mailman.5355.1434888145.904.help-gnu-emacs@gnu.org>
2015-06-21 17:31 ` Stefan Monnier
2015-06-21 19:27 ` Philipp Stephani
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=wvr4616ja7dz.fsf@phst2.muc.corp.google.com \
--to=p.stephani2@gmail.com \
--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.