master 220bd832e1d: flymake-show-project-diagnostics: Fix when invoked outside of projects
Dmitry Gutov <[email protected]> Thu, 2 Jul 2026 02:47:02 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit 220bd832e1d8f9eb46ef5da6a24a3881916fe20c Author: Dmitry Gutov <[email protected]> Commit: Dmitry Gutov <[email protected]> flymake-show-project-diagnostics: Fix when invoked outside of projects * lisp/progmodes/flymake.el (flymake-show-project-diagnostics): Fix when invoked outside of all recognizable projects (bug#81288). Co-Authored-By: Spencer Baugh <[email protected]> --- lisp/progmodes/flymake.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 823aa4fe673..3b017a56d01 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -2238,9 +2238,9 @@ some of this variable's contents the diagnostic listings.") (defun flymake-show-project-diagnostics () "Show a list of Flymake diagnostics for the current project." (interactive) - (let* ((prj (project-current)) - (root (project-root prj)) - (buffer (flymake--project-diagnostics-buffer root))) + (let* ((prj (project-current t)) + (default-directory (project-root prj)) + (buffer (flymake--project-diagnostics-buffer default-directory))) (with-current-buffer buffer (flymake-project-diagnostics-mode) (setq-local flymake--project-diagnostic-list-project prj)