Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5bd65b3b
Commit
5bd65b3b
authored
Jun 16, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rmail-output): Use insert-file-contents to look at
beginning of output file.
parent
76d8cb22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
lisp/mail/rmailout.el
lisp/mail/rmailout.el
+8
-10
No files found.
lisp/mail/rmailout.el
View file @
5bd65b3b
...
...
@@ -162,16 +162,14 @@ When called from lisp code, N may be omitted."
;; If we can do it, read a little of the file
;; to check whether it is an RMAIL file.
;; If it is, don't mess it up.
(
if
(
fboundp
'insert-partial-file-contents
)
(
progn
(
insert-partial-file-contents
file-name
0
20
)
(
if
(
looking-at
"BABYL OPTIONS:\n"
)
(
error
(
save-excursion
(
set-buffer
rmailbuf
)
(
substitute-command-keys
"File %s is an RMAIL file; use the \\[rmail-output-to-rmail-file] command"
))
file-name
))
(
erase-buffer
)))
(
insert-file-contents
file-name
nil
0
20
)
(
if
(
looking-at
"BABYL OPTIONS:\n"
)
(
error
(
save-excursion
(
set-buffer
rmailbuf
)
(
substitute-command-keys
"Use \\[rmail-output-to-rmail-file] to output to Rmail file `%s'"
))
(
file-name-nondirectory
file-name
)))
(
erase-buffer
)
(
insert-buffer-substring
rmailbuf
)
(
insert
"\n"
)
(
goto-char
(
point-min
))
...
...
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