comparison lisp/w32-fns.el @ 15592:0ebdc7e05bfd

(using-unix-filesystems): Doc fix.
author Miles Bader <miles@gnu.org>
date Wed, 03 Jul 1996 02:05:46 +0000
parents a8bd6f986389
children ac60bc3e89cd
comparison
equal deleted inserted replaced
15591:deab323dd651 15592:0ebdc7e05bfd
148 (setq buffer-file-type (find-buffer-file-type (buffer-file-name)))) 148 (setq buffer-file-type (find-buffer-file-type (buffer-file-name))))
149 nil) 149 nil)
150 150
151 ;; Really should provide this capability at the drive letter granularity. 151 ;; Really should provide this capability at the drive letter granularity.
152 (defun using-unix-filesystems (flag) 152 (defun using-unix-filesystems (flag)
153 "Read and write all files assuming that they are on a drive attached 153 "Read and write files without CR/LF translation, if FLAG is non-nil.
154 to a remote Unix file system. No CR/LF translation is done on any files 154 This is in effect assuming the files are on a remote Unix file system.
155 in this case. This behavior is activated when FLAG is t and deactived 155 If FLAG is nil, resume using CR/LF translation as usual."
156 when FLAG is any other value."
157 (if flag 156 (if flag
158 (progn 157 (progn
159 (add-hook 'write-file-hooks 'save-to-unix-hook) 158 (add-hook 'write-file-hooks 'save-to-unix-hook)
160 (add-hook 'after-save-hook 'revert-from-unix-hook)) 159 (add-hook 'after-save-hook 'revert-from-unix-hook))
161 (progn 160 (progn
162 (remove-hook 'write-file-hooks 'save-to-unix-hook) 161 (remove-hook 'write-file-hooks 'save-to-unix-hook)
163 (remove-hook 'after-save-hook 'revert-from-unix-hook)))) 162 (remove-hook 'after-save-hook 'revert-from-unix-hook))))
164 163
165 ;;; Avoid creating auto-save file names containing illegal characters 164 ;;; Avoid creating auto-save file names containing invalid characters
166 ;;; (primarily "*", eg. for the *mail* buffer). 165 ;;; (primarily "*", eg. for the *mail* buffer).
167 (fset 'original-make-auto-save-file-name 166 (fset 'original-make-auto-save-file-name
168 (symbol-function 'make-auto-save-file-name)) 167 (symbol-function 'make-auto-save-file-name))
169 168
170 (defun make-auto-save-file-name () 169 (defun make-auto-save-file-name ()