?
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/em-hist.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/em-hist.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\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314&\210\315\316\307\317\320\321\322\323\313\306& \210\315\324\325\326\322\323\313\306&\210\315\327\330\331\322\332\313\306&\210\315\333\334\335\322\336\313\306&\210\315\337\307\340\322\341\313\306&\210\315\342\343\344\322\345\313\306&\210\315\346\347\350\322\351\313\306&\210\352\346\353\343#\210\315\354\343\355\322\341\313\306&\210\315\356\343\357\322\341\313\306&\210\315\360\361\362\322\363\313\306&\210\315\364\365\366\322\363\313\306&\210\315\367\370\371\322\363\313\306&\210\315\372\373\374\322\375\313\306&\207" [require ring esh-opt 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 "A list of functions to call when loading `eshell-hist'." :version "24.1" :type hook eshell-hist-unload-hook (list #'(lambda nil (remove-hook 'kill-emacs-hook 'eshell-save-some-history))) "A hook that gets run when `eshell-hist' is unloaded." eshell-history-file-name (expand-file-name "history" eshell-directory-name) "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 128 "Size of the input history ring. If nil, use envvar HISTSIZE." (choice (const :tag "Use HISTSIZE" nil) integer) eshell-hist-ignoredups "If non-nil, don't add input matching the last on the input ring.\nThis mirrors the optional behavior of bash." boolean eshell-save-history-on-exit t "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 #'(lambda (str) (not (string-match "\\`\\s-*\\'" str))) "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." function put risky-local-variable eshell-hist-match-partial "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." eshell-hist-move-to-end "If non-nil, move to the end of the buffer before cycling history." eshell-hist-event-designator "^!\\(!\\|-?[0-9]+\\|\\??[^:^$%*?]+\\??\\|#\\)" "The regexp used to identifier history event designators." regexp eshell-hist-word-designator "^:?\\([0-9]+\\|[$^%*]\\)?\\(\\*\\|-[0-9]*\\|[$^%*]\\)?" "The regexp used to identify history word designators." eshell-hist-modifier "^\\(:\\([hretpqx&g]\\|s/\\([^/]*\\)/\\([^/]*\\)/\\)\\)*" "The regexp used to identity history modifiers." eshell-hist-rebind-keys-alist '(([(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)) "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")))] 10) (defvar eshell-history-ring nil) (defvar eshell-history-index nil) (defvar eshell-matching-input-from-input-string "") (defvar eshell-save-history-index nil) (defvar eshell-isearch-map nil) (byte-code "\204B \303 !\304\305\306#\210\304\307\306#\210\304\310\311#\210\304\312\313#\210\304\314\315#\210\304\316\317#\210\304\320\317#\210\321\302!\210\304\322\302#\210\304\n\323\324#\210\303\207" [eshell-isearch-map isearch-mode-map eshell-isearch-cancel-map copy-keymap define-key [(control 109)] eshell-isearch-return [return] [(control 114)] eshell-isearch-repeat-backward [(control 115)] eshell-isearch-repeat-forward [(control 103)] eshell-isearch-abort [backspace] eshell-isearch-delete-char [delete] define-prefix-command [(control 99)] [(control 99)] eshell-isearch-cancel] 4) #@63 Initialize the history management code for one Eshell buffer. (defalias 'eshell-hist-initialize #[nil "\306\307\310\311\312$\210\313\211 >)\203 \306\314\315\311\312$\210\316\211 >)\203O \n\204O \317\303!\210\320\f \"\317\321!\210\312\317\322!\210\312\306\323\324\311\312$\210\306\325\326\311\312$\210)\202\307 \327@\330\331#\210\327@\332\333#\210\327@\334\335#\210\327@\336\337#\210\327@\340\341#\210\327@\342\343#\210\327A\344\331#\210\327A\345\333#\210B\203\253 \327@\346\331#\210\327@\347\333#\210\327A\350\335#\210\327A\351\337#\210\202\307 \327@\352\335#\210\327@\353\337#\210\327A\354\331#\210\327A\355\333#\210\317\356!\210.\204\365 \357\360!\211C;\203\361 \361C!\211C\250\203\361 C\362V\203\361 C\202\362 \363.)\317\364!\2104\204\357\365!4\317\366!\210\317\367!\210\370\371 !\203\317\372!\210\311:\2024\317\373!\210\311;4\203-\374\311\312\"\210\306\375\376\311\312$\210;\204?\377.!;\306\375\376\311\312$\210\306\201D \201E \"\210\317\201F !\210\306\201F \201G \311\312$\210\327A\201H \201I #\210\327A\201J \201K #\207" [module eshell-modules-list eshell-non-interactive-p eshell-rebind-keys-alist rebind-alist eshell-hist-rebind-keys-alist add-hook eshell-expand-input-functions eshell-expand-history-references nil t eshell-cmpl pcomplete-try-first-hook eshell-complete-history-reference eshell-rebind make-local-variable append search-invisible search-exit-option isearch-mode-hook #[nil "`Y\205 \211\207" [eshell-last-output-end eshell-isearch-map overriding-terminal-local-map] 2] isearch-mode-end-hook #[nil "\301\211\207" [overriding-terminal-local-map nil] 2] 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 [(meta 114)] [(meta 115)] [(meta 112)] [(meta 110)] [(meta 112)] [(meta 110)] [(meta 112)] [(meta 110)] [(meta 112)] [(meta 110)] eshell-history-size getenv "HISTSIZE" string-to-number 0 128 eshell-history-file-name "HISTFILE" eshell-history-index eshell-save-history-index minibuffer-window-active-p selected-window eshell-save-history-on-exit eshell-history-ring eshell-read-history eshell-exit-hook eshell-write-history make-ring eshell-mode-map eshell-command-map eshell-hist-match-partial hsize kill-emacs-hook eshell-save-some-history eshell-input-filter-functions eshell-add-to-history [(control 108)] eshell-list-history [(control 120)] eshell-get-next-from-history] 6 (#$ . 5403)]) #@47 Save the history for any open Eshell buffers. (defalias 'eshell-save-some-history #[nil "\305 \306\211\205? @\307!\2037 rq\210\n\2036 \2036 \f\2036 \f\310=\2043 \311\312\313\314!\"!\2036 \315 \210) A\211\204 \306*\207" [buf --dolist-tail-- eshell-mode eshell-history-file-name eshell-save-history-on-exit buffer-list nil buffer-live-p t y-or-n-p format "Save input history for Eshell buffer `%s'? " buffer-name eshell-write-history] 6 (#$ . 7990)]) #@49 List in help buffer the buffer's input history. (defalias 'eshell/history #[(&rest args) "\306 \210\307!\310\311\")\312\211\211\211\211\211\211\313\314\315\316#.\207" [args temp-args ext-command last-value usage-msg append-history eshell-init-print-buffer eshell-flatten-list mapcar eshell-stringify nil eshell-do-opt "history" ((114 "read" nil read-history "read from history file to current history list") (119 "write" nil write-history "write current history list to history file") (97 "append" nil append-history "append current history list to history file") (104 "help" nil nil "display this usage message") :usage "[n] [-rwa [filename]]" :post-usage "When Eshell is started, history is read from `eshell-history-file-name'.\nThis is also the location where history info will be saved by this command,\nunless a different file is specified on the command line.") #[nil "\306!\203\f \307!\203 \310\311!\210\312\211\211\f\203. \313\314\f@\"\203. \315\f@!\316!^\fA\203D \204@ \204@ \203D \310\317!\210\f\203T \f@;\203T \f@\fA \203_ \320 !\210\202\256 \203k \321 !\210\202\256 \203x \321 \322\"\210\202\256 \312\206\202 \316!S\316!Z\323Y\203\255 \324\325\326\327!#!\210ST\202\215 ++\330 \210\312\207" [eshell-history-ring file command length args read-history ring-p ring-empty-p error "No history" nil string-match "^[0-9]+$" eshell-convert ring-length "history: extra arguments" eshell-read-history eshell-write-history t 0 eshell-buffered-print format "%5d %s\n" eshell-get-history eshell-flush write-history append-history history index ref] 6] write-history read-history] 7 (#$ . 8455)]) #@45 Put a new input line into the history ring. (defalias 'eshell-put-history #[(input &optional ring at-beginning) "\204 \n\203 \304\"\207\305\"\207" [ring eshell-history-ring at-beginning input ring-insert-at-beginning ring-insert] 3 (#$ . 10117)]) #@42 Get an input line from the history ring. (defalias 'eshell-get-history #[(index &optional ring) "\303\206 \n\"\207" [ring eshell-history-ring index ring-ref] 3 (#$ . 10379)]) #@178 Add the string INPUT to the history ring. Input is entered into the input history ring, if the value of variable `eshell-input-filter' returns non-nil when called on the input. (defalias 'eshell-add-input-to-history #[(input) " !\203\"