]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix C-x p p for remote directories with no Tramp connection
authorVisuwesh <visuweshm@gmail.com>
Thu, 3 Apr 2025 13:17:36 +0000 (18:47 +0530)
committerEshel Yaron <me@eshelyaron.com>
Fri, 4 Apr 2025 14:15:00 +0000 (16:15 +0200)
* lisp/progmodes/project.el (project-switch-project): Allow
Tramp to establish a new connection for remote directories.
(Bug#77425)

(cherry picked from commit 839ef39a5e4eb4905c21b1431c146df755fa4b7a)

lisp/progmodes/project.el

index 3721a19d8529ae6d5d3b2267aef7cfd3db776381..9840efb9961a22abfbfbdcde7fb99c5491416a41 100644 (file)
@@ -2201,7 +2201,7 @@ made from `project-switch-commands'.
 When called in a program, it will use the project corresponding
 to directory DIR."
   (interactive (list (funcall project-prompter)))
-  (project-remember-project (project-current nil dir))
+  (project-remember-project (project-current t dir))
   (let ((command (project--switch-project-command dir))
         (buffer (current-buffer)))
     (unwind-protect