unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why does byte-compile-file copy the input file to a different buffer?
@ 2023-12-17 16:06 Alan Mackenzie
  2023-12-17 16:48 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2023-12-17 16:06 UTC (permalink / raw)
  To: emacs-devel

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).



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-17 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17 16:06 Why does byte-compile-file copy the input file to a different buffer? Alan Mackenzie
2023-12-17 16:48 ` Eli Zaretskii
2023-12-17 17:09   ` Alan Mackenzie
2023-12-17 17:18     ` Eli Zaretskii
2023-12-17 18:37       ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).