mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +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:
parent
ccc2d29c56
commit
5dbd225734
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user