[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window
From: |
Glenn Morris |
Subject: |
bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window |
Date: |
Tue, 09 Sep 2014 14:13:02 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
I went with the following.
(I suspect it's going to be like when you press on a bubble in some
wallpaper, and another one pops up somewhere else...)
@@ -901,12 +900,20 @@
;;; (diary-include-other-diary-files) ; recurse
;;; (run-hooks 'diary-list-entries-hook))
(unless list-only
- (if (and diary-display-function
- (listp diary-display-function))
- ;; Backwards compatibility.
- (run-hooks 'diary-display-function)
- (funcall (or diary-display-function
- 'diary-simple-display))))
+ ;; Avoid M-x diary; M-x calendar; M-x diary
+ ;; clobbering the calendar window.
+ ;; FIXME this is not the right solution.
+ (let ((display-buffer-fallback-action
+ (list (delq
+ 'display-buffer-in-previous-window
+ (copy-sequence
+ (car display-buffer-fallback-action))))))
+ (if (and diary-display-function
+ (listp diary-display-function))
+ ;; Backwards compatibility.
+ (run-hooks 'diary-display-function)
+ (funcall (or diary-display-function
+ 'diary-simple-display)))))
(run-hooks 'diary-hook)))))
(and temp-buff (buffer-name temp-buff) (kill-buffer temp-buff)))
(or d-incp (message "Preparing diary...done"))
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, (continued)
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Glenn Morris, 2014/09/04
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, martin rudalics, 2014/09/05
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Glenn Morris, 2014/09/05
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, martin rudalics, 2014/09/06
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Glenn Morris, 2014/09/08
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Stephen Berman, 2014/09/08
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Glenn Morris, 2014/09/08
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, martin rudalics, 2014/09/09
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Glenn Morris, 2014/09/09
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, martin rudalics, 2014/09/09
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window,
Glenn Morris <=
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, Stefan Monnier, 2014/09/09
- bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window, martin rudalics, 2014/09/05