From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Byte compilation without writing the .elc file Date: Sun, 23 Jun 2019 09:14:22 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="51431"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 23 15:14:45 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hf2KT-000D6H-B7 for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2019 15:14:45 +0200 Original-Received: from localhost ([::1]:44776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf2KH-0001n9-Ov for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2019 09:14:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51165) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf2KB-0001mk-1K for emacs-devel@gnu.org; Sun, 23 Jun 2019 09:14:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hf2KA-0008WJ-3l for emacs-devel@gnu.org; Sun, 23 Jun 2019 09:14:26 -0400 Original-Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:38135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hf2K9-0008Tl-Qh for emacs-devel@gnu.org; Sun, 23 Jun 2019 09:14:26 -0400 Original-Received: by mail-qk1-x731.google.com with SMTP id a27so7827569qkk.5 for ; Sun, 23 Jun 2019 06:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=IZCk/xMGY6Z8PU7JT+sBVLidXzhJM7nYcnLtm6BIurc=; b=PdJPM2b4VU1RJEuw5pSvtSt6zEDqB2ny0vBF0qcGMxDQrdqYtu0A/2vp8dz7xaBQTB Pm+MxiL8bnHQxbd1FvStjqFpYmTPPD6Q/JF5SShulFxYN5vQio+UAeeY5ahsmJNsGvXu x6/C429SsFdgW6LQwWovIoWuxmIfenmfEBrNAY+CT9cDKROYOiWTzxenu8F0hokyhjgN tAP9AEHJzHMiGoa2kPbfqNGEz9+JaDgP3JSiEEzQSai5QS4DA6gthU0QROxr0o5DwVyI 7zPHqKgFCugzoP+DB6d+CuOEOE7825If2X89urNQtK02hojY84LsD2ZLPIs0udV5T30z TARA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IZCk/xMGY6Z8PU7JT+sBVLidXzhJM7nYcnLtm6BIurc=; b=HPirrVnFlmwLJpi3mWgfqM25jeuHkaxoKhQ9wSvjSIM8dVi6rhwbkKuR+2IEsTvdv3 P5Pcr1XjHJMA8tEdYvlsdZcu25nejMDztB14aqaYrQQgQaFU2IH7n2R6XhUrvFH/GdYF V317sP6Klk4gh7ZLyKSBfFosxBNcOpCPKUwz5gRqgEHWNEePzE9lRLBcYgC0VQCbkb60 Tf/l+cYAAPFKtZlj/wBnsXHbAC4AbjgLJFHcq0CJ3u6DajCQ1N/Tulf+IP/B+N0/eAnH mqWNHVwOS0IdyzWnNXe6CgJRDKPWzt/0rdhk+yL+2+Qr2had9gwUckdyvJiUFiDjqCLj fvYw== X-Gm-Message-State: APjAAAX0RuT8bbnc52wzFqEFwMByXeBULfCSZs1sPxV73iuazlWfobrd wNGau4ZfnChGMkZcZ5Dln1jqSaMo X-Google-Smtp-Source: APXvYqy08hbtyeHU6GqK6Ku9HXbvJPdLnCQKSMKEuBx5Syv/Sb0H26Mh0uvVhMFwvCMcevhx338h7w== X-Received: by 2002:a37:8a81:: with SMTP id m123mr34279755qkd.360.1561295663866; Sun, 23 Jun 2019 06:14:23 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:f973:3492:737c:7cdc? ([2601:184:4180:66e7:f973:3492:737c:7cdc]) by smtp.googlemail.com with ESMTPSA id l6sm3777526qkc.89.2019.06.23.06.14.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 06:14:23 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::731 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238060 Archived-At: 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.