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
b8f2671f
Commit
b8f2671f
authored
Nov 14, 2002
by
Juanma Barranquero
Browse files
calendar/diary-lib.el (make-diary-entry): Allow for local variables at end of
diary file.
parent
a8c4aa2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/calendar/diary-lib.el
lisp/calendar/diary-lib.el
+8
-0
No files found.
lisp/calendar/diary-lib.el
View file @
b8f2671f
...
...
@@ -1457,7 +1457,15 @@ Do nothing if DATE or STRING is nil."
If omitted, NONMARKING defaults to nil and FILE defaults to diary-file."
(
find-file-other-window
(
substitute-in-file-name
(
if
file
file
diary-file
)))
(
widen
)
(
goto-char
(
point-max
))
(
when
(
let
((
case-fold-search
t
))
(
search-backward
"Local Variables:"
(
max
(
-
(
point-max
)
3000
)
(
point-min
))
t
))
(
beginning-of-line
)
(
insert
"\n"
)
(
previous-line
1
))
(
insert
(
if
(
bolp
)
""
"\n"
)
(
if
nonmarking
diary-nonmarking-symbol
""
)
...
...
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