Agenda: When in separate frame, mark the frame dedicated.

Henry Atting writes:

> If org agenda is displayed in an other frame then windows aren*t
> restored when quitting, I have to kill the frame manually.  I
> really would like it to behave like e.g. gnus-other-frame which
> automatically kills his frame on quitting.
This commit is contained in:
Carsten Dominik 2009-08-27 18:17:12 +02:00
parent fa36f186b2
commit bbc27c011a
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-08-27 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-prepare-agenda): When creating a new frame
for the agenda, make the window dedicated.
* org-agenda.el (org-agenda-mode-map): New keys for time motion.
* org-table.el (org-table-align): Change the order of reinsertion

View File

@ -2438,7 +2438,8 @@ bind it in the options section.")
((equal org-agenda-window-setup 'other-window)
(org-switch-to-buffer-other-window abuf))
((equal org-agenda-window-setup 'other-frame)
(switch-to-buffer-other-frame abuf))
(switch-to-buffer-other-frame abuf)
(set-window-dedicated-p (selected-window) t))
((equal org-agenda-window-setup 'reorganize-frame)
(delete-other-windows)
(org-switch-to-buffer-other-window abuf))))