[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/international/mule-cmds.el
From: |
Jason Rumney |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/international/mule-cmds.el |
Date: |
Sun, 07 Apr 2002 14:50:21 -0400 |
Index: emacs/lisp/international/mule-cmds.el
diff -c emacs/lisp/international/mule-cmds.el:1.186
emacs/lisp/international/mule-cmds.el:1.187
*** emacs/lisp/international/mule-cmds.el:1.186 Mon Apr 1 16:13:52 2002
--- emacs/lisp/international/mule-cmds.el Sun Apr 7 14:50:20 2002
***************
*** 211,222 ****
but end-of-line as the same way as CODING-SYSTEM.
If CODING is nil, the returned coding system detects
how text is formatted automatically while decoding."
! (if (not coding)
! (coding-system-base coding-system)
! (let ((eol-type (coding-system-eol-type coding-system)))
! (coding-system-change-eol-conversion
! coding
! (if (numberp eol-type) (aref [unix dos mac] eol-type))))))
(defun toggle-enable-multibyte-characters (&optional arg)
"Change whether this buffer uses multibyte characters.
--- 211,220 ----
but end-of-line as the same way as CODING-SYSTEM.
If CODING is nil, the returned coding system detects
how text is formatted automatically while decoding."
! (let ((eol-type (coding-system-eol-type coding-system)))
! (coding-system-change-eol-conversion
! (if coding coding 'undecided)
! (if (numberp eol-type) (aref [unix dos mac] eol-type)))))
(defun toggle-enable-multibyte-characters (&optional arg)
"Change whether this buffer uses multibyte characters.
***************
*** 311,317 ****
(unless (and (eq window-system 'pc) coding-system)
(setq default-terminal-coding-system coding-system))
(setq default-keyboard-coding-system coding-system)
! (setq default-process-coding-system (cons coding-system coding-system)))
(defalias 'update-iso-coding-systems 'update-coding-systems-internal)
(make-obsolete 'update-iso-coding-systems 'update-coding-systems-internal
"20.3")
--- 309,327 ----
(unless (and (eq window-system 'pc) coding-system)
(setq default-terminal-coding-system coding-system))
(setq default-keyboard-coding-system coding-system)
! ;; Preserve eol-type from existing default-process-coding-systems.
! ;; On non-unix-like systems in particular, these may have been set
! ;; carefully by the user, or by the startup code, to deal with the
! ;; users shell appropriately, so should not be altered by changing
! ;; language environment.
! (let ((output-coding
! (coding-system-change-text-conversion
! (car default-process-coding-system) coding-system))
! (input-coding
! (coding-system-change-text-conversion
! (cdr default-process-coding-system) coding-system)))
! (setq default-process-coding-system
! (cons output-coding input-coding))))
(defalias 'update-iso-coding-systems 'update-coding-systems-internal)
(make-obsolete 'update-iso-coding-systems 'update-coding-systems-internal
"20.3")
***************
*** 1399,1405 ****
(set-default-coding-systems nil)
(setq default-sendmail-coding-system 'iso-latin-1)
! (setq default-process-coding-system '(undecided . iso-latin-1))
;; Don't alter the terminal and keyboard coding systems here.
;; The terminal still supports the same coding system
--- 1409,1427 ----
(set-default-coding-systems nil)
(setq default-sendmail-coding-system 'iso-latin-1)
! ;; Preserve eol-type from existing default-process-coding-systems.
! ;; On non-unix-like systems in particular, these may have been set
! ;; carefully by the user, or by the startup code, to deal with the
! ;; users shell appropriately, so should not be altered by changing
! ;; language environment.
! (let ((output-coding
! (coding-system-change-text-conversion
! (car default-process-coding-system) 'undecided))
! (input-coding
! (coding-system-change-text-conversion
! (cdr default-process-coding-system) 'iso-latin-1)))
! (setq default-process-coding-system
! (cons output-coding input-coding)))
;; Don't alter the terminal and keyboard coding systems here.
;; The terminal still supports the same coding system