]> git.eshelyaron.com Git - emacs.git/commitdiff
(project-current): Add binding for 'non-essential'
authorDmitry Gutov <dmitry@gutov.dev>
Thu, 28 Mar 2024 03:41:52 +0000 (05:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 28 Mar 2024 10:28:38 +0000 (11:28 +0100)
* lisp/progmodes/project.el (project-current):
Add binding for 'non-essential' (bug#69584).

(cherry picked from commit 1552f8345d8cbea282d171bffe5a22e330eeed37)

lisp/progmodes/project.el

index 69f419bdab3602892182755c74fdbd3e314c0da4..879d7f403a59649941f3752315b65d8f0bfc727a 100644 (file)
@@ -229,7 +229,8 @@ See the doc string of `project-find-functions' for the general form
 of the project instance object."
   (unless directory (setq directory (or project-current-directory-override
                                         default-directory)))
-  (let ((pr (project--find-in-directory directory)))
+  (let ((pr (project--find-in-directory directory))
+        (non-essential (not maybe-prompt)))
     (cond
      (pr)
      ((unless project-current-directory-override