diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/calendar/diary-lib.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 615040deba4..65f34c64474 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -842,7 +842,8 @@ is marked. See the documentation for the function `list-sexp-diary-entries'." (setq entry-start (point)) (re-search-forward "\^M\\|\n" nil t) (while (looking-at " \\|\^I") - (re-search-forward "\^M\\|\n" nil t)) + (or (re-search-forward "\^M\\|\n" nil t) + (re-search-forward "$" nil t))) (backward-char 1) (setq entry (buffer-substring-no-properties entry-start (point))) (while (string-match "[\^M]" entry) |