emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Byte compilation without writing the .elc file


From: Lars Ingebrigtsen
Subject: Byte compilation without writing the .elc file
Date: Sun, 23 Jun 2019 13:53:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Often when I'm working on an out-of-tree Emacs Lisp file, I want to do
byte compilation to see whether what I've done generates any warnings --
but I don't want the .elc file, because I want to run it from .el.

So I `M-x byte-compile-file' and then delete the .elc file.  This seems
kinda sub-optimal, and surely others must also have this problem.

The internal `byte-compile-from-buffer' function almost does the right
thing, but it doesn't set things up properly, so it doesn't quite work.

So I think it would be a good idea if Emacs had a command called, say,
`byte-compile-buffer' that does the same thing as `byte-compile-file',
but for the current buffer and without outputting anything.  Does that
sound OK?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]