Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7d3ff869
Commit
7d3ff869
authored
Mar 01, 2000
by
Gerd Moellmann
Browse files
(list-diary-entries): Don't try to go forward at
the end of the buffer.
parent
6b622862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/calendar/diary-lib.el
lisp/calendar/diary-lib.el
+3
-1
No files found.
lisp/calendar/diary-lib.el
View file @
7d3ff869
...
...
@@ -255,10 +255,12 @@ These hooks have the following distinct roles:
(
let
((
buffer-read-only
nil
)
(
diary-modified
(
buffer-modified-p
))
(
mark
(
regexp-quote
diary-nonmarking-symbol
)))
;; First and last characters must be ^M or \n for
;; selective display to work properly
(
goto-char
(
1-
(
point-max
)))
(
if
(
not
(
looking-at
"\^M\\|\n"
))
(
progn
(
forward-char
1
)
(
goto-char
(
point-max
)
)
(
insert-string
"\^M"
)))
(
goto-char
(
point-min
))
(
if
(
not
(
looking-at
"\^M\\|\n"
))
...
...
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