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
de62d9e9
Commit
de62d9e9
authored
Apr 09, 2009
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mail/rmailout.el (rmail-output): If file is visited,
check the buffer's format.
parent
f824857f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/mail/rmailout.el
lisp/mail/rmailout.el
+14
-1
No files found.
lisp/ChangeLog
View file @
de62d9e9
2009-04-09 Richard M Stallman <rms@gnu.org>
2009-04-09 Richard M Stallman <rms@gnu.org>
* mail/rmailout.el (rmail-output): If file is visited,
check the buffer's format.
* mail/rmailout.el (rmail-convert-to-babyl-format): Don't set "unseen".
* mail/rmailout.el (rmail-convert-to-babyl-format): Don't set "unseen".
* mail/rmailout.el (rmail-output-to-rmail-buffer):
* mail/rmailout.el (rmail-output-to-rmail-buffer):
...
...
lisp/mail/rmailout.el
View file @
de62d9e9
...
@@ -434,7 +434,20 @@ from a non-Rmail buffer. In this case, COUNT is ignored."
...
@@ -434,7 +434,20 @@ from a non-Rmail buffer. In this case, COUNT is ignored."
(
if
noattribute
(
setq
noattribute
'nomsg
))
(
if
noattribute
(
setq
noattribute
'nomsg
))
(
let
((
babyl-format
(
and
(
file-readable-p
file-name
)
(
let
((
babyl-format
(
and
(
file-readable-p
file-name
)
(
mail-file-babyl-p
file-name
)))
(
mail-file-babyl-p
file-name
)))
(
cur
(
current-buffer
)))
(
cur
(
current-buffer
))
(
buf
(
find-buffer-visiting
file-name
)))
;; If a babyl file is visited in a buffer, is it visited as babyl
;; or as mbox?
(
and
babyl-format
buf
(
with-current-buffer
buf
(
save-restriction
(
widen
)
(
save-excursion
(
goto-char
(
point-min
))
(
setq
babyl-format
(
looking-at
"BABYL OPTIONS:"
))))))
(
if
not-rmail
; eg via message-fcc-handler-function
(
if
not-rmail
; eg via message-fcc-handler-function
(
with-temp-buffer
(
with-temp-buffer
(
insert-buffer-substring
cur
)
(
insert-buffer-substring
cur
)
...
...
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