%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/w32-fns.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 "\302\303!\210\304=\203\f \305\302\207" [system-type find-file-visit-truename require w32-vars windows-nt t] 2) #@42 Return the name of the shell being used. (defalias 'w32-shell-name #[nil "\301\300!\203\n \206$ \302\303!\206$ \302\304!\206$ \305\306!\203# \306 \203# \307\207\310\207" [shell-file-name boundp getenv "ESHELL" "SHELL" fboundp w32-using-nt "cmd.exe" "command.com"] 2 (#$ . 533)]) (defalias 'w32-system-shell-p #[(shell-name) "\205\n \302!\227 \235\207" [shell-name w32-system-shells file-name-nondirectory] 2]) #@84 Return non-nil if the interactive shell being used expects MS-DOS shell semantics. (defalias 'w32-shell-dos-semantics #[nil "\300\301 !\206 \302\301 !\227\303\235\205 \300\304\305!!\207" [w32-system-shell-p w32-shell-name file-name-nondirectory ("cmdproxy" "cmdproxy.exe") getenv "COMSPEC"] 3 (#$ . 952)]) #@248 Check the configuration of shell variables on Windows. This function is invoked after loading the init files and processing the command line arguments. It issues a warning if the user or site has configured the shell with inappropriate settings. (defalias 'w32-check-shell-configuration #[nil "p\306\307!\310 q\210\311 \210\312\313\314!!\203 \315\316\313\314!\"c\210\312\313\317!!\203. \315\320\313\317!\"c\210\312!\203: \315\321\"c\210\322\304!\203L \312\f!\203L \315\323\f\"c\210\324 \325V \203X \311 \210\203q \326\230\203f \327c\210\203\203 \330c\210\202\203 \331\230\203{ \332c\210\204\203 \333c\210\324 \325V\203\221 \334 !\210\202\225 \335 !\210\nq+\207" [system-shell buffer prev-buffer shell-file-name explicit-shell-file-name w32-allow-system-shell get-buffer-create "*Shell Configuration*" nil erase-buffer w32-system-shell-p getenv "ESHELL" format "Warning! The ESHELL environment variable uses %s.\nYou probably want to change it so that it uses cmdproxy.exe instead.\n\n" "SHELL" "Warning! The SHELL environment variable uses %s.\nYou probably want to change it so that it uses cmdproxy.exe instead.\n\n" "Warning! shell-file-name uses %s.\nYou probably want to change it so that it uses cmdproxy.exe instead.\n\n" boundp "Warning! explicit-shell-file-name uses %s.\nYou probably want to change it so that it uses cmdproxy.exe instead.\n\n" buffer-size 0 "-c" "Warning! shell-command-switch is \"-c\".\nYou should set this to \"/c\" when using a system shell.\n\n" "Warning! w32-quote-process-args is t.\nYou should set this to nil when using a system shell.\n\n" "/c" "Warning! shell-command-switch is \"/c\".\nYou should set this to \"-c\" when using a non-system shell.\n\n" "Warning! w32-quote-process-args is nil.\nYou should set this to t when using a non-system shell.\n\n" display-buffer kill-buffer shell-command-switch w32-quote-process-args] 4 (#$ . 1267) nil]) (add-hook 'after-init-hook 'w32-check-shell-configuration) (defalias 'w32-set-default-process-coding-system #[nil "\301\302\303\304\"\210\302\303\305\"\207" [default-process-coding-system (undecided-dos . undecided-unix) add-to-list process-coding-system-alist ("[cC][mM][dD][pP][rR][oO][xX][yY]" undecided-dos . undecided-dos) ("[pP][lL][iI][nN][kK]" undecided-dos . undecided-dos)] 3]) (byte-code "\300\301\302\303#\210\304\301\302\305#\210\306\307\302\"\207" [defalias set-default-process-coding-system w32-set-default-process-coding-system nil make-obsolete "26.1" add-hook before-init-hook] 4) #@43 List of locale ids known to be supported. (defvar w32-valid-locales nil (#$ . 3777)) (byte-code "\300\301!\204 \302\301\303\"\210\300\207" [fboundp w32-get-valid-locale-ids defalias #[nil "\302\303\211\304V\203 \305 !\203 B S\211\202 *\207" [locales i 65535 nil 0 w32-get-locale-info] 3 "Return list of all valid Windows locale ids."]] 3) #@59 List the name and id of all locales supported by Windows. (defalias 'w32-list-locales #[nil "\204\n \306\307 \310\" r\311\312!q\210p\313 \210\n\314\211\315\211\315\316 \210\317\320!\210+\211\321\322!\210\314\211\205_ @\321\323\324\325!\325\315\"$!\210A\211\204? \314*\326!\210+\207" [w32-valid-locales default-directory #1=#:old-dir buffer-read-only buffer-file-name buffer-undo-list sort w32-get-valid-locale-ids < get-buffer-create "*Supported Locales*" kill-all-local-variables nil t erase-buffer run-hooks temp-buffer-setup-hook princ "LCID Abbrev Full name\n\n" format "%d %s %s\n" w32-get-locale-info internal-temp-output-buffer-show inhibit-modification-hooks inhibit-read-only #2=#:buf standard-output locale --dolist-tail--] 9 (#$ . 4133) nil]) #@374 Set the coding system used by the Windows system to CODING-SYSTEM. This is used for things like passing font names with non-ASCII characters in them to the system. For a list of possible values of CODING-SYSTEM, use \[list-coding-systems]. This function is provided for backward compatibility, since `w32-system-coding-system' is now an alias for `locale-coding-system'. (defalias 'w32-set-system-coding-system #[(coding-system) "\302!\210\211\207" [coding-system locale-coding-system check-coding-system] 2 (#$ . 4930) (list (let ((default locale-coding-system)) (read-coding-system (format "Coding system for system calls (default %s): " default) default)))]) (byte-code "\300\301\302\303#\210\304\301\302\305#\210\306\307\310\"\210\311\312!\203 \312\303!\210\303\207" [defalias set-w32-system-coding-system w32-set-system-coding-system nil make-obsolete "26.1" defvaralias w32-system-coding-system locale-coding-system fboundp set-message-beep] 4) #@550 Function to add character sets to display with Windows fonts. Creates entries in `w32-charset-info-alist'. XLFD-CHARSET is a string which will appear in the XLFD font name to identify the character set. WINDOWS-CHARSET is a symbol identifying the Windows character set this maps to. For the list of possible values, see the documentation for `w32-charset-info-alist'. CODEPAGE can be a numeric codepage that Windows uses to display the character set, t for Unicode output with no codepage translation or nil for 8 bit output with no translation. (defalias 'w32-add-charset-info #[(xlfd-charset windows-charset codepage) " \nBB\211\f\235\203 \f\202 \fB\211)\207" [xlfd-charset windows-charset codepage #1=#:x w32-charset-info-alist] 4 (#$ . 5894)]) (byte-code "\300\301!\203\364 \302\303\304\305#\210\302\306\304\307#\210\302\310\311\312#\210\302\313\311\312#\210\302\314\311\312#\210\302\315\311\312#\210\302\316\317\320#\210\302\321\322\323#\210\302\324\325\326#\210\302\327\330\331#\210\302\332\333\334#\210\302\335\333\336#\210\302\337\340\341#\210\302\342\343\344#\210\302\345\346\347#\210\302\350\351\352#\210\302\353\354\355#\210\302\356\357\360#\210\302\361\362\363#\210\302\364\343\365#\210\302\366\346\367#\210\302\370\351\371#\210\302\372\351\352#\210\302\373\374\375#\210\302\376\377\201@ #\210\302\201A \201B \201C #\210\302\201D \201E \201F #\210\302\201G \201H \201I #\210\302\201J \322\323#\210\302\201K \325\326#\210\302\201L \311\312#\210\302\201M \317\320#\210\302\201N \374\375#\210\302\201O \304\201P #\210\331\207" [boundp w32-charset-info-alist w32-add-charset-info "iso8859-14" w32-charset-ansi 28604 "iso8859-15" 28605 "jisx0201" w32-charset-shiftjis 932 "jisx0208" "jisx0201-latin" "jisx0201-katakana" "ksc5601.1989" w32-charset-hangeul 949 "big5" w32-charset-chinesebig5 950 "gb2312.1980" w32-charset-gb2312 936 "ms-symbol" w32-charset-symbol nil "ms-oem" w32-charset-oem 437 "ms-oemlatin" 850 "iso8859-2" w32-charset-easteurope 28592 "iso8859-3" w32-charset-turkish 28593 "iso8859-4" w32-charset-baltic 28594 "iso8859-5" w32-charset-russian 28595 "iso8859-6" w32-charset-arabic 28596 "iso8859-7" w32-charset-greek 28597 "iso8859-8" w32-charset-hebrew 1255 "iso8859-9" 1254 "iso8859-13" 1257 "koi8-r" 20866 "tis620-2533" "iso8859-11" w32-charset-thai 874 "windows-1258" w32-charset-vietnamese 1258 "ksc5601.1992" w32-charset-johab 1361 "mac-roman" w32-charset-mac 10000 "iso10646-1" w32-charset-default t "big5-0" "gb2312.1980-0" "jisx0208-sjis" "ksc5601.1987-0" "tis620-0" "iso8859-1" 1252] 4) #@278 Convert a standard file's name to something suitable for MS-Windows. This means to guarantee valid names and perhaps to canonicalize certain patterns. This function is called by `convert-standard-filename'. Replace invalid characters and turn Cygwin names into native names. (defalias 'w32-convert-standard-filename #[(filename) "\304 \305\216\306\307 \"\203 \310\311\312\313 $\202 \314 !\315\211G\316V\203, \316H\317=\203, \320\306\321\n#\203@ \315\224\322I\210\315\225\202, ,\207" [save-match-data-internal filename start name match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] string-match "\\`/cygdrive/\\([a-zA-Z]\\)/" replace-match "\\1:/" t nil copy-sequence 0 1 58 2 "[?*:<>|\"