]> git.eshelyaron.com Git - emacs.git/commitdiff
Interactive tag byte compilation functions in emacs-lisp-mode
authorDoug Davis <ddavis@ddavis.io>
Wed, 24 Feb 2021 16:43:49 +0000 (17:43 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 24 Feb 2021 16:43:49 +0000 (17:43 +0100)
* lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile)
(emacs-lisp-byte-compile-and-load): Add interactive tagging
(bug#46721).

lisp/progmodes/elisp-mode.el

index 397eb269a719b50904e2a26ec6db4c215dc5a7d3..20c7f20d0406efef5fee1fee1006fb2a6a28b956 100644 (file)
@@ -182,14 +182,14 @@ All commands in `lisp-mode-shared-map' are inherited by this 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)