diff options
| author | Dmitry Gutov | 2020-05-12 04:20:26 +0300 |
|---|---|---|
| committer | Simen Heggestøyl | 2020-05-26 17:41:24 +0200 |
| commit | 02e1ee95a8d6459f455f1bfb5953b8798f069645 (patch) | |
| tree | 0a54239666b8a241701477a48bb66bfa204c7dbf | |
| parent | afb96da6111ed0f9c26b6b0ff91aaddfec6277a5 (diff) | |
| download | emacs-02e1ee95a8d6459f455f1bfb5953b8798f069645.tar.gz emacs-02e1ee95a8d6459f455f1bfb5953b8798f069645.zip | |
Integrate project-switch-project with project-find-regexp
* 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.
| -rw-r--r-- | lisp/progmodes/project.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 12b7e3fdb93..da865255e36 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -809,6 +809,9 @@ LABEL is used to distinguish the function in the dispatch menu." | |||
| 809 | 'project-find-file "f" "Find file") | 809 | 'project-find-file "f" "Find file") |
| 810 | 810 | ||
| 811 | (project-add-switch-command | 811 | (project-add-switch-command |
| 812 | 'project-find-regexp "g" "Find regexp") | ||
| 813 | |||
| 814 | (project-add-switch-command | ||
| 812 | 'project-dired "d" "Dired") | 815 | 'project-dired "d" "Dired") |
| 813 | 816 | ||
| 814 | (project-add-switch-command | 817 | (project-add-switch-command |
| @@ -841,7 +844,7 @@ and presented in a dispatch menu." | |||
| 841 | (if (equal choice (kbd "C-g")) | 844 | (if (equal choice (kbd "C-g")) |
| 842 | (message "Quit") | 845 | (message "Quit") |
| 843 | (let ((default-directory dir)) | 846 | (let ((default-directory dir)) |
| 844 | (funcall (assoc-default choice project--switch-alist)))))) | 847 | (call-interactively (assoc-default choice project--switch-alist)))))) |
| 845 | 848 | ||
| 846 | (provide 'project) | 849 | (provide 'project) |
| 847 | ;;; project.el ends here | 850 | ;;; project.el ends here |