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