diff lisp/prim/files.el @ 110:fe104dbd9147 r20-1b7

Import from CVS: tag r20-1b7
author cvs
date Mon, 13 Aug 2007 09:19:45 +0200
parents 360340f9fd5f
children 9f59509498e1
line wrap: on
line diff
--- a/lisp/prim/files.el	Mon Aug 13 09:18:41 2007 +0200
+++ b/lisp/prim/files.el	Mon Aug 13 09:19:45 2007 +0200
@@ -32,8 +32,8 @@
 ;;; Code:
 
 ;; XEmacs: Avoid compilation warnings.
-(defvar overriding-file-coding-system)
-(defvar file-coding-system)
+(defvar coding-system-for-read)
+(defvar buffer-file-coding-system)
 
 ;; XEmacs: In buffer.c
 ;(defconst delete-auto-save-files t
@@ -590,7 +590,7 @@
 with a prefix argument, you will be prompted for the coding system."
   (interactive "FFind file: \nZCoding system: ")
   (if codesys
-      (let ((overriding-file-coding-system
+      (let ((coding-system-for-read
 	     (get-coding-system codesys)))
 	(switch-to-buffer (find-file-noselect filename)))
     (switch-to-buffer (find-file-noselect filename))))
@@ -1689,7 +1689,7 @@
   (set-buffer-modified-p t)
   (setq buffer-read-only nil)
   (if codesys
-      (let ((file-coding-system (get-coding-system codesys)))
+      (let ((buffer-file-coding-system (get-coding-system codesys)))
 	(save-buffer))
     (save-buffer)))
 
@@ -2321,7 +2321,7 @@
 with a prefix argument, you will be prompted for the coding system."
   (interactive "r\nFAppend to file: \nZCoding system: ")
   (if codesys
-      (let ((file-coding-system (get-coding-system codesys)))
+      (let ((buffer-file-coding-system (get-coding-system codesys)))
 	(write-region start end filename t))
     (write-region start end filename t)))