[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/project-switching 02e1ee9 06/15: Integrate project-switch-projec
From: |
Simen Heggestøyl |
Subject: |
feature/project-switching 02e1ee9 06/15: Integrate project-switch-project with project-find-regexp |
Date: |
Tue, 26 May 2020 11:43:18 -0400 (EDT) |
branch: feature/project-switching
commit 02e1ee95a8d6459f455f1bfb5953b8798f069645
Author: Dmitry Gutov <address@hidden>
Commit: Simen Heggestøyl <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 12b7e3f..da86525 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."
'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
@@ -841,7 +844,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 feature/project-switching created (now 449810b), Simen Heggestøyl, 2020/05/26
- feature/project-switching afb7602 01/15: Add project switching functionality, Simen Heggestøyl, 2020/05/26
- feature/project-switching 9422fb5 03/15: Improve project name completion, Simen Heggestøyl, 2020/05/26
- feature/project-switching c8cca68 04/15: Use an alist instead of a keymap, Simen Heggestøyl, 2020/05/26
- feature/project-switching afb96da 05/15: Move project-dired and project-eshell higher, Simen Heggestøyl, 2020/05/26
- feature/project-switching 02e1ee9 06/15: Integrate project-switch-project with project-find-regexp,
Simen Heggestøyl <=
- feature/project-switching 46bb2cb 07/15: Change dispatch binding of 'project-find-regexp', Simen Heggestøyl, 2020/05/26
- feature/project-switching 0db801a 11/15: Update the Emacs manual with recent project.el changes, Simen Heggestøyl, 2020/05/26
- feature/project-switching e37e6c8 13/15: Some copy edits, Simen Heggestøyl, 2020/05/26
- feature/project-switching 9f88356 02/15: Simplify a little, and avoid duplicate commands, Simen Heggestøyl, 2020/05/26
- feature/project-switching c6f56bd 08/15: Turn project switch menu var into a public alist, Simen Heggestøyl, 2020/05/26
- feature/project-switching 7082468 10/15: Rename 'project-switch-menu' to 'project-switch-commands', Simen Heggestøyl, 2020/05/26
- feature/project-switching 0b057ca 12/15: Teach project-current to inhibit the prompt, Simen Heggestøyl, 2020/05/26
- feature/project-switching 449810b 15/15: Avoid adding the empty string to the project list, Simen Heggestøyl, 2020/05/26
- feature/project-switching c6e80fd 09/15: Simplify 'project--keymap-prompt' a bit, Simen Heggestøyl, 2020/05/26
- feature/project-switching 5a48ede 14/15: Adapt project functions to the new 'project-root', Simen Heggestøyl, 2020/05/26