X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=pces-xfc.el;h=120099364180cff5ce469c707381b4a07e9d5158;hb=6a035e2edc196d6f1f0482c4fec18332388313bf;hp=d6d03e4622a56d37d717d9d7b8ff0099a58e36b7;hpb=2d874aff2fc69c9c90e1250c905acd4c6edd2dd0;p=elisp%2Fapel.git diff --git a/pces-xfc.el b/pces-xfc.el index d6d03e4..1200993 100644 --- a/pces-xfc.el +++ b/pces-xfc.el @@ -24,16 +24,6 @@ ;;; Code: -(require 'pces-20) - -(if (featurep 'mule) - (require 'pces-xm) - ) - - -;;; @ fix coding-system definition -;;; - ;; Redefine if -{dos|mac|unix} is not found. (or (find-coding-system 'raw-text-dos) (copy-coding-system 'no-conversion-dos 'raw-text-dos)) @@ -42,40 +32,17 @@ (or (find-coding-system 'raw-text-unix) (copy-coding-system 'no-conversion-unix 'raw-text-unix)) +(if (featurep 'mule) + (require 'pces-xm) + ) -;;; @ without code-conversion -;;; - -(defun insert-file-contents-as-binary (filename - &optional visit beg end replace) - "Like `insert-file-contents', but only reads in the file literally. -A buffer may be modified in several ways after reading into the buffer, -to Emacs features such as format decoding, character code -conversion, find-file-hooks, automatic uncompression, etc. - -This function ensures that none of these modifications will take place." - (let ((format-alist nil) - (after-insert-file-functions nil) - (coding-system-for-read 'binary) - (coding-system-for-write 'binary) - (jka-compr-compression-info-list nil) - (jam-zcat-filename-list nil) - (find-buffer-file-type-function - (if (fboundp 'find-buffer-file-type) - (symbol-function 'find-buffer-file-type) - nil))) - (unwind-protect - (progn - (fset 'find-buffer-file-type (lambda (filename) t)) - (insert-file-contents filename visit beg end replace)) - (if find-buffer-file-type-function - (fset 'find-buffer-file-type find-buffer-file-type-function) - (fmakunbound 'find-buffer-file-type))))) +(require 'pces-20) ;;; @ end ;;; -(provide 'pces-xfc) +(require 'product) +(product-provide (provide 'pces-xfc) (require 'apel-ver)) ;;; pces-xfc.el ends here