Browse Source

Bugfix about using a separate frame for the Calendar.

When the Calendar is displayed in a separate frame, Org was
confused and could not find it; this tiny change fixes this.
Bastien Guerry 16 years ago
parent
commit
3c031462f5
2 changed files with 6 additions and 1 deletions
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-07-21  Bastien Guerry  <bzg@altern.org>
+
+	* org.el (org-eval-in-calendar): Fix a bug about calendar
+	navigation when `calendar-setup' value is 'calendar-only.
+
 2009-07-19  Bastien Guerry  <bzg@altern.org>
 2009-07-19  Bastien Guerry  <bzg@altern.org>
 
 
 	* org.el (orgstruct++-mode): Fix typo in docstring.
 	* org.el (orgstruct++-mode): Fix typo in docstring.

+ 1 - 1
lisp/org.el

@@ -12409,7 +12409,7 @@ DEF-FLAG   is t when a double ++ or -- indicates shift relative to
   "Eval FORM in the calendar window and return to current window.
   "Eval FORM in the calendar window and return to current window.
 Also, store the cursor date in variable org-ans2."
 Also, store the cursor date in variable org-ans2."
   (let ((sw (selected-window)))
   (let ((sw (selected-window)))
-    (select-window (get-buffer-window "*Calendar*"))
+    (select-window (get-buffer-window "*Calendar*" t))
     (eval form)
     (eval form)
     (when (and (not keepdate) (calendar-cursor-to-date))
     (when (and (not keepdate) (calendar-cursor-to-date))
       (let* ((date (calendar-cursor-to-date))
       (let* ((date (calendar-cursor-to-date))