Current File : //kunden/usr/share/emacs/27.2/lisp/dos-w32.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\304>\203 \305\306\nB\307\310\311\312\"\210\313\314\315\316\317\320\321\322\321\323& \210\324\314\325\326#\207" [system-type path-separator minibuffer-history-case-insensitive-variables null-device (ms-dos windows-nt) ";" file-name-history "NUL" set-default buffer-file-coding-system undecided-dos custom-declare-variable file-name-buffer-file-type-alist '(("[:/].*config.sys$") ("\\.\\(obj\\|exe\\|com\\|lib\\|sys\\|bin\\|ico\\|pif\\|class\\)$" . t) ("\\.\\(dll\\|drv\\|386\\|vxd\\|fon\\|fnt\\|fot\\|ttf\\|grp\\)$" . t) ("\\.\\(bmp\\|wav\\|avi\\|mpg\\|jpg\\|tif\\|mov\\|au\\)$" . t) ("\\.\\(arc\\|zip\\|pak\\|lzh\\|zoo\\)$" . t) ("\\.\\(a\\|o\\|tar\\|z\\|gz\\|taz\\|jar\\)$" . t) ("\\.sx[dmicw]$" . t) ("\\.tp[ulpw]$" . t) ("[:/]tags$")) "Alist used in the past for distinguishing text files from binary files.\nEach element has the form (REGEXP . TYPE), where REGEXP is matched\nagainst the file name, and TYPE is nil for text, t for binary.\n\nThis variable is deprecated, not used anywhere, and will soon be deleted." :type (repeat (cons regexp boolean)) :group dos-fns w32 make-obsolete-variable file-coding-system-alist "24.4"] 10)
#@1780 Choose a coding system for a file operation in COMMAND.
COMMAND is a list that specifies the operation, an I/O primitive, as its
CAR, and the arguments that might be given to that operation as its CDR.
If operation is `insert-file-contents', the coding system is chosen based
upon the filename (the CAR of the arguments beyond the operation), the contents
of `w32-untranslated-filesystem-list' and `file-name-buffer-file-type-alist',
and whether the file exists:
If it matches in `w32-untranslated-filesystem-list':
If the file exists: `undecided'
If the file does not exist: `undecided-unix'
Otherwise:
If the file exists: `undecided'
If the file does not exist default value of `buffer-file-coding-system'
Note that the CAR of arguments to `insert-file-contents' operation could
be a cons cell of the form (FILENAME . BUFFER), where BUFFER is a buffer
into which the file's contents were already read, but not yet decoded.
If operation is `write-region', the coding system is chosen based
upon the value of `buffer-file-coding-system'. If
`buffer-file-coding-system' is non-nil, its value is used.
Otherwise, it is `undecided-dos'.
The most common situation is when DOS and Unix files are read and
written, and their names do not match in `w32-untranslated-filesystem-list'.
In these cases, the coding system initially will be `undecided'.
As the file is read in the DOS case, the coding system will be
changed to `undecided-dos' as CR/LFs are detected. As the file
is read in the Unix case, the coding system will be changed to
`undecided-unix' as LFs are detected. In both cases,
`buffer-file-coding-system' will be set to the appropriate coding
system, and the value of `buffer-file-coding-system' will be used
when writing the file.
(defalias 'find-buffer-file-type-coding-system #[(command) "@\306\211\211\211\211\307\267\202v A@\211:\203) \310\nA!\205% \311\nA!\n@\312\n!\204? ;\203D \312\313 \314\n!\"!\203D \315\202L \316\n!\203L \315\203T \317\202w \f\203\\ \320\202w \321\322!\321\322!B\202w \203r \211B\202w \323\202w \306-\207" [command target-buf target undecided-unix undecided op nil #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (insert-file-contents 17 write-region 102)) bufferp buffer-name file-exists-p expand-file-name file-name-directory t w32-untranslated-file-p (undecided-unix . undecided-unix) (undecided . undecided) default-value buffer-file-coding-system (undecided-dos . undecided-dos)] 6 (#$ . 1565)])
(make-obsolete 'find-buffer-file-type-coding-system nil "24.4")
#@45 Visit file FILENAME and treat it as binary.
(defalias 'find-file-binary #[(filename) "\302\303 !)\207" [coding-system-for-read filename no-conversion find-file] 2 (#$ . 4167) "FFind file binary: "])
#@50 Visit file FILENAME and treat it as a text file.
(defalias 'find-file-text #[(filename) "\302\303 !)\207" [coding-system-for-read filename undecided-dos find-file] 2 (#$ . 4373) "FFind file text: "])
(defalias 'w32-find-file-not-found-set-buffer-file-coding-system #[nil "rpq\210\n\204 \204 \304\305 !\203 \306 \307\"\211*\310\207" [buffer-file-coding-system coding coding-system-for-read inhibit-eol-conversion w32-untranslated-file-p buffer-file-name coding-system-change-eol-conversion 0 nil] 4])
(byte-code "\302\303\304\"\210\305\306\307\310#\210\311\310\211\2031 @\306N\203* \307N\204* \312\307\306N#\210 A\211\204 *\313\306\307\314#\207" [prop --dolist-tail-- add-hook find-file-not-found-functions w32-find-file-not-found-set-buffer-file-coding-system defvaralias untranslated-filesystem-list w32-untranslated-filesystem-list nil (saved-value saved-variable-comment) put make-obsolete-variable "24.4"] 6)
#@189 List of filesystems that require no CR/LF translation when reading
and writing files. Each filesystem in the list is a string naming
the directory prefix corresponding to the filesystem.
(defvar w32-untranslated-filesystem-list nil (#$ . 5312))
#@107 Return FILENAME in a canonicalized form for use with the functions
dealing with untranslated filesystems.
(defalias 'w32-untranslated-canonical-name #[(filename) "\304>\2035 \305\306 \307#\310\n\307\311\312#)\266\203\204, \313\n\307\311\312#)\266\203\2030 \n\2023 \314\n!)\207 \207" [system-type filename name inhibit-changing-match-data (ms-dos windows-nt cygwin) mapconcat #[(char) "\301\302X\203 \303X\203 \302Z\304\\\202 !\207" [char char-to-string 65 90 97] 3] nil "^.:\\'" t string-match "^/[^/:]+:" expand-file-name] 7 (#$ . 5565)])
#@101 Return t if FILENAME is on a filesystem that does not require
CR/LF translation, and nil otherwise.
(defalias 'w32-untranslated-file-p #[(filename) "\306! \307\n\204/ \203/ \310@P\f\307\311\312#)\266\203\203) \311\211\202 A\202 \n+\207" [filename w32-untranslated-filesystem-list found ufs-list fs inhibit-changing-match-data w32-untranslated-canonical-name nil "^" t string-match] 8 (#$ . 6129)])
(byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias add-untranslated-filesystem w32-add-untranslated-filesystem nil make-obsolete "24.4"] 4)
#@254 Add FILESYSTEM to the list of filesystems that do not require
CR/LF translation. FILESYSTEM is a string containing the directory
prefix corresponding to the filesystem. For example, for a Unix
filesystem mounted on drive Z:, FILESYSTEM could be "Z:".
(defalias 'w32-add-untranslated-filesystem #[(filesystem) "\303!\211\n\235\203 \n\202 \nB\211)\207" [filesystem fs w32-untranslated-filesystem-list w32-untranslated-canonical-name] 3 (#$ . 6704) "DUntranslated file system: "])
(byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias remove-untranslated-filesystem w32-remove-untranslated-filesystem nil make-obsolete "24.4"] 4)
#@259 Remove FILESYSTEM from the list of filesystems that do not require
CR/LF translation. FILESYSTEM is a string containing the directory
prefix corresponding to the filesystem. For example, for a Unix
filesystem mounted on drive Z:, FILESYSTEM could be "Z:".
(defalias 'w32-remove-untranslated-filesystem #[(filesystem) "\302\303! \"\211\207" [filesystem w32-untranslated-filesystem-list delete w32-untranslated-canonical-name] 3 (#$ . 7358) "fUntranslated file system: "])
(byte-code "\302\303\304\305#\210\306\305\211\203, @\303N\203% \304N\204% \307\304\303N#\210 A\211\204 *\310\303\304\311#\210\312\304\313\314\315\316\317\320\317\321& \207" [prop --dolist-tail-- defvaralias direct-print-region-use-command-dot-com w32-direct-print-region-use-command-dot-com nil (saved-value saved-variable-comment) put make-obsolete-variable "24.4" custom-declare-variable t "If non-nil, use command.com to print on Windows 9x." :type boolean :group dos-fns w32] 11)
(defalias 'w32-direct-print-region-helper #[(printer start end lpr-prog _delete-text _buf _display rest) "\306 ;\203 \307\310\311 #\202 \312\313\314!\313\315!E\316\n@!\204'