Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
94d1817d
Commit
94d1817d
authored
Sep 10, 1998
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mark-sexp-diary-entries): Avoid infinite loop when
sexp entry ends at end of file with no newline.
parent
e63d9e31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/calendar/diary-lib.el
lisp/calendar/diary-lib.el
+2
-1
No files found.
lisp/calendar/diary-lib.el
View file @
94d1817d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment