mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Tweak previous mailcap patch (for external viewers)
* lisp/net/mailcap.el (mailcap-view-mime): Delete contents of the buffer in the external case, too.
This commit is contained in:
parent
dbd8994e0d
commit
bde93182bf
1 changed files with 1 additions and 0 deletions
|
|
@ -1138,6 +1138,7 @@ For instance, \"foo.png\" will result in \"image/png\"."
|
|||
(unwind-protect
|
||||
(let ((coding-system-for-write 'binary))
|
||||
(write-region (point-min) (point-max) file nil 'silent)
|
||||
(delete-region (point-min) (point-max))
|
||||
(shell-command (format method file)))
|
||||
(when (file-exists-p file)
|
||||
(delete-file file))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue