org-agenda.el (org-agenda-list-stuck-projects): Fix bug

* org-agenda.el (org-agenda-list-stuck-projects): Bugfix: set
`org-agenda-buffer-name'.

Thanks to Sébastien Vauban for reporting this.
This commit is contained in:
Bastien Guerry 2014-03-13 12:50:09 +01:00
parent 84bb027076
commit 23b98ac01e
1 changed files with 1 additions and 0 deletions

View File

@ -5086,6 +5086,7 @@ of what a project is and how to check if it stuck, customize the variable
(mapconcat 'identity re-list "\\|")
(error "No information how to identify unstuck projects")))
(org-tags-view nil matcher)
(setq org-agenda-buffer-name (buffer-name))
(with-current-buffer org-agenda-buffer-name
(setq org-agenda-redo-command
`(org-agenda-list-stuck-projects ,current-prefix-arg)))))