%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/eshell/ |
Current File : //usr/local/share/emacs/27.2/lisp/eshell/em-unix.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 "\300\301!\210\300\302!\210\303\304\305\306\307\310\311\312&\210\313\314\315\316\317DD\320\321\322\323\324\311\304& \210\313\325\315\316\326DD\327\323\330\311\304&\210\313\331\315\316\332DD\333\323\330\311\304&\210\313\334\315\316\335DD\336\323\330\311\304&\210\313\337\315\316\340DD\341\323\330\311\304&\210\313\342\315\316\343DD\344\323\330\311\304&\210\313\345\315\316\346DD\347\323\330\311\304&\210\313\350\315\316\351DD\352\323\330\311\304&\210\313\353\315\316\354DD\355\323\330\311\304&\210\313\356\315\316\357DD\360\323\330\311\304&\210\313\361\315\316\362DD\363\323\330\311\304&\210\313\364\315\316\365DD\366\323\330\311\304&\210\313\367\315\316\370DD\371\323\330\311\304&\210\313\372\315\316\373DD\374\323\330\311\304&\210\313\375\315\316\376DD\377\323\330\311\304&\207" [require esh-mode pcomplete custom-declare-group eshell-unix nil "This module defines many of the more common UNIX utilities as\naliases implemented in Lisp. These include mv, ln, cp, rm, etc. If\nthe user passes arguments which are too complex, or are unrecognized\nby the Lisp variant, the external version will be called (if\navailable). The only reason not to use them would be because they are\nusually much slower. But in several cases their tight integration\nwith Eshell makes them more versatile than their traditional cousins\n(such as being able to use `kill' to kill Eshell background processes\nby name)." :tag "UNIX commands in Lisp" :group eshell-module custom-declare-variable eshell-unix-load-hook funcall function #[0 "\300\207" [nil] 1] "A list of functions to run when `eshell-unix' is loaded." :version "24.1" :type hook eshell-plain-grep-behavior #[0 "\300\207" [nil] 1] "If non-nil, standalone \"grep\" commands will behave normally.\nStandalone in this context means not redirected, and not on the\nreceiving side of a command pipeline." boolean eshell-no-grep-available #[0 "\300\301!?\207" [eshell-search-path "grep"] 2] "If non-nil, no grep is available on the current machine." eshell-plain-diff-behavior #[0 "\300\207" [nil] 1] "If non-nil, standalone \"diff\" commands will behave normally.\nStandalone in this context means not redirected, and not on the\nreceiving side of a command pipeline." eshell-plain-locate-behavior #[0 "\300\207" [nil] 1] "If non-nil, standalone \"locate\" commands will behave normally.\nStandalone in this context means not redirected, and not on the\nreceiving side of a command pipeline." eshell-rm-removes-directories #[0 "\300\207" [nil] 1] "If non-nil, `rm' will remove directory entries.\nOtherwise, `rmdir' is required." eshell-rm-interactive-query #[0 "\300 \301U\207" [user-uid 0] 2] "If non-nil, `rm' will query before removing anything." eshell-mv-interactive-query #[0 "\300 \301U\207" [user-uid 0] 2] "If non-nil, `mv' will query before overwriting anything." eshell-mv-overwrite-files #[0 "\300\207" [t] 1] "If non-nil, `mv' will overwrite files without warning." eshell-cp-interactive-query #[0 "\300 \301U\207" [user-uid 0] 2] "If non-nil, `cp' will query before overwriting anything." eshell-cp-overwrite-files #[0 "\300\207" [t] 1] "If non-nil, `cp' will overwrite files without warning." eshell-ln-interactive-query #[0 "\300 \301U\207" [user-uid 0] 2] "If non-nil, `ln' will query before overwriting anything." eshell-ln-overwrite-files #[0 "\300\207" [nil] 1] "If non-nil, `ln' will overwrite files without warning." eshell-default-target-is-dot #[0 "\300\207" [nil] 1] "If non-nil, the default destination for cp, mv or ln is `.'." eshell-du-prefer-over-ange #[0 "\300\207" [nil] 1] "Use Eshell's du in ange-ftp remote directories.\nOtherwise, Emacs will attempt to use rsh to invoke du on the remote machine."] 10) #@45 Initialize the UNIX support/emulation code. (defalias 'eshell-unix-initialize #[0 "\302\211>\262\203 \303\304\305\306\307$\210\310\301!\210\311\312 \"\211\207" [eshell-modules-list eshell-complex-commands eshell-cmpl add-hook pcomplete-try-first-hook eshell-complete-host-reference nil t make-local-variable append ("grep" "egrep" "fgrep" "agrep" "glimpse" "locate" "cat" "time" "cp" "mv" "make" "du" "diff")] 5 (#$ . 4115)]) (byte-code "\300\301\302\"\210\300\303\304\"\210\300\305\306\"\207" [defalias eshell/date current-time-string eshell/basename file-name-nondirectory eshell/dirname file-name-directory] 3) #@70 Invoke man, flattening the arguments appropriately. (fn &rest ARGS) (defalias 'eshell/man #[128 "\300\301\302\"!\207" [man apply eshell-flatten-and-stringify] 5 (#$ . 4739)]) (put 'eshell/man 'eshell-no-numeric-conversions t) #@390 Run the info command in-frame with the same behavior as command-line `info', ie: `info' => goes to top info window `info arg1' => IF arg1 is a file, then visits arg1 `info arg1' => OTHERWISE goes to top info window and then menu item arg1 `info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2 etc. (fn &rest ARGS) (defalias 'eshell/info #[128 "\300\301!\210\211@;\204 \302\202/ \303\304@!!\203 \304@!\202/ \303\304@!\305P!\205/ \304@!\305P\211\203? A\262\306\307\"\210\202B \310 \210\205R \311@!\210A\262\202B \207" [require info nil file-exists-p expand-file-name ".info" Info-find-node "Top" Info-directory Info-menu] 5 (#$ . 4974)]) #@86 Remove all of the given FILES, perhaps interactively. (fn FILES &optional TOPLEVEL) (defalias 'eshell-remove-entries #[513 "\205\257 \305\306\307@!\"\203 \211\203\250 \310\311\"\266\202\250 \312@!\203k \313@!\204k \203A \314\315@\"\211\311\n\"\266\316\311\n\"\266\204\250 \f\203S \317\314\320@\"!\203\250 \321@\322\211E\323\324\325\326%\266 \202\250 \203\202 \314\327@\"\211\311\n\"\266\316\311\n\"\266\204\250 \f\203\224 \317\314\330@\"!\203\250 \331@\322D\323\324\325\326%\266 A\262\202 \207" [eshell-error-handle em-verbose eshell-output-handle em-preview em-interactive string-match "\\`\\.\\.?\\'" file-name-nondirectory "rm: cannot remove `.' or `..'\n" eshell-output-object file-directory-p file-symlink-p format-message "rm: removing directory `%s'" "\n" y-or-n-p "rm: remove directory `%s'? " delete-directory t eshell-printn eshell-errorn eshell-exec-lisp nil "rm: removing file `%s'" "rm: remove `%s'? " delete-file] 16 (#$ . 5704)]) #@185 Implementation of rm in Lisp. This is implemented to call either `delete-file', `kill-buffer', `kill-process', or `unintern', depending on the nature of the argument. (fn &rest ARGS) (defalias 'eshell/rm #[128 "\306!\262\211\307\310\311#\211A\262\242\211A\262\242\211A\262\242\211A\262\242\211A\262\242\2044 \f\203>