[Top][All Lists]

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

master 64cdcf7f51f: project-any-command: Use 'project-aware'

From: Dmitry Gutov
Subject: master 64cdcf7f51f: project-any-command: Use 'project-aware'
Date: Sun, 10 Dec 2023 20:19:24 -0500 (EST)

branch: master
commit 64cdcf7f51f1428c40d8c2a902c76b9877e2ff8d
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    project-any-command: Use 'project-aware'
    * lisp/progmodes/project.el (project-any-command): Change the
    symbol it's looking for to 'project-aware'.  Seems to convey the
    semantics best.
 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 cc473a12baf..0fa623616b6 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1843,7 +1843,7 @@ It's also possible to enter an arbitrary directory not in 
the list."
   "Run the next command in the current project.
 If the command name starts with `project-', or its symbol has
-property `project-related', it gets passed the project to use
+property `project-aware', it gets passed the project to use
 with the variable `project-current-directory-override'.
 Otherwise, `default-directory' is temporarily set to the current
 project's root.
@@ -1862,7 +1862,7 @@ which will take priority over the global ones."
     (when command
       (if (when (symbolp command)
             (or (string-prefix-p "project-" (symbol-name command))
-                (get command 'project-related)))
+                (get command 'project-aware)))
           (let ((project-current-directory-override root))
             (call-interactively command))
         (let ((default-directory root))

reply via email to

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