403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/eshell/em-rebind.elc
;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<\314\"\210\315\316!\203^\302 \203P\211\302 \232\203^\317\320\203Z\321\202[\322\323#\210\210\324 \210\207" [eshell-rebind-mode local-minor-modes current-message toggle 1 nil t boundp delq run-hooks eshell-rebind-mode-hook eshell-rebind-mode-on-hook eshell-rebind-mode-off-hook called-interactively-p any message "Eshell-Rebind mode %sabled%s" "en" "dis" " in current buffer" force-mode-line-update] 6 (#$ . 4065) (byte-code "\203\n\301!\202\302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar eshell-rebind-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\310\211%\207" [eshell-rebind-mode-map eshell-rebind-mode-hook variable-documentation put "Hook run after entering or leaving `eshell-rebind-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode eshell-rebind-mode] 6)
#@32 Initialize the inputting code.
(defalias 'eshell-rebind-initialize #[0 "?\205*\302\303\304\305\306$\210\307\310!\210\302\311\312\305\306$\210\307\313!\210\302\314\315\305\306$\210\307\301!\210\305\316 \207" [eshell-non-interactive-p eshell-lock-keymap add-hook eshell-mode-hook eshell-setup-input-keymap nil t make-local-variable eshell-previous-point pre-command-hook eshell-save-previous-point overriding-local-map post-command-hook eshell-rebind-input-map eshell-rebind-mode] 5 (#$ . 5874)])
#@142 Lock or unlock the current local keymap.
With prefix ARG, set the local keymap to its normal value, and
lock it at that.

(fn &optional ARG)
(defalias 'eshell-lock-local-map #[256 "\211\204\204\303	!\210\304\305\306!\207\303\n!\210\307\305\310!\207" [eshell-lock-keymap eshell-mode-map eshell-input-keymap use-local-map t message "Local keymap locked in normal mode" nil "Local keymap unlocked: obey context"] 3 (#$ . 6379) "P"])
#@60 Save the location of point before the next command is run.
(defalias 'eshell-save-previous-point #[0 "`\211\207" [eshell-previous-point] 2 (#$ . 6822)])
#@54 Test whether POS is within an input range.

(fn POS)
(defalias 'eshell-point-within-input-p #[257 "\302Y\203\206.	\205.\212\303 \210n?\205`)\211\262\205.Y\205.\304 X\205.\211\207" [eshell-last-output-end eshell-remap-previous-input nil eshell-bol line-end-position] 4 (#$ . 6982)])
(byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put eshell-point-within-input-p speed -1 put byte-optimizer byte-compile-inline-expand] 5)
#@62 Rebind the input keymap based on the location of the cursor.
(defalias 'eshell-rebind-input-map #[0 "\3061\250?\205\246`\307	Y\203	\2068\n\2058\212\310 \210n?\205#`)\211\262\2058Y\2058\311 X\2058\211\266\202\203C\312!\202\246\307\f\203\240
\307	Y\203T	\206w\n\205w\212\310 \210n?\205b`)\211\262\205wY\205w\311 X\205w\211\266\202\211\262\203\240
>\203\240\312!\210\211b\210\205\244
\313=?\205\244\314 \202\244\312!\2620\207\210\307\207" [eshell-lock-keymap eshell-last-output-end eshell-remap-previous-input eshell-input-keymap eshell-confine-point-to-input eshell-previous-point (error) nil eshell-bol line-end-position use-local-map kill-region beep this-command eshell-cannot-leave-input-list eshell-error-if-move-away eshell-mode-map] 5 (#$ . 7439)])
#@57 Setup the input keymap to be used during input editing.
(defalias 'eshell-setup-input-keymap #[0 "\303\300!\210\304 \305	\"\210\n\211\205\"\306@@@A#\210\211A\262\202
\207" [eshell-input-keymap eshell-mode-map eshell-rebind-keys-alist make-local-variable make-sparse-keymap set-keymap-parent define-key] 5 (#$ . 8247)])
#@68 Delete the last character, unless it's part of the output.

(fn N)
(defalias 'eshell-delete-backward-char #[257 "\302!`Z\303Y\203\2064	\2054\212\304 \210n?\205`)\211\262\2054Y\2054\305 X\2054\211\266\202\203?\306[\"\207\307 \207" [eshell-last-output-end eshell-remap-previous-input prefix-numeric-value nil eshell-bol line-end-position delete-char beep] 6 (#$ . 8580) "P"])
#@149 Delete ARG characters forward or send an EOF to subprocess.
Sends an EOF only if point is at the end of the buffer and there is no
input.

(fn ARG)
(defalias 'eshell-delchar-or-maybe-eof #[257 "m\203`	U\204\302 \207\211\203\303 \207\304 \207\305[!\207" [eshell-last-async-proc eshell-last-output-end beep process-send-eof eshell-life-is-too-much eshell-delete-backward-char] 4 (#$ . 8982) "p"])
(provide 'em-rebind)

Youez - 2016 - github.com/yon3zu
LinuXploit