From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#38072: when `byte-compile-file' finds out that a file is `no-byte-compile', it ignores `load' parameter Date: Sun, 13 Sep 2020 06:06:30 -0700 Message-ID: References: <834kocrbg1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pogonyshev@gmail.com, Stefan Monnier , 38072@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 13 15:07:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHRip-0003JO-Dp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Sep 2020 15:07:11 +0200 Original-Received: from localhost ([::1]:51464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHRio-0002SC-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Sep 2020 09:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHRig-0002Rc-AW for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 09:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHRig-0004sG-0U for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHRif-0001V3-S6 for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Sep 2020 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38072 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38072-submit@debbugs.gnu.org id=B38072.16000024025740 (code B ref 38072); Sun, 13 Sep 2020 13:07:01 +0000 Original-Received: (at 38072) by debbugs.gnu.org; 13 Sep 2020 13:06:42 +0000 Original-Received: from localhost ([127.0.0.1]:49698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHRiL-0001UV-DR for submit@debbugs.gnu.org; Sun, 13 Sep 2020 09:06:41 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:33426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHRiG-0001U2-K5 for 38072@debbugs.gnu.org; Sun, 13 Sep 2020 09:06:40 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id g4so14991059edk.0 for <38072@debbugs.gnu.org>; Sun, 13 Sep 2020 06:06:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=pGeSx1iEUiKUA8JD97zv3H6fh3vsuCS2aFlewemkVLI=; b=KWdrHUMWz6sE7NGWMsthNviCDfvzxxAg3hIH8kbde2Amh11tkv9JvzF94FUTZzmSh+ IIJMhLd7wh+JjvjgUtRqo1XuEa2zpaWZZfQ/pw9lzBUK19Vj57cB2WT1sleY9OxxiTtN 8Dvyy+OYND0msHrB4o+P1oOf89hQA2Vt2KxOqxMIeUcsObtyoNN66lIf3zqjF1sk0ofW ihWhCymUYBC7b+BzvO6SApqVHYaQLcjjxaa7RZVy55WKzwt0K9F0knNjH/E3i2UyZ8vz fVjupmjalLXimbXigkD+bi9HP90GBBWoLefK3ElNzS2fpLqmdmxRXuz8edxP/VxY1rhZ v5oQ== X-Gm-Message-State: AOAM531M6Oh1r7d+hrOB++55Skylhq/ZNHhP1LSc9cPFJREwOCbFEDPx 9mMvAIWfy2IwCnkuz71bStQ5GRKWTENUyA4AURU= X-Google-Smtp-Source: ABdhPJw3+ilkYmvgMajk6e6eYaxFDlTqwS3T000vOSNPKI6WJK8gT09lNdTe5AE+VyBFBOx0t2/rU/3E22Nel4ziIaA= X-Received: by 2002:a50:e685:: with SMTP id z5mr3149052edm.259.1600002391046; Sun, 13 Sep 2020 06:06:31 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 13 Sep 2020 06:06:30 -0700 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187940 Archived-At: Andrea Corallo writes: >>> FWIW, I find the "and load" feature to be a mistake: the function should >>> return whether or not it successfully compiled the file, but shouldn't >>> offer to load the result, since the callers can just as easily do >>> it themselves (and then they can easily control what happens when >>> compilation did not succeed). >>> So, I'd suggest we deprecate that "feature" rather than try and decide >>> which behavior is better. >> >> But if we do deprecate this, is there a better alternative that we can >> point users to? Should we just tell them to run two commands? > > would having the load performed by `emacs-lisp-byte-compile-and-load' an > option? Yes, that is good. I didn't know about that command. So I agree with Stefan M that the prefix argument should be deprecated. Do we have a process for that or should it just be removed?