comparison lisp/arc-mode.el @ 90573:858cb33ae39d

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 357-381) - Merge from gnus--rel--5.10 - Update from CVS - Merge from erc--emacs--21 * gnus--rel--5.10 (patch 116-122) - Update from CVS - Merge from emacs--devo--0 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-98
author Miles Bader <miles@gnu.org>
date Thu, 03 Aug 2006 11:45:23 +0000
parents a8190f7e546e bf3518b64c99
children f1d13e615070
comparison
equal deleted inserted replaced
90572:ab9b8d043c39 90573:858cb33ae39d
890 (or coding-system-for-read 890 (or coding-system-for-read
891 (and set-auto-coding-function 891 (and set-auto-coding-function
892 (save-excursion 892 (save-excursion
893 (funcall set-auto-coding-function 893 (funcall set-auto-coding-function
894 filename (- (point-max) (point-min))))) 894 filename (- (point-max) (point-min)))))
895 ;; dos-w32.el defines find-operation-coding-system for 895 ;; dos-w32.el defines the function
896 ;; DOS/Windows systems which preserves the coding-system 896 ;; find-buffer-file-type-coding-system for DOS/Windows
897 ;; of existing files. We want it to act here as if the 897 ;; systems which preserves the coding-system of existing files.
898 ;; extracted file existed. 898 ;; (That function is called via file-coding-system-alist.)
899 ;; Here, we want it to act as if the extracted file existed.
900 ;; The following let-binding of file-name-handler-alist forces
901 ;; find-file-not-found-set-buffer-file-coding-system to ignore
902 ;; the file's name (see dos-w32.el).
899 (let ((file-name-handler-alist 903 (let ((file-name-handler-alist
900 '(("" . archive-file-name-handler)))) 904 '(("" . archive-file-name-handler))))
901 (car (find-operation-coding-system 905 (car (find-operation-coding-system
902 'insert-file-contents 906 'insert-file-contents
903 (cons filename (current-buffer)) t)))))) 907 (cons filename (current-buffer)) t))))))