%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/xdg.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@29 (fn ENVIRON DEFAULT-PATH) (defalias 'xdg--dir-home '(macro . #[514 "\300\301!\302\303DDC\304\305\306D\307\310DDE\311DFE\207" [make-symbol "env" let getenv if or null not file-name-absolute-p expand-file-name] 11 (#$ . 408)])) (put 'xdg--dir-home 'edebug-form-spec '(stringp stringp)) #@66 Return the base directory for user specific configuration files. (defalias 'xdg-config-home #[0 "\300\301!\211\203 \302!\204 \303\304!\202 \211\207" [getenv "XDG_CONFIG_HOME" file-name-absolute-p expand-file-name "~/.config"] 3 (#$ . 708)]) #@58 Return the base directory for user specific cache files. (defalias 'xdg-cache-home #[0 "\300\301!\211\203 \302!\204 \303\304!\202 \211\207" [getenv "XDG_CACHE_HOME" file-name-absolute-p expand-file-name "~/.cache"] 3 (#$ . 959)]) #@57 Return the base directory for user specific data files. (defalias 'xdg-data-home #[0 "\300\301!\211\203 \302!\204 \303\304!\202 \211\207" [getenv "XDG_DATA_HOME" file-name-absolute-p expand-file-name "~/.local/share"] 3 (#$ . 1199)]) #@39 Return the value of $XDG_RUNTIME_DIR. (defalias 'xdg-runtime-dir #[0 "\300\301!\207" [getenv "XDG_RUNTIME_DIR"] 2 (#$ . 1443)]) #@52 Return the config directory search path as a list. (defalias 'xdg-config-dirs #[0 "\300\301!\211\203 \211\302\230\203 \303\202 \304!\207" [getenv "XDG_CONFIG_DIRS" "" ("/etc/xdg") parse-colon-path] 3 (#$ . 1577)]) #@50 Return the data directory search path as a list. (defalias 'xdg-data-dirs #[0 "\300\301!\211\203 \211\302\230\203 \303\202 \304!\207" [getenv "XDG_DATA_DIRS" "" ("/usr/local/share/" "/usr/share/") parse-colon-path] 3 (#$ . 1801)]) #@145 Return the canonical URI for FILENAME. If FILENAME has absolute file name /foo/bar.jpg, its canonical URI is file:///foo/bar.jpg (fn FILENAME) (defalias 'xdg-thumb-uri #[257 "\300\301!P\207" ["file://" expand-file-name] 4 (#$ . 2043)]) #@72 Return the appropriate thumbnail filename for FILENAME. (fn FILENAME) (defalias 'xdg-thumb-name #[257 "\300\301!!\302P\207" [md5 xdg-thumb-uri ".png"] 4 (#$ . 2287)]) #@76 Return modification time of FILENAME as an Emacs timestamp. (fn FILENAME) (defalias 'xdg-thumb-mtime #[257 "\300!\3018\207" [file-attributes 5] 4 (#$ . 2462)]) #@66 Regexp matching non-comment lines in xdg-user-dirs config files. (defconst xdg-line-regexp "XDG_\\(?1:\\(?:D\\(?:ESKTOP\\|O\\(?:CUMENTS\\|WNLOAD\\)\\)\\|MUSIC\\|P\\(?:ICTURES\\|UBLICSHARE\\)\\|\\(?:TEMPLATE\\|VIDEO\\)S\\)\\)_DIR=\"\\(?2:\\(?:\\(?:\\$HOME\\)?/\\)\\(?:[^\"]\\|\\\\\"\\)*?\\)\"" (#$ . 2631)) #@37 Alist of directory keys and values. (defvar xdg-user-dirs nil (#$ . 2943)) #@12 (fn STR) (defalias 'xdg--substitute-home-env #[257 "\300!\203 \207\301 \302\303\304\305\306!\307\"\310$\216\311\312\"\205# \313\314\315\316\303%)\207" [file-name-absolute-p match-data make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 string-match "^\\$HOME/" replace-match "~/" t nil] 8 (#$ . 3024)]) #@123 Return pair of user-dirs key to directory value in LINE, otherwise nil. This should be called at the beginning of a line. (defalias 'xdg--user-dirs-parse-line #[0 "\301\302w\210g\303U?\205&