From 1b678c6c0601f500321cfb037467f6d393f0e7eb Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 12 Sep 2010 10:36:11 +0100 Subject: [PATCH 1/2] Respect the doc string and return sorted diary entries --- lisp/calendar/diary-lib.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 39354bd..3c748ac 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -187,7 +187,6 @@ you will probably also want to add `diary-mark-included-diary-files' to (setq diary-display-function 'diary-fancy-display) (add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) - (add-hook 'diary-list-entries-hook 'diary-sort-entries) in your `.emacs' file to cause the fancy diary buffer to be displayed with diary entries from various included files, each day's entries sorted into @@ -789,6 +788,7 @@ LIST-ONLY is non-nil, in which case it just returns the list." (goto-char (point-min)) (run-hooks 'diary-nongregorian-listing-hook 'diary-list-entries-hook) + (diary-sort-entries) (unless list-only (if (and diary-display-function (listp diary-display-function)) -- 1.7.2