diff --git a/CHANGELOG.md b/CHANGELOG.md index fc88565..097cb38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how * Add functionality to delete items (#366) * Fix issue dashboard-banners-directory resolves with two slashes ("dashboard//banners") (GNU only?) (#367) * Add capability to remove item for agenda (#372) +* Add CI, activation test (#381) +* Fix dashboard not showing up in daemon mode (#382) ## 1.7.0 > Released Feb 21, 2020 diff --git a/README.org b/README.org index bf39934..36c63b3 100644 --- a/README.org +++ b/README.org @@ -59,7 +59,7 @@ In addition to the above, configure =initial-buffer-choice= to show Dashboard in frames created with =emacsclient -c= as follows: #+BEGIN_SRC elisp -(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) +(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))) #+END_SRC * Configuration diff --git a/dashboard.el b/dashboard.el index ca4a701..6941a6e 100644 --- a/dashboard.el +++ b/dashboard.el @@ -381,16 +381,14 @@ Optional argument ARGS adviced function arguments." (defun dashboard-insert-startupify-lists () "Insert the list of widgets into the buffer." (interactive) - (let ((buffer-exists (buffer-live-p (get-buffer dashboard-buffer-name))) - (recentf-is-on (recentf-enabled-p)) + (let ((recentf-is-on (recentf-enabled-p)) (origial-recentf-list recentf-list) (dashboard-num-recents (or (cdr (assoc 'recents dashboard-items)) 0)) (max-line-length 0)) (when recentf-is-on (setq recentf-list (dashboard-subseq recentf-list dashboard-num-recents))) (when (or dashboard-force-refresh - (not (eq dashboard-buffer-last-width (window-width))) - (not buffer-exists)) + (not (eq dashboard-buffer-last-width (window-width)))) (setq dashboard-banner-length (window-width) dashboard-buffer-last-width dashboard-banner-length) (with-current-buffer (get-buffer-create dashboard-buffer-name) diff --git a/test/activate.el b/test/activate.el index d574bb6..70c13a5 100644 --- a/test/activate.el +++ b/test/activate.el @@ -23,7 +23,8 @@ ;;; Code: (dashboard-setup-startup-hook) -(switch-to-buffer dashboard-buffer-name) + +(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))) (message "Done activation test.")