all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Byte compilation without writing the .elc file
@ 2019-06-23 11:53 Lars Ingebrigtsen
  2019-06-23 12:55 ` Stefan Monnier
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2019-06-23 11:53 UTC (permalink / raw)
  To: emacs-devel

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




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

end of thread, other threads:[~2019-06-23 15:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-23 11:53 Byte compilation without writing the .elc file Lars Ingebrigtsen
2019-06-23 12:55 ` Stefan Monnier
2019-06-23 13:35   ` Lars Ingebrigtsen
2019-06-23 13:14 ` Clément Pit-Claudel
2019-06-23 13:38   ` Lars Ingebrigtsen
2019-06-23 13:32 ` phillip.lord
2019-06-23 15:49 ` Drew Adams

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.