| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/eshell/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\306\307\310\311\312\313\314\315&\210\316\317\320\321\322DD\323\324\325\326\327&\210\316\330\320\321\331DD\332\326\327%\210\316\333\320\321\334DD\335\326\336%\210\316\337\320\321\340DD\341\326\342%\210\316\343\320\321\344DD\345\326\346%\210\316\347\320\321\350DD\351\326\352%\210\316\353\320\321\354DD\355\326\356%\210\357\353\360\361#\210\316\362\320\321\363DD\364\326\365%\210\316\366\320\321\367DD\370\326\365%\210\316\371\320\321\372DD\373\326\374%\210\316\375\320\321\376DD\377\326\374%\210\316\201@ \320\321\201A DD\201B \326\374%\210\316\201C \320\321\201D DD\201E \326\201F %\207" [require ring esh-opt esh-mode em-pred eshell custom-declare-group eshell-hist nil "This module provides command history management." :tag "History list management" :group eshell-module custom-declare-variable eshell-hist-load-hook funcall function #[0 "\300\207" [nil] 1 #1=""] "A list of functions to call when loading `eshell-hist'." :version "24.1" :type hook eshell-hist-unload-hook #[0 "\300C\207" [#[0 "\300\301\302\"\207" [remove-hook kill-emacs-hook eshell-save-some-history] 3]] 1 #1#] "A hook that gets run when `eshell-hist' is unloaded." eshell-history-file-name #[0 "\301\302\"\207" [eshell-directory-name expand-file-name "history"] 3 #1#] "If non-nil, name of the file to read/write input history.\nSee also `eshell-read-history' and `eshell-write-history'.\nIf it is nil, Eshell will use the value of HISTFILE." (choice (const :tag "Use HISTFILE" nil) file) eshell-history-size #[0 "\300\207" [128] 1 #1#] "Size of the input history ring. If nil, use envvar HISTSIZE." (choice (const :tag "Use HISTSIZE" nil) integer) eshell-hist-ignoredups #[0 "\300\207" [nil] 1 #1#] "If non-nil, don't add input matching the last on the input ring.\nThe value `erase' mirrors the \"erasedups\" value of HISTCONTROL\nin bash, and any other non-nil value mirrors the \"ignoredups\"\nvalue." (choice (const :tag "Don't ignore anything" nil) (const :tag "Ignore consecutive duplicates" t) (const :tag "Only keep last duplicate" 'erase)) eshell-save-history-on-exit #[0 "\300\207" [t] 1 #1#] "Determine if history should be automatically saved.\nHistory is always preserved after sanely exiting an Eshell buffer.\nHowever, when Emacs is being shut down, this variable determines\nwhether to prompt the user.\nIf set to nil, it means never save history on termination of Emacs.\nIf set to `ask', ask if any Eshell buffers are open at exit time.\nIf set to t, history will always be saved, silently." (choice (const :tag "Never" nil) (const :tag "Ask" ask) (const :tag "Always save" t)) eshell-input-filter #[0 "\300\207" [eshell-input-filter-default] 1 #1#] "Predicate for filtering additions to input history.\nTakes one argument, the input. If non-nil, the input may be saved on\nthe input history list. Default is to save anything that isn't all\nwhitespace." (radio (function-item eshell-input-filter-default) (function-item eshell-input-filter-initial-space) (function :tag "Other function")) put risky-local-variable t eshell-hist-match-partial #[0 "\300\207" [t] 1 #1#] "If non-nil, movement through history is constrained by current input.\nOtherwise, typing <M-p> and <M-n> will always go to the next history\nelement, regardless of any text on the command line. In that case,\n<C-c M-r> and <C-c M-s> still offer that functionality." boolean eshell-hist-move-to-end #[0 "\300\207" [t] 1 #1#] "If non-nil, move to the end of the buffer before cycling history." eshell-hist-event-designator #[0 "\300\207" ["^!\\(!\\|-?[0-9]+\\|\\??[^:^$%*?]+\\??\\|#\\)"] 1 #1#] "The regexp used to identifier history event designators." regexp eshell-hist-word-designator #[0 "\300\207" ["^:?\\([0-9]+\\|[$^%*]\\)?\\(-[0-9]*\\|[$^%*]\\)?"] 1 #1#] "The regexp used to identify history word designators." eshell-hist-modifier #[0 "\300\207" ["^\\(:\\([hretpqx&g]\\|s/\\([^/]*\\)/\\([^/]*\\)/\\)\\)*"] 1 #1#] "The regexp used to identity history modifiers." eshell-hist-rebind-keys-alist #[0 "\300\207" [(([(control 112)] . eshell-previous-input) ([(control 110)] . eshell-next-input) ([(control up)] . eshell-previous-input) ([(control down)] . eshell-next-input) ([(control 114)] . eshell-isearch-backward) ([(control 115)] . eshell-isearch-forward) ([(meta 114)] . eshell-previous-matching-input) ([(meta 115)] . eshell-next-matching-input) ([(meta 112)] . eshell-previous-matching-input-from-input) ([(meta 110)] . eshell-next-matching-input-from-input) ([up] . eshell-previous-matching-input-from-input) ([down] . eshell-next-matching-input-from-input))] 1 #1#] "History keys to bind differently if point is in input text." (repeat (cons (vector :tag "Keys to bind" (repeat :inline t sexp)) (function :tag "Command")))] 8)
(defvar eshell-history-ring nil)
(defvar eshell-history-index nil)
(defvar eshell-matching-input-from-input-string "")
(defvar eshell-save-history-index nil)
#@35 Keymap used in isearch in Eshell.
(defvar eshell-isearch-map (byte-code "\301!\302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\314#\210\302\316\317#\210\207" [isearch-mode-map copy-keymap define-key [(control 109)] eshell-isearch-return [(control 114)] eshell-isearch-repeat-backward [(control 115)] eshell-isearch-repeat-forward [(control 103)] eshell-isearch-abort [backspace] eshell-isearch-delete-char [delete] "" eshell-isearch-cancel] 5) (#$ . 5030))
(defvar eshell-hist-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\304#\210\302\320\306#\210\203Q \302\321\304#\210\302\322\306#\210\302\323\310#\210\302\324\312#\210\202i \302\325\310#\210\302\326\312#\210\302\327\304#\210\302\330\306#\210\302\331\332#\210\302\333\334#\210\207" [eshell-hist-match-partial make-sparse-keymap define-key [up] eshell-previous-matching-input-from-input [down] eshell-next-matching-input-from-input [(control up)] eshell-previous-input [(control down)] eshell-next-input [(meta 114)] eshell-previous-matching-input [(meta 115)] eshell-next-matching-input [3 134217842] [3 134217843] [(meta 112)] [(meta 110)] [3 134217840] [3 134217838] [(meta 112)] [(meta 110)] [3 134217840] [3 134217838] "\f" eshell-list-history "" eshell-get-next-from-history] 5))
#@89 Do not add blank input to input history.
Returns non-nil if INPUT is blank.
(fn INPUT)
(defalias 'eshell-input-filter-default #[257 "\211\301\302\303\304#)\266\204?\207" [inhibit-changing-match-data "\\`[ \n
]*\\'" nil t string-match] 9 (#$ . 6443)])
#@138 Do not add input beginning with empty space to history.
Returns nil if INPUT is prepended by blank space, otherwise non-nil.
(fn INPUT)
(defalias 'eshell-input-filter-initial-space #[257 "\301\302\303\304#)\266\203?\207" [inhibit-changing-match-data "\\`\\s-+" nil t string-match] 8 (#$ . 6708)])
#@101 Non-nil if Eshell-Hist mode is enabled.
Use the command `eshell-hist-mode' to change this variable.
(defvar eshell-hist-mode nil (#$ . 7018))
(make-variable-buffer-local 'eshell-hist-mode)
#@622 Minor mode for the eshell-hist module.
This is a minor mode. If called interactively, toggle the
`Eshell-Hist mode' mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is `toggle'. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the
mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate `eshell-hist-mode'.
The mode's hook is called both when the mode is enabled and when it is
disabled.
\{eshell-hist-mode-map}
(fn &optional ARG)
(defalias 'eshell-hist-mode #[256 "\302 \303=\203
?\202 \247\203 \304W\203 \305\202 \306\307\301!\2031 \310\300 \"\2031 \300 B\311\312\203; \313\202<