?
Current Path : /usr/share/emacs/24.3/lisp/eshell/ |
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/eshell/esh-arg.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:53 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/esh-arg.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!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\316\317\310\303&\210\312\320\304\321\322\323\316\317\310\303& \210\312\324\325\326\316\327\310\303&\210\312\330\331\332\316\333\310\303&\210\312\334\335\336\316\337\310\303&\207" [provide esh-arg custom-declare-group eshell-arg nil "Argument parsing involves transforming the arguments passed on the\ncommand line into equivalent Lisp forms that, when evaluated, will\nyield the values intended." :tag "Argument parsing" :group eshell custom-declare-variable eshell-parse-argument-hook (list 'eshell-parse-special-reference #'(lambda nil (when (and (not eshell-current-argument) (not eshell-current-quoted) (looking-at eshell-number-regexp) (eshell-arg-delimiter (match-end 0))) (goto-char (match-end 0)) (let ((str (match-string 0))) (if (> (length str) 0) (add-text-properties 0 (length str) '(number t) str)) str))) #'(lambda nil (unless eshell-inside-quote-regexp (setq eshell-inside-quote-regexp (format "[^%s]+" (apply 'string eshell-special-chars-inside-quoting)))) (unless eshell-outside-quote-regexp (setq eshell-outside-quote-regexp (format "[^%s]+" (apply 'string eshell-special-chars-outside-quoting)))) (when (looking-at (if eshell-current-quoted eshell-inside-quote-regexp eshell-outside-quote-regexp)) (goto-char (match-end 0)) (let ((str (match-string 0))) (if str (set-text-properties 0 (length str) nil str)) str))) #'(lambda nil (let (comment-p) (when (or (looking-at "[ ]+") (and (not eshell-current-argument) (looking-at "#\\([^<'].*\\|$\\)") (setq comment-p t))) (if comment-p (add-text-properties (match-beginning 0) (match-end 0) '(comment t))) (goto-char (match-end 0)) (eshell-finish-arg)))) 'eshell-parse-backslash 'eshell-parse-literal-quote 'eshell-parse-double-quote 'eshell-parse-delimiter) "Define how to process Eshell command line arguments.\nWhen each function on this hook is called, point will be at the\ncurrent position within the argument list. The function should either\nreturn nil, meaning that it did no argument parsing, or it should\nreturn the result of the parse as a sexp. It is also responsible for\nmoving the point forward to reflect the amount of input text that was\nparsed.\n\nIf no function handles the current character at point, it will be\ntreated as a literal character." :type hook eshell-arg-load-hook "A hook that gets run when `eshell-arg' is loaded." :version "24.1" eshell-delimiter-argument-list '(59 38 124 62 32 9 10) "List of characters to recognize as argument separators." (repeat character) eshell-special-chars-inside-quoting '(92 34) "Characters which are still special inside double quotes." (repeat character) eshell-special-chars-outside-quoting (append eshell-delimiter-argument-list '(35 33 92 34 39)) "Characters that require escaping outside of double quotes.\nWithout escaping them, they will introduce a change in the argument." (repeat character)] 10) (defvar eshell-current-argument nil) (defvar eshell-current-modifiers nil) (defvar eshell-arg-listified nil) (defvar eshell-nested-argument nil) (defvar eshell-current-quoted nil) (defvar eshell-inside-quote-regexp nil) (defvar eshell-outside-quote-regexp nil) #@39 Initialize the argument parsing code. (defalias 'eshell-arg-initialize #[nil "\303\304\305#\210\306\301!\210\307\306\302!\210\307\211\207" [eshell-command-map eshell-inside-quote-regexp eshell-outside-quote-regexp define-key [(meta 98)] eshell-insert-buffer-name make-local-variable nil] 4 (#$ . 3742)]) #@54 Insert BUFFER-NAME into the current buffer at point. (defalias 'eshell-insert-buffer-name #[(buffer-name) "\301\302\303#\207" [buffer-name insert-and-inherit "#<buffer " ">"] 4 (#$ . 4055) "BName of buffer: "]) #@50 Return STRING with the `escaped' property on it. (defalias 'eshell-escape-arg #[(string) ";\203 \301\302G\303$\210\207" [string add-text-properties 0 (escaped t)] 5 (#$ . 4273)]) (put 'eshell-escape-arg 'byte-optimizer 'byte-compile-inline-expand) #@63 If there are pending modifications to be made, make them now. (defalias 'eshell-resolve-current-argument #[nil "\203= \203- \211\203\"