Subject: bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window

From: martin rudalics <[email-masked]>
Date: Fri, 05 Sep 2014 12:46:41 +0200

>> Maybe "don't display the diary in the selected window" would suffice.
 >> Sounds like adding '(inhibit-same-window . t) to display-buffer's alist
 >> might do, but I cannot figure out how to do that.
 >
 > Following works, but having to use `ignore' seems odd?

 > !           (let ((display-buffer-overriding-action
 > !                  '(ignore . ((inhibit-same-window . t)))))
 > !             (diary-view-entries)))))

Stephen's original proposal would be cleaner provided we are sure that
the calendar window is always selected when `display-buffer' is called.
Is `calendar-in-read-only-buffer' presumably only executed in a state
where the calendar window is shown and selected?

martin