emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 753f8aa1f14: Fix project-name for vc-aware backend in non-file


From: Dmitry Gutov
Subject: emacs-29 753f8aa1f14: Fix project-name for vc-aware backend in non-file buffers
Date: Thu, 1 Jun 2023 22:10:55 -0400 (EDT)

branch: emacs-29
commit 753f8aa1f14c2ff5d86b086230d600eb9bb5d8bc
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    Fix project-name for vc-aware backend in non-file buffers
    
    * lisp/progmodes/project.el (project-name): Make sure
    project-vc-name is picked up from dir-locals in all
    non-file-visiting buffers too (mentioned in bug#63469).
---
 lisp/progmodes/project.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 617ca45ed0d..d482cc24d70 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -805,8 +805,8 @@ DIRS must contain directory names."
         (push buf bufs)))
     (nreverse bufs)))
 
-(cl-defmethod project-name ((_project (head vc)))
-  (or project-vc-name
+(cl-defmethod project-name ((project (head vc)))
+  (or (project--value-in-dir 'project-vc-name (project-root project))
       (cl-call-next-method)))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]