MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.221.20.252
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/eshell/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/eshell/em-rebind.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:52 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/em-rebind.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\302\303\304\305\306\307&\210\310\311\302\312\313\314\315\316\306\301&	\210\310\317\320\321\315\322\306\301&\210\310\323\324\325\315\326\306\301&\210\310\327\324\330\315\326\306\301&\210\310\331\324\332\315\326\306\301&\210\310\333\334\335\315\336\306\301&\207" [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 "A list of functions to call when loading `eshell-rebind'." :version "24.1" :type hook eshell-rebind-keys-alist '(([(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)) "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 t "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 "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 "If non-nil, remap input keybindings on previous prompts as well." eshell-cannot-leave-input-list '(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-point 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) "A list of commands that cannot leave the input area." (repeat function)] 10)
#@32 Initialize the inputting code.
(defalias 'eshell-rebind-initialize #[nil "?\205-\303\304\305\306\307$\210\310\311!\210\303\312\313\306\307$\210\310\314!\210\303\315\316\306\307$\210\310\301!\210\306\317\n\320\321#\207" [eshell-non-interactive-p eshell-lock-keymap eshell-command-map 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 define-key [(meta 108)] eshell-lock-local-map] 5 (#$ . 3946)])
#@126 Lock or unlock the current local keymap.
Within a prefix arg, set the local keymap to its normal value, and
lock it at that.
(defalias 'eshell-lock-local-map #[(&optional arg) "\204	\204\304\n!\210\305\306\307!\207\304!\210\310\306\311!\207" [arg 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"] 2 (#$ . 4509) "P"])
#@60 Save the location of point before the next command is run.
(defalias 'eshell-save-previous-point #[nil "`\211\207" [eshell-previous-point] 2 (#$ . 4949)])
#@44 Test whether POS is within an input range.
(defalias 'eshell-point-within-input-p #[(pos) "\304	\nY\203\f\n\206.\205.\212\305 \210n?\205`)\211\205.	Y\205.	\306 X\205.)\207" [begin pos eshell-last-output-end eshell-remap-previous-input nil eshell-bol line-end-position] 2 (#$ . 5111)])
(put 'eshell-point-within-input-p 'byte-optimizer 'byte-compile-inline-expand)
#@62 Rebind the input keymap based on the location of the cursor.
(defalias 'eshell-rebind-input-map #[nil "\300\301\302\217\207" [nil (byte-code "?\205\241`\306	Y\203\2065\f\2055\212\307 \210n?\205!`)\211\2055	\nY\2055	\310 X\2055\n*\203=\311
!\207\306\f\203\234
\306	Y\203S\206u\f\205u\212\307 \210n?\205a`)\211\205u	\nY\205u	\310 X\205u\n*\211\203\234>\203\234\311
!\210\nb\210\205\240\312=?\205\240\313 \202\240\311!)\207" [eshell-lock-keymap pos begin eshell-last-output-end eshell-remap-previous-input eshell-input-keymap nil eshell-bol line-end-position use-local-map kill-region beep eshell-confine-point-to-input eshell-previous-point this-command eshell-cannot-leave-input-list eshell-error-if-move-away eshell-mode-map] 2) ((error))] 3 (#$ . 5494)])
#@57 Setup the input keymap to be used during input editing.
(defalias 'eshell-setup-input-keymap #[nil "\305\300!\210\306 \307	\"\210\n\211\205*\310\211@@)\211@A)#\210A\211\204\311)\207" [eshell-input-keymap eshell-mode-map eshell-rebind-keys-alist bindings x make-local-variable make-sparse-keymap set-keymap-parent define-key nil] 5 (#$ . 6304)])
#@60 Delete the last character, unless it's part of the output.
(defalias 'eshell-delete-backward-char #[(n &optional killflag) "\306!`	Z\307\n\fY\203\f\2066
\2056\212\310 \210n?\205\"`)\211\2056\nY\2056\n\311 X\2056*\203A\312	\"\202C\313 )\207" [n count pos begin eshell-last-output-end eshell-remap-previous-input prefix-numeric-value nil eshell-bol line-end-position delete-backward-char beep] 3 (#$ . 6668) "P"])
#@139 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.
(defalias 'eshell-delchar-or-maybe-eof #[(arg) "m\203`\nU\204\304 \202#	\203\305 \202#\306 \202#\307[!)\207" [eshell-last-async-proc proc eshell-last-output-end arg beep process-send-eof eshell-life-is-too-much eshell-delete-backward-char] 2 (#$ . 7105) "p"])
(provide 'em-rebind)

MMCT - 2023