diff options
| author | Dmitry Gutov | 2021-01-19 21:50:11 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2021-01-19 21:50:11 +0200 |
| commit | 8725f7690a44306f03d7cbb9eaa45590fcaf88db (patch) | |
| tree | 639e28f7df055bc10e76e61c298c57dc9751b93a | |
| parent | eec059b124ed57956cf896904ef8240b24cc7ead (diff) | |
| download | emacs-8725f7690a44306f03d7cbb9eaa45590fcaf88db.tar.gz emacs-8725f7690a44306f03d7cbb9eaa45590fcaf88db.zip | |
Declare some project commands interactive-only
* lisp/progmodes/project.el (project-async-shell-command)
(project-shell-command, project-compile):
Declare interactive-only (bug#45765).
| -rw-r--r-- | lisp/progmodes/project.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 06966f33b72..18124227d1b 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -929,6 +929,7 @@ if one already exists." | |||
| 929 | (defun project-async-shell-command () | 929 | (defun project-async-shell-command () |
| 930 | "Run `async-shell-command' in the current project's root directory." | 930 | "Run `async-shell-command' in the current project's root directory." |
| 931 | (interactive) | 931 | (interactive) |
| 932 | (declare (interactive-only async-shell-command)) | ||
| 932 | (let ((default-directory (project-root (project-current t)))) | 933 | (let ((default-directory (project-root (project-current t)))) |
| 933 | (call-interactively #'async-shell-command))) | 934 | (call-interactively #'async-shell-command))) |
| 934 | 935 | ||
| @@ -936,6 +937,7 @@ if one already exists." | |||
| 936 | (defun project-shell-command () | 937 | (defun project-shell-command () |
| 937 | "Run `shell-command' in the current project's root directory." | 938 | "Run `shell-command' in the current project's root directory." |
| 938 | (interactive) | 939 | (interactive) |
| 940 | (declare (interactive-only shell-command)) | ||
| 939 | (let ((default-directory (project-root (project-current t)))) | 941 | (let ((default-directory (project-root (project-current t)))) |
| 940 | (call-interactively #'shell-command))) | 942 | (call-interactively #'shell-command))) |
| 941 | 943 | ||
| @@ -973,6 +975,7 @@ loop using the command \\[fileloop-continue]." | |||
| 973 | (defun project-compile () | 975 | (defun project-compile () |
| 974 | "Run `compile' in the project root." | 976 | "Run `compile' in the project root." |
| 975 | (interactive) | 977 | (interactive) |
| 978 | (declare (interactive-only compile)) | ||
| 976 | (let ((default-directory (project-root (project-current t)))) | 979 | (let ((default-directory (project-root (project-current t)))) |
| 977 | (call-interactively #'compile))) | 980 | (call-interactively #'compile))) |
| 978 | 981 | ||