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.
This commit is contained in:
Bastien Guerry 2009-07-21 09:29:55 +02:00
parent 7896ef6292
commit 3c031462f5
2 changed files with 6 additions and 1 deletions

View File

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

View File

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