aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/international/mule-cmds.el20
2 files changed, 25 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 44aa9245765..27ec14a138b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-01-24 Eli Zaretskii <eliz@gnu.org>
2
3 * international/mule-cmds.el (set-language-environment-coding-systems): If
4 default-buffer-file-coding-system is nil, set up to have EOLs that
5 are native for the underlying system-type.
6
12009-01-24 Juanma Barranquero <lekktu@gmail.com> 72009-01-24 Juanma Barranquero <lekktu@gmail.com>
2 8
3 * emacs-lisp/eldoc.el (eldoc-function-argstring-format): 9 * emacs-lisp/eldoc.el (eldoc-function-argstring-format):
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 465c3efecf5..4ec283386a9 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -1933,7 +1933,25 @@ See `set-language-info-alist' for use in programs."
1933 "Do various coding system setups for language environment LANGUAGE-NAME." 1933 "Do various coding system setups for language environment LANGUAGE-NAME."
1934 (let* ((priority (get-language-info language-name 'coding-priority)) 1934 (let* ((priority (get-language-info language-name 'coding-priority))
1935 (default-coding (car priority)) 1935 (default-coding (car priority))
1936 (eol-type (coding-system-eol-type default-buffer-file-coding-system))) 1936 ;; If default-buffer-file-coding-system is nil, don't use
1937 ;; coding-system-eol-type, because it treats nil as
1938 ;; `no-conversion'. default-buffer-file-coding-system is set
1939 ;; to nil by reset-language-environment, and in that case we
1940 ;; want to have here the native EOL type for each platform.
1941 ;; FIXME: there should be a common code that runs both on
1942 ;; startup and here to set the default EOL type correctly.
1943 ;; Right now, DOS/Windows platforms set this on dos-w32.el,
1944 ;; which works only as long as the order of loading files at
1945 ;; dump time and calling functions at startup is not modified
1946 ;; significantly, i.e. as long as this function is called
1947 ;; _after_ default-buffer-file-coding-system was set by
1948 ;; dos-w32.el.
1949 (eol-type
1950 (if (null default-buffer-file-coding-system)
1951 (cond ((memq system-type '(windows-nt ms-dos)) 1)
1952 ((eq system-type 'macos) 2)
1953 (t 0))
1954 (coding-system-eol-type default-buffer-file-coding-system))))
1937 (when priority 1955 (when priority
1938 (set-default-coding-systems 1956 (set-default-coding-systems
1939 (if (memq eol-type '(0 1 2 unix dos mac)) 1957 (if (memq eol-type '(0 1 2 unix dos mac))