summaryrefslogtreecommitdiff
path: root/lisp/desktop.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-07-31 14:04:50 +0000
committerGerd Moellmann <gerd@gnu.org>2001-07-31 14:04:50 +0000
commit7642acca1e2fdbca53a065065d9d28c7c8de40d0 (patch)
tree2ddcecdf0000633cb4adfe805a797fbb391d793f /lisp/desktop.el
parent10e922bdd215aeb206ddbba8d9a625640baaedb0 (diff)
downloademacs-7642acca1e2fdbca53a065065d9d28c7c8de40d0.tar.gz
(desktop-save): Bind coding-system-for-write to
`emacs-mule' for write-region.
Diffstat (limited to 'lisp/desktop.el')
-rw-r--r--lisp/desktop.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 54a598d51c0..3286b195fac 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -549,7 +549,8 @@ MODE is the major mode."
info)
(setq default-directory dirname)
(if (file-exists-p filename) (delete-file filename))
- (write-region (point-min) (point-max) filename nil 'nomessage)))
+ (let ((coding-system-for-write 'emacs-mule))
+ (write-region (point-min) (point-max) filename nil 'nomessage))))
(setq desktop-dirname dirname))
;; ----------------------------------------------------------------------------
(defun desktop-remove ()