From 66a85723ce781db401719bdf1b23378bd1736583 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 16 Nov 2005 16:04:29 +0000 Subject: [PATCH] (diary-list-entries): Also hide the terminating newline. --- lisp/ChangeLog | 9 +++++++-- lisp/calendar/diary-lib.el | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 80ade05df29..4d07c3fbf73 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,12 @@ +2005-11-16 Stefan Monnier + + * calendar/diary-lib.el (diary-list-entries): Also hide the + terminating newline. + 2005-11-16 Carsten Dominik - * textmodes/reftex.el (reftex-use-fonts): removed the check for - window-system, to allow fonts on tty. + * textmodes/reftex.el (reftex-use-fonts): Remove the check for + window-system, to allow fonts on tty. 2005-11-17 Nick Roberts diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 98c8b6a5dd5..18d984d9ae9 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -452,7 +452,8 @@ If LIST-ONLY is non-nil don't modify or display the buffer, only return a list." 2)) (while (looking-at " \\|\^I") (re-search-forward "\^M\\|\n" nil 'move)) - (unless (eobp) (backward-char 1)) + (unless (and (eobp) (not (bolp))) + (backward-char 1)) (unless list-only (remove-overlays date-start (point) 'invisible 'diary)) -- 2.39.2