Browse Source

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.
Carsten Dominik 16 years ago
parent
commit
bbc27c011a
2 changed files with 5 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-agenda.el

+ 3 - 0
lisp/ChangeLog

@@ -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

+ 2 - 1
lisp/org-agenda.el

@@ -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))))