1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

(set-default-process-coding-system): Use function on

before-init-hook to set default-process-coding-system based on
enable-multibyte-characters.
This commit is contained in:
Geoff Voelker 1998-11-10 21:06:50 +00:00
parent ccc2d29c56
commit 5dbd225734

View File

@ -247,10 +247,14 @@ filesystem mounted on drive Z:, FILESYSTEM could be \"Z:\"."
(delete (untranslated-canonical-name filesystem)
untranslated-filesystem-list)))
(setq-default default-process-coding-system
(if (fboundp 'start-process)
'(raw-text-dos . raw-text-dos)
'(undecided-dos . undecided-dos)))
;;; Override setting chosen at startup.
(defun set-default-process-coding-system ()
(setq default-process-coding-system
(if default-enable-multibyte-characters
'(undecided-dos . undecided-dos)
'(raw-text-dos . raw-text-dos))))
(add-hook 'before-init-hook 'set-default-process-coding-system)
;; Support for printing under DOS/Windows, see lpr.el and ps-print.el.
(defvar printer-name)