diff options
| author | Dmitry Gutov | 2023-11-01 04:01:53 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2023-11-01 04:01:53 +0200 |
| commit | ffe894d0f358b94999e642b5167a3e43de7e0bc7 (patch) | |
| tree | 103247a9a148ed2548a682e6efecc429125d9965 | |
| parent | 8439f834493805017e0c44fa88a6b2e9b1a893eb (diff) | |
| download | emacs-ffe894d0f358b94999e642b5167a3e43de7e0bc7.tar.gz emacs-ffe894d0f358b94999e642b5167a3e43de7e0bc7.zip | |
Only override the current project buffer-locally
* lisp/progmodes/project.el (project-switch-project): Only
override the current project buffer-locally. This is mostly for
the the mode-line indicator (https://debbugs.gnu.org/66317#53).
| -rw-r--r-- | lisp/progmodes/project.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 76c5144b484..5129dc98b82 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -2030,8 +2030,11 @@ to directory DIR." | |||
| 2030 | (let ((command (if (symbolp project-switch-commands) | 2030 | (let ((command (if (symbolp project-switch-commands) |
| 2031 | project-switch-commands | 2031 | project-switch-commands |
| 2032 | (project--switch-project-command)))) | 2032 | (project--switch-project-command)))) |
| 2033 | (let ((project-current-directory-override dir)) | 2033 | (unwind-protect |
| 2034 | (call-interactively command)))) | 2034 | (progn |
| 2035 | (setq-local project-current-directory-override dir) | ||
| 2036 | (call-interactively command)) | ||
| 2037 | (kill-local-variable 'project-current-directory-override)))) | ||
| 2035 | 2038 | ||
| 2036 | ;;;###autoload | 2039 | ;;;###autoload |
| 2037 | (defun project-uniquify-dirname-transform (dirname) | 2040 | (defun project-uniquify-dirname-transform (dirname) |