summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/project.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 39c122f75ff..ac56537b977 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -744,6 +744,9 @@ LABEL is used to distinguish the function in the dispatch menu."
'project-find-file "f" "Find file")
(project-add-switch-command
+ 'project-find-regexp "g" "Find regexp")
+
+(project-add-switch-command
'project-dired "d" "Dired")
(project-add-switch-command
@@ -776,7 +779,7 @@ and presented in a dispatch menu."
(if (equal choice (kbd "C-g"))
(message "Quit")
(let ((default-directory dir))
- (funcall (assoc-default choice project--switch-alist))))))
+ (call-interactively (assoc-default choice project--switch-alist))))))
(provide 'project)
;;; project.el ends here