diff options
| author | Glenn Morris | 2014-09-09 14:09:54 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-09-09 14:09:54 -0400 |
| commit | d7a3bb022cdd7d63b6af679a08d4570304d8f28e (patch) | |
| tree | 68378eab829f02b334e2a67429a7a0cf27b4218a | |
| parent | b0fb34364bede539a904fb89c8adc8830ee8c652 (diff) | |
| download | emacs-d7a3bb022cdd7d63b6af679a08d4570304d8f28e.tar.gz emacs-d7a3bb022cdd7d63b6af679a08d4570304d8f28e.zip | |
* calendar/diary-lib.el (diary-list-entries): Restore 24.3 display behavior.
Fixes: debbugs:18381
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 23 |
2 files changed, 20 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f31741a1c5..7018d3c8abb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-09-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/diary-lib.el (diary-list-entries): | ||
| 4 | Restore 24.3 display behavior. (Bug#18381) | ||
| 5 | |||
| 1 | 2014-09-09 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-09-09 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * mouse.el (mouse-drag-line): On text-mode frames, count the mode | 8 | * mouse.el (mouse-drag-line): On text-mode frames, count the mode |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index c609cee7d6f..7b07f4f6814 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | ;;; diary-lib.el --- diary functions | 1 | ;;; diary-lib.el --- diary functions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989-1990, 1992-1995, 2001-2014 Free Software | 3 | ;; Copyright (C) 1989-1990, 1992-1995, 2001-2014 Free Software Foundation, Inc. |
| 4 | ;; Foundation, Inc. | ||
| 5 | 4 | ||
| 6 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> | 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> |
| 7 | ;; Maintainer: Glenn Morris <rgm@gnu.org> | 6 | ;; Maintainer: Glenn Morris <rgm@gnu.org> |
| @@ -901,12 +900,20 @@ LIST-ONLY is non-nil, in which case it just returns the list." | |||
| 901 | ;;; (diary-include-other-diary-files) ; recurse | 900 | ;;; (diary-include-other-diary-files) ; recurse |
| 902 | ;;; (run-hooks 'diary-list-entries-hook)) | 901 | ;;; (run-hooks 'diary-list-entries-hook)) |
| 903 | (unless list-only | 902 | (unless list-only |
| 904 | (if (and diary-display-function | 903 | ;; Avoid M-x diary; M-x calendar; M-x diary |
| 905 | (listp diary-display-function)) | 904 | ;; clobbering the calendar window. |
| 906 | ;; Backwards compatibility. | 905 | ;; FIXME this is not the right solution. |
| 907 | (run-hooks 'diary-display-function) | 906 | (let ((display-buffer-fallback-action |
| 908 | (funcall (or diary-display-function | 907 | (list (delq |
| 909 | 'diary-simple-display)))) | 908 | 'display-buffer-in-previous-window |
| 909 | (copy-sequence | ||
| 910 | (car display-buffer-fallback-action)))))) | ||
| 911 | (if (and diary-display-function | ||
| 912 | (listp diary-display-function)) | ||
| 913 | ;; Backwards compatibility. | ||
| 914 | (run-hooks 'diary-display-function) | ||
| 915 | (funcall (or diary-display-function | ||
| 916 | 'diary-simple-display))))) | ||
| 910 | (run-hooks 'diary-hook))))) | 917 | (run-hooks 'diary-hook))))) |
| 911 | (and temp-buff (buffer-name temp-buff) (kill-buffer temp-buff))) | 918 | (and temp-buff (buffer-name temp-buff) (kill-buffer temp-buff))) |
| 912 | (or d-incp (message "Preparing diary...done")) | 919 | (or d-incp (message "Preparing diary...done")) |