]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare some project commands interactive-only
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 19 Jan 2021 19:50:11 +0000 (21:50 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 19 Jan 2021 19:50:11 +0000 (21:50 +0200)
* lisp/progmodes/project.el (project-async-shell-command)
(project-shell-command, project-compile):
Declare interactive-only (bug#45765).

lisp/progmodes/project.el

index 06966f33b722c29a7eacfaf824a81720eb02f109..18124227d1b098a847117af1f88e52aba935960b 100644 (file)
@@ -929,6 +929,7 @@ if one already exists."
 (defun project-async-shell-command ()
   "Run `async-shell-command' in the current project's root directory."
   (interactive)
+  (declare (interactive-only async-shell-command))
   (let ((default-directory (project-root (project-current t))))
     (call-interactively #'async-shell-command)))
 
@@ -936,6 +937,7 @@ if one already exists."
 (defun project-shell-command ()
   "Run `shell-command' in the current project's root directory."
   (interactive)
+  (declare (interactive-only shell-command))
   (let ((default-directory (project-root (project-current t))))
     (call-interactively #'shell-command)))
 
@@ -973,6 +975,7 @@ loop using the command \\[fileloop-continue]."
 (defun project-compile ()
   "Run `compile' in the project root."
   (interactive)
+  (declare (interactive-only compile))
   (let ((default-directory (project-root (project-current t))))
     (call-interactively #'compile)))