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
7997a2f1
Commit
7997a2f1
authored
Aug 12, 2013
by
Grégoire Jadi
Committed by
Lars Magne Ingebrigtsen
Aug 12, 2013
Browse files
* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error
This makes debugging easier.
parent
7699d09e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/mail/sendmail.el
lisp/mail/sendmail.el
+12
-5
No files found.
lisp/ChangeLog
View file @
7997a2f1
2013-08-12 Grégoire Jadi <daimrod@gmail.com>
* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer
if sending fails. This makes debugging easier.
2013-08-12 Juanma Barranquero <lekktu@gmail.com>
* xml.el (xml-parse-tag-1): Use looking-at (this reverts change in
...
...
lisp/mail/sendmail.el
View file @
7997a2f1
...
...
@@ -1114,6 +1114,7 @@ external program defined by `sendmail-program'."
(
let
((
errbuf
(
if
mail-interactive
(
generate-new-buffer
" sendmail errors"
)
0
))
(
error
nil
)
(
tembuf
(
generate-new-buffer
" sendmail temp"
))
(
multibyte
enable-multibyte-characters
)
(
case-fold-search
nil
)
...
...
@@ -1278,10 +1279,13 @@ external program defined by `sendmail-program'."
(
exit-value
(
apply
'call-process-region
args
)))
(
cond
((
or
(
null
exit-value
)
(
eq
0
exit-value
)))
((
numberp
exit-value
)
(
setq
error
t
)
(
error
"Sending...failed with exit value %d"
exit-value
))
((
stringp
exit-value
)
(
setq
error
t
)
(
error
"Sending...terminated by signal: %s"
exit-value
))
(
t
(
setq
error
t
)
(
error
"SENDMAIL-SEND-IT -- fall through: %S"
exit-value
))))
(
or
fcc-was-found
(
error
"No recipients"
)))
...
...
@@ -1290,12 +1294,15 @@ external program defined by `sendmail-program'."
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"\n\n* *"
nil
t
)
(
replace-match
"; "
))
(
if
(
not
(
zerop
(
buffer-size
)))
(
error
"Sending...failed to %s"
(
buffer-substring
(
point-min
)
(
point-max
)))))))
(
unless
(
zerop
(
buffer-size
))
(
setq
error
t
)
(
error
"Sending...failed to %s"
(
buffer-substring
(
point-min
)
(
point-max
)))))))
(
kill-buffer
tembuf
)
(
if
(
bufferp
errbuf
)
(
kill-buffer
errbuf
)))))
(
if
(
and
(
bufferp
errbuf
)
(
not
error
))
(
kill-buffer
errbuf
)
(
switch-to-buffer-other-window
errbuf
)))))
(
autoload
'rmail-output-to-rmail-buffer
"rmailout"
)
...
...
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