emacs-devel
[Top][All Lists]
Advanced

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

Re: New feature in project.el: Remembering the previously used projects


From: Dmitry Gutov
Subject: Re: New feature in project.el: Remembering the previously used projects
Date: Sat, 30 May 2020 20:05:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 30.05.2020 16:17, Dmitry Gutov wrote:
Here's another patch you can try, it should cover both problems:

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 1f2a4e8471..2d0b6c4a21 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -115,10 +115,11 @@ project-current
          maybe-prompt)
        (setq dir (project-prompt-project-dir)
              pr (project--find-in-directory dir))))
-    (if pr
-        (project--add-to-project-list-front pr)
-      (project--remove-from-project-list dir)
-      (setq pr (cons 'transient dir)))
+    (when maybe-prompt
+      (if pr
+          (project--add-to-project-list-front pr)
+        (project--remove-from-project-list dir)
+        (setq pr (cons 'transient dir))))
      pr))

  (defun project--find-in-directory (dir)

Pushed to master, since it was a definite bug. Thanks for reporting.



reply via email to

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