emacs-31 72b8d88171a: Use default-value in project--value-in-dir
Dmitry Gutov <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit 72b8d88171a1b1b6a854ee65992228d92352bb73 Author: Zhengyi Fu <[email protected]> Commit: Dmitry Gutov <[email protected]> Use default-value in project--value-in-dir When in a VC project whose dir-locals file specifies `project-vc-name', the function `project--value-in-dir' previously used `symbol-value' to retrieve the variable value, causing `project-name' to return the same name for all VC projects without an explicit `project-vc-name'. Use `default-value' instead to correctly fall back to the default value. * lisp/progmodes/project.el (project--value-in-dir): Replace `symbol-value' with `default-value' (bug#81293). Copyright-paperwork-exempt: yes --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 7e794330b1f..ebbaa7609ea 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -974,7 +974,7 @@ DIRS must contain directory names." (let ((res (project--read-dir-locals dir))) (project--set-cached dir 'project-vc-dir-locals (or res 'none)) res)))) - (symbol-value var))) + (default-value var))) (defun project--read-dir-locals (dir) (with-temp-buffer