* lisp/progmodes/project.el:
(project-find-regexp): Add to the list of 'switch' commands.
(project-switch-project): Use call-interactively so that the
former can read its arguments.
(project-add-switch-command
'project-find-file "f" "Find file")
+(project-add-switch-command
+ 'project-find-regexp "g" "Find regexp")
+
(project-add-switch-command
'project-dired "d" "Dired")
(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