diff options
author | Stephen Berman <stephen.berman@gmx.net> | 2010-12-08 17:50:08 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2010-12-08 17:50:08 -0800 |
commit | 81ced43d179308153dfba3eece877e84c4091dea (patch) | |
tree | 1be28de271959748e70cbc92999429a9f9508a4a /lisp/calendar | |
parent | b2364eaaa8387b54f0c43beda3d0ea23b8fa3b89 (diff) | |
download | emacs-81ced43d179308153dfba3eece877e84c4091dea.tar.gz |
diary-lib fix for bug#7536.
* lisp/calendar/diary-lib.el (diary-list-sexp-entries):
Handle case of no newline at end of file.
Diffstat (limited to 'lisp/calendar')
-rw-r--r-- | 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 219e489a2eb..899c142b75b 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -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 |