[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/project-switching-x 90a749b 5/5: Integrate project-switch-projec
From: |
Dmitry Gutov |
Subject: |
scratch/project-switching-x 90a749b 5/5: Integrate project-switch-project with project-find-regexp |
Date: |
Mon, 11 May 2020 21:21:04 -0400 (EDT) |
branch: scratch/project-switching-x
commit 90a749bde29bb417ed2cc4e4501ea5ebe9c8b435
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
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.
---
lisp/progmodes/project.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 39c122f..ac56537 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
- branch scratch/project-switching-x created (now 90a749b), Dmitry Gutov, 2020/05/11
- scratch/project-switching-x d98038e 1/5: Simplify a little, and avoid duplicate commands, Dmitry Gutov, 2020/05/11
- scratch/project-switching-x 9cfc9c9 4/5: Move project-dired and project-eshell higher, Dmitry Gutov, 2020/05/11
- scratch/project-switching-x 8d6b841 2/5: Improve project name completion, Dmitry Gutov, 2020/05/11
- scratch/project-switching-x 90a749b 5/5: Integrate project-switch-project with project-find-regexp,
Dmitry Gutov <=
- scratch/project-switching-x ac837ee 3/5: Use an alist instead of a keymap, Dmitry Gutov, 2020/05/11