]> git.eshelyaron.com Git - emacs.git/commitdiff
project-remember-project: New public function
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 25 Jul 2020 00:17:47 +0000 (03:17 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 25 Jul 2020 00:17:47 +0000 (03:17 +0300)
* lisp/progmodes/project.el (project-remember-project):
Rename from project--add-to-project-list-front (bug#42332).
And autoload it.

lisp/progmodes/project.el

index a0930553bd7b73f00c70c77347a223b55cb7dd7c..5cfc6a2098631b8dbeeb8a81240d68dc78dfde08 100644 (file)
@@ -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))))
     pr))
@@ -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)
+;;;###autoload
+(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."
   (project--ensure-read-project-list)