mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 22:50:29 -08:00
(mark-sexp-diary-entries): Avoid infinite loop when
sexp entry ends at end of file with no newline.
This commit is contained in:
parent
e63d9e3174
commit
94d1817dff
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue