From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Doug Davis Newsgroups: gmane.emacs.bugs Subject: bug#46721: [PATCH] Interactive tag byte compilation functions in emacs-lisp-mode Date: Tue, 23 Feb 2021 11:13:40 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20346"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) To: 46721@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 23 17:14:14 2021 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 1lEaKD-0005Ay-Cb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 17:14:14 +0100 Original-Received: from localhost ([::1]:53480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEaKC-0000Ng-7p for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 11:14:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaK2-0000HS-Fl for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEaK2-0008I3-8x for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEaK1-0005mS-Q5 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Doug Davis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2021 16:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161409682922190 (code B ref -1); Tue, 23 Feb 2021 16:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Feb 2021 16:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:60294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEaJo-0005lp-L5 for submit@debbugs.gnu.org; Tue, 23 Feb 2021 11:13:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEaJn-0005lh-9A for submit@debbugs.gnu.org; Tue, 23 Feb 2021 11:13:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaJm-0008FY-Vw for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:13:47 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaJk-00088k-Tj for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:13:46 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E47995C004B for ; Tue, 23 Feb 2021 11:13:42 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 23 Feb 2021 11:13:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=d7lGJbF2N7LLX9m2nxnU7KDDHbg3x/9w1WSF6bHhlvo=; b=QcfQXiCo K1V6qSufFnOpkiVYGacQCr7WMhfxqgSm5xlE2ChlYLzTE9Btyxb/yPHbZX5TzyWw 8GXMlVDY0c0jzNHyElqPG2L+g5GptNWzhrgPpN3Be5VqdmLL+CeY1pwhEyJILy7+ H2wB7SWe1Txoe+sX3MHnouc39+pa1SZGlXjOeBqT5HAjCbBcQ+DSWcTk94jcIvHL 89Skp+E0YKIR9UfQrAgOYKBy2yR+Tzhi2OGOrQJJRgo/q/RMjWSoSpMyfG7Efrx4 lPl3uvzuPzbDgDk++8an9ApMPisEA+PrprvUTcflDquZF6epixDNmNvjbY3mfSh1 OBoBSe7H63H2yQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=d7lGJbF2N7LLX9m2nxnU7KDDHbg3x /9w1WSF6bHhlvo=; b=OmJ8tmqp4lNveQxlDMa8fqi6d87YZG+XvHQDWJY4uQA7A TSB6+WL1XBFKBcWQmemNsQqJuA/bUX3tXDD4xiDgEB7hMZGvFyxAojefKgwPMu3R n+0VflLaDvASFkyYoSLozwvSesun+BtRzZzFkGKKlpYco4ILngIU4sG1wDpol/1e wuVh6wh0Z0znx3DCfUeWM6gOvYMu3RX9frOVTebFBB0IffvKWWfDxLJnwMaZTEvD 9x+5xsUq9JpGhnH0ql05OdRO+BvMDzD4MxGFgdclWdJs2RqkWcZy9xcWAH82U6E1 HHY7PIyQe2tUOBhZAjHKFEdtuE5DaShOI7/3qtTVA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeehgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtsehmtderredtre dtnecuhfhrohhmpeffohhughcuffgrvhhishcuoeguuggrvhhishesuggurghvihhsrdhi oheqnecuggftrfgrthhtvghrnhepheekheduleeghedutedtueefhfduveffvdejteeigf dtkeeuvdduvdfggeffhfevnecukfhppedvgedrleekrdejiedrkedtnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvihhsseguuggrvh hishdrihho X-ME-Proxy: Original-Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 51D4D24005C for ; Tue, 23 Feb 2021 11:13:42 -0500 (EST) Received-SPF: pass client-ip=66.111.4.25; envelope-from=ddavis@ddavis.io; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:200664 Archived-At: --=-=-= Content-Type: text/plain I've accidentally called `emacs-lisp-byte-compile-and-load' in buffers that are not emacs-lisp-mode (due to M-x completion history), this patch should fix that. There are a number of other interactive functions in elisp-mode.el, but the two functions patched here I think are obviously meant to be limited to emacs-lisp-mode. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Interactive-tag-byte-compilation-functions-in-emacs-.patch >From 871b01a62ea494b0d04fb744d2fc0f69f78ec2cc Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Tue, 23 Feb 2021 10:54:01 -0500 Subject: [PATCH] Interactive tag byte compilation functions in emacs-lisp-mode * lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile, emacs-lisp-byte-compile-and-load): add interactive tagging. --- lisp/progmodes/elisp-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 397eb269a7..20c7f20d04 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -182,14 +182,14 @@ emacs-lisp-mode-map (defun emacs-lisp-byte-compile () "Byte compile the file containing the current buffer." - (interactive) + (interactive nil emacs-lisp-mode) (if buffer-file-name (byte-compile-file buffer-file-name) (error "The buffer must be saved in a file first"))) (defun emacs-lisp-byte-compile-and-load () "Byte-compile the current file (if it has changed), then load compiled code." - (interactive) + (interactive nil emacs-lisp-mode) (or buffer-file-name (error "The buffer must be saved in a file first")) (require 'bytecomp) -- 2.30.1 --=-=-=--