functionreturnfunction / dashboard-project-status

Display the status of a git project in emacs-dashboard
4 stars 4 forks source link

`dashboard-insert-recentf-list` not found #2

Open idcrook opened 5 years ago

idcrook commented 5 years ago

always get error: dashboard-project-status-insert-body: Symbol’s function definition is void: dashboard-insert-recentf-list

based on example in README.md

(use-package dashboard
  :config
  (use-package dashboard-project-status
   :config
    (add-to-list 'dashboard-item-generators
                 `(project-status . ,(dashboard-project-status  (expand-file-name "~/.dotfiles"))))
    (add-to-list 'dashboard-items '(project-status) t)
    (setq dashboard-items '((project-status . 10)
                            (recents        . 5)
                            (projects       . 5))))
  (dashboard-setup-startup-hook))

using dashboard 1.3.1

idcrook commented 5 years ago

when dashboard-insert-recentf-list function's deleted, loads without error.

modified   dashboard-project-status.el
@@ -74,15 +74,7 @@
                         items)))
           (when items
             (setq count (+ count (length items)))
-            (insert hard-newline)
-            (dashboard-insert-recentf-list
-             (car section)
-             (reverse
-              (let (ret)
-                (dolist (cur items ret)
-                  (setq ret (cons (expand-file-name
-                                   (concat (file-name-as-directory git-repo) cur))
-                                  ret))))))))))))
+            (insert hard-newline)))))))

 (defun dashboard-project-status (project-dir &optional update)
   "Return a function which will insert git status for PROJECT-DIR.
functionreturnfunction commented 5 years ago

Locally I'm using dashboard 1.2.5, that function must have gotten renamed or deleted (or refactored, or repurposed, etc). Thanks for the heads-up, hopefully I'll get a chance to look at this a little later today.