?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/dos-w32.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:51 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/dos-w32.el ;;; in Emacs version 24.3 ;;; 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 "\303\304 B\305\306\307\310\311\312\313\314\315\314\316& \207" [path-separator minibuffer-history-case-insensitive-variables null-device ";" file-name-history "NUL" 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 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." :type (repeat (cons regexp boolean)) :group dos-fns w32] 10) (defalias 'find-buffer-file-type-match #[(filename) "\305\306\307\f! \204$ \n\203$ \310\n@@\f\"\203 \n@\nA\202\n +\207" [file-name-buffer-file-type-alist found alist case-fold-search filename nil t file-name-sans-versions string-match] 3]) (defalias 'find-buffer-file-type #[(filename) "\303!\304\211\204 \305\306!\202+ \nA\211\307>\203 \202+ 9\205+ \310 !\205+ !*\207" [filename code match find-buffer-file-type-match nil default-value buffer-file-type (nil t) fboundp] 3]) (set-default 'buffer-file-coding-system 'undecided-dos) #@2084 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 `untranslated-filesystem-list' and `file-name-buffer-file-type-alist', and whether the file exists: If it matches in `untranslated-filesystem-list': If the file exists: `undecided' If the file does not exist: `undecided-unix' If it matches in `file-name-buffer-file-type-alist': If the match is t (for binary): `no-conversion' If the match is nil (for dos-text): `undecided-dos' 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' and `buffer-file-type'. If `buffer-file-coding-system' is non-nil, its value is used. If it is nil and `buffer-file-type' is t, the coding system is `no-conversion'. Otherwise, it is `undecided-dos'. The two most common situations are when DOS and Unix files are read and written, and their names do not match in `untranslated-filesystem-list' and `file-name-buffer-file-type-alist'. 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\211\211\307=\203\221 A@\211:\203/ \310\nA!\205+ \311\nA!\n@\312\n!\211\204f \313\n!\203C \314\202f \315\n!\204Y ;\203^ \315\316 \317\n!\"!\203^ \314\202f \320\n!\203f \314\203o \321\202\256 \203w \322\202\256 \203 \323\202\256 \f\203\207 \324\202\256 \325\326!\325\326!B\202\256 \327=\205\256 \203\244 \211B\202\256 \203\255 \330\202\256 \331.\207" [command target-buf target undecided-unix undecided text nil insert-file-contents bufferp buffer-name find-buffer-file-type find-buffer-file-type-match t file-exists-p expand-file-name file-name-directory untranslated-file-p (no-conversion . no-conversion) (undecided-dos . undecided-dos) (undecided-unix . undecided-unix) (undecided . undecided) default-value buffer-file-coding-system write-region (no-conversion . no-conversion) (undecided-dos . undecided-dos) binary op buffer-file-type] 8 (#$ . 1970)]) (modify-coding-system-alist 'file "" 'find-buffer-file-type-coding-system) #@45 Visit file FILENAME and treat it as binary. (defalias 'find-file-binary #[(filename) "\302\303 !)\207" [file-name-buffer-file-type-alist filename (("" . t)) find-file] 2 (#$ . 5107) "FFind file binary: "]) #@50 Visit file FILENAME and treat it as a text file. (defalias 'find-file-text #[(filename) "\302\303 !)\207" [file-name-buffer-file-type-alist filename (("")) find-file] 2 (#$ . 5320) "FFind file text: "]) (defalias '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 untranslated-file-p buffer-file-name coding-system-change-eol-conversion 0 nil] 4]) (add-hook 'find-file-not-found-functions 'find-file-not-found-set-buffer-file-coding-system) #@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 untranslated-filesystem-list nil (#$ . 5924)) #@107 Return FILENAME in a canonicalized form for use with the functions dealing with untranslated filesystems. (defalias 'untranslated-canonical-name #[(filename) "\303>\203% \304\305\306\n\304#\307\310 \"\204 \307\311 \"\203 \202# \312 !)\207\n\207" [system-type name filename (ms-dos windows-nt cygwin) nil mapconcat #[(char) "\301X\203 \302X\203 \303\301Z\304\\!\207\303!\207" [char 65 90 char-to-string 97] 3] string-match "^.:$" "^/[^/:]+:" expand-file-name] 4 (#$ . 6173)]) #@101 Return t if FILENAME is on a filesystem that does not require CR/LF translation, and nil otherwise. (defalias 'untranslated-file-p #[(filename) "\305! \306\n\204&