unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Byte compilation without writing the .elc file
Date: Sun, 23 Jun 2019 09:14:22 -0400	[thread overview]
Message-ID: <c6fc50ef-cbe4-3fe9-230e-230118c03709@gmail.com> (raw)
In-Reply-To: <m3o92ov7p5.fsf@gnus.org>

On 2019-06-23 07:53, Lars Ingebrigtsen wrote:
> 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?

I think it would be great.  In Flycheck we have to save a copy of the buffer, and tweak byte-compile-dest-file-function to create a temporary output file, too.  If both of these could go it would be awesome.

I think you could even make byte-compile-buffer return a other buffer with the ELC contents, and then byte-compile-file could be trivially implemented in terms of that.



  parent reply	other threads:[~2019-06-23 13:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2019-06-23 13:38   ` Lars Ingebrigtsen
2019-06-23 13:32 ` phillip.lord
2019-06-23 15:49 ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c6fc50ef-cbe4-3fe9-230e-230118c03709@gmail.com \
    --to=cpitclaudel@gmail.com \
    --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 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).