| 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\302\303\304\305\306\307\310\311&\210\312\313\314\315\316DD\317\320\321\322\323\310\303& \210\312\324\314\315\325DD\326\322\327\310\303&\210\312\330\314\315\331DD\332\322\333\310\303&\210\312\334\314\315\335DD\336\322\333\310\303&\210\312\337\314\315\340DD\341\322\333\310\303&\210\312\342\314\315\343DD\344\322\345\310\303&\207" [require esh-mode custom-declare-group eshell-rebind nil "This module allows for special keybindings that only take effect\nwhile the point is in a region of input text. By default, it binds\nC-a to move to the beginning of the input text (rather than just the\nbeginning of the line), and C-p and C-n to move through the input\nhistory, C-u kills the current input text, etc. It also, if\n`eshell-confine-point-to-input' is non-nil, does not allow certain\ncommands to cause the point to leave the input area, such as\n`backward-word', `previous-line', etc. This module intends to mimic\nthe behavior of normal shells while the user editing new input text." :tag "Rebind keys at input" :group eshell-module custom-declare-variable eshell-rebind-load-hook funcall function #[0 "\300\207" [nil] 1 #1=""] "A list of functions to call when loading `eshell-rebind'." :version "24.1" :type hook eshell-rebind-keys-alist #[0 "\300\207" [(([(control 97)] . eshell-bol) ([home] . eshell-bol) ([(control 100)] . eshell-delchar-or-maybe-eof) ([backspace] . eshell-delete-backward-char) ([delete] . eshell-delete-backward-char) ([(control 119)] . backward-kill-word) ([(control 117)] . eshell-kill-input))] 1 #1#] "Bind some keys differently if point is in input text." (repeat (cons (vector :tag "Keys to bind" (repeat :inline t sexp)) (function :tag "Command"))) eshell-confine-point-to-input #[0 "\300\207" [t] 1 #1#] "If non-nil, do not allow the point to leave the current input.\nThis is more difficult to do nicely in Emacs than one might think.\nBasically, the `point-left' attribute is added to the input text, and\na function is placed on that hook to take the point back to\n`eshell-last-output-end' every time the user tries to move away. But\nsince there are many cases in which the point _ought_ to move away\n(for programmatic reasons), the variable\n`eshell-cannot-leave-input-list' defines commands which are affected\nfrom this rule. However, this list is by no means as complete as it\nprobably should be, so basically all one can hope for is that other\npeople will left the point alone in the Eshell buffer. Sigh." boolean eshell-error-if-move-away #[0 "\300\207" [t] 1 #1#] "If non-nil, consider it an error to try to move outside current input.\nThis is default behavior of shells like bash." eshell-remap-previous-input #[0 "\300\207" [t] 1 #1#] "If non-nil, remap input keybindings on previous prompts as well." eshell-cannot-leave-input-list #[0 "\300\207" [(beginning-of-line-text beginning-of-line move-to-column move-to-left-margin move-to-tab-stop forward-char backward-char delete-char delete-backward-char backward-delete-char backward-delete-char-untabify kill-paragraph backward-kill-paragraph kill-sentence backward-kill-sentence kill-sexp backward-kill-sexp kill-word backward-kill-word kill-region forward-list backward-list forward-page backward-page forward-paragraph backward-paragraph backward-prefix-chars forward-sentence backward-sentence forward-sexp backward-sexp forward-to-indentation backward-to-indentation backward-up-list forward-word backward-word forward-line previous-line next-line forward-visible-line forward-comment forward-thing)] 1 #1#] "A list of commands that cannot leave the input area." (repeat function)] 10)
(defvar eshell-rebind-mode-map (byte-code "\300 \301\302\303#\210\207" [make-sparse-keymap define-key [3 134217836] eshell-lock-local-map] 5))
#@105 Non-nil if Eshell-Rebind mode is enabled.
Use the command `eshell-rebind-mode' to change this variable.
(defvar eshell-rebind-mode nil (#$ . 3861))
(make-variable-buffer-local 'eshell-rebind-mode)
#@630 Minor mode for the eshell-rebind module.
This is a minor mode. If called interactively, toggle the
`Eshell-Rebind 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-rebind-mode'.
The mode's hook is called both when the mode is enabled and when it is
disabled.
\{eshell-rebind-mode-map}
(fn &optional ARG)
(defalias 'eshell-rebind-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<