Commit ffe894d0 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

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).
parent 8439f834
Pipeline #27006 failed with stage
in 10 minutes and 36 seconds
......@@ -2030,8 +2030,11 @@ to directory DIR."
(let ((command (if (symbolp project-switch-commands)
project-switch-commands
(project--switch-project-command))))
(let ((project-current-directory-override dir))
(call-interactively command))))
(unwind-protect
(progn
(setq-local project-current-directory-override dir)
(call-interactively command))
(kill-local-variable 'project-current-directory-override))))
;;;###autoload
(defun project-uniquify-dirname-transform (dirname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment