Переглянути джерело

Fix Emacs 22 bug in `org-agenda-quit'

Carsten Dominik 15 роки тому
батько
коміт
c7c2ec4bc7
2 змінених файлів з 4 додано та 1 видалено
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-09-03  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-agenda.el (org-agenda-quit): Provide the window argument for
+	`window-dedicated-p', Emacs 22 needs it.
+
 	* org-exp.el (org-export-cleanup-toc-line): Remove footnote
 	references from TOC lines.
 

+ 1 - 1
lisp/org-agenda.el

@@ -4802,7 +4802,7 @@ If ERROR is non-nil, throw an error, otherwise just return nil."
   (interactive)
   (if org-agenda-columns-active
       (org-columns-quit)
-    (if (window-dedicated-p) (delete-other-windows))
+    (if (window-dedicated-p (selected-window)) (delete-other-windows))
     (let ((buf (current-buffer)))
       (and (not (eq org-agenda-window-setup 'current-window))
            (not (one-window-p))