From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Why does byte-compile-file copy the input file to a different buffer?
Date: Sun, 17 Dec 2023 16:06:44 +0000 [thread overview]
Message-ID: <ZX8clIYNwY6UAoxm@ACM> (raw)
Hello, Emacs.
On executing a byte-compile-file command, rather than working on the
file's buffer directly, the byte compiler first copies the buffer/file
into another buffer with a boring name like " *Compiler Input*" or "
*Compiler Input*-1".
Why does it do this? It makes it difficult, in the reader, to determine
the identity of the actual source buffer. (Yes, I have reasons for
wanting to do this.)
Would it not be simpler just to compile directly from the source buffer,
thus avoiding a needless copying and making it clear what the actual
source buffer is?
--
Alan Mackenzie (Nuremberg, Germany).
next reply other threads:[~2023-12-17 16:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-17 16:06 Alan Mackenzie [this message]
2023-12-17 16:48 ` Why does byte-compile-file copy the input file to a different buffer? Eli Zaretskii
2023-12-17 17:09 ` Alan Mackenzie
2023-12-17 17:18 ` Eli Zaretskii
2023-12-17 18:37 ` Alan Mackenzie
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=ZX8clIYNwY6UAoxm@ACM \
--to=acm@muc.de \
--cc=emacs-devel@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.