diary-lib fix for bug#7536.

* lisp/calendar/diary-lib.el (diary-list-sexp-entries):
Handle case of no newline at end of file.
This commit is contained in:
Stephen Berman 2010-12-08 17:50:08 -08:00 committed by Glenn Morris
parent b2364eaaa8
commit 81ced43d17
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-12-09 Stephen Berman <stephen.berman@gmx.net>
* calendar/diary-lib.el (diary-list-sexp-entries):
Handle case of no newline at end of file. (Bug#7536)
2010-12-09 Glenn Morris <rgm@gnu.org>
* mail/smtpmail.el (smtpmail-send-it): Revert previous change.

View file

@ -1744,7 +1744,7 @@ best if they are non-marking."
(forward-line 1)
(while (looking-at "[ \t]")
(forward-line 1))
(backward-char 1)
(if (bolp) (backward-char 1))
(setq entry (buffer-substring-no-properties entry-start (point))))
(setq diary-entry (diary-sexp-entry sexp entry date)
literal entry ; before evaluation