[Top][All Lists]

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

master 1906476: project-remember-project: New public function

From: Dmitry Gutov
Subject: master 1906476: project-remember-project: New public function
Date: Fri, 24 Jul 2020 20:18:06 -0400 (EDT)

branch: master
commit 19064761ad2b17b13bdf3c8bd35e9ff58fe2e4fc
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    project-remember-project: New public function
    * lisp/progmodes/project.el (project-remember-project):
    Rename from project--add-to-project-list-front (bug#42332).
    And autoload it.
 lisp/progmodes/project.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index a093055..5cfc6a2 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -197,7 +197,7 @@ of the project instance object."
             pr (project--find-in-directory directory))))
     (when maybe-prompt
       (if pr
-          (project--add-to-project-list-front pr)
+          (project-remember-project pr)
         (project--remove-from-project-list directory)
         (setq pr (cons 'transient directory))))
@@ -987,7 +987,8 @@ With some possible metadata (to be decided).")
       (pp project--list (current-buffer))
       (write-region nil nil filename nil 'silent))))
-(defun project--add-to-project-list-front (pr)
+(defun project-remember-project (pr)
   "Add project PR to the front of the project list.
 Save the result in `project-list-file' if the list of projects has changed."

reply via email to

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