Server IP : 111.118.215.189 / Your IP : 3.131.85.46 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/emulation/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:59 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emulation/edt.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\303\304\305\306\307\310\311\312&\207" [require ehelp picture custom-declare-group edt nil "Emacs emulating EDT." :prefix "edt-" :group emulations] 8) #@31 EDT Emulation version number. (defconst edt-version "4.0" (#$ . 746)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\304\305\306\307&\210\300\312\313\314\304\315\306\307&\210\300\316\317\320\304\321\306\307&\210\300\322\323\324\304\321\306\307&\207" [custom-declare-variable edt-keep-current-page-delimiter nil "Emacs MUST be restarted for a change in value to take effect!\nNon-nil leaves Emacs value of `page-delimiter' unchanged within EDT\nEmulation. If set to nil (the default), the `page-delimiter' variable\nis set to \"\\f\" when edt-emulation-on is first invoked. This\nsetting replicates EDT's page delimiter behavior. The original value\nis restored when edt-emulation-off is called." :type boolean :group edt edt-use-EDT-control-key-bindings "Emacs MUST be restarted for a change in value to take effect!\nNon-nil causes the control key bindings to be replaced with EDT\nbindings. If set to nil (the default), EDT control key bindings are\nnot used and the current Emacs control key bindings are retained for\nuse within the EDT emulation." edt-word-entities '(9) "Specifies the list of EDT word entity characters.\nThe default list, (?\\t), contains just the TAB character, which\nemulates EDT. Characters are specified in the list using their\ndecimal ASCII values. A question mark, followed by the actual\ncharacter, can be used to indicate the numerical value of the\ncharacter, instead of the actual decimal value. So, ?A means the\nnumerical value for the letter A, ?/ means the numerical value for /,\netc. Several unprintable and special characters have special\nrepresentations, which you can also use:\n\n ?\\b specifies BS, C-h\n ?\\t specifies TAB, C-i\n ?\\n specifies LFD, C-j\n ?\\v specifies VTAB, C-k\n ?\\f specifies FF, C-l\n ?\\r specifies CR, C-m\n ?\\e specifies ESC, C-[\n ?\\\\ specifies \\\n\nIn EDT Emulation movement-by-word commands, each character in the list\nwill be treated as if it were a separate word." (repeat integer) edt-top-scroll-margin 10 "Scroll margin at the top of the screen.\nInterpreted as a percent of the current window size with a default\nsetting of 10%. If set to 0, top scroll margin is disabled." integer edt-bottom-scroll-margin 15 "Scroll margin at the bottom of the screen.\nInterpreted as a percent of the current window size with a default\nsetting of 15%. If set to 0, bottom scroll margin is disabled."] 8) #@55 Last text deleted by the EDT emulation DEL L command. (defvar edt-last-deleted-lines "" (#$ . 3270)) #@55 Last text deleted by the EDT emulation DEL W command. (defvar edt-last-deleted-words "" (#$ . 3377)) #@55 Last text deleted by the EDT emulation DEL C command. (defvar edt-last-deleted-chars "" (#$ . 3484)) #@52 Last text found by the EDT emulation FIND command. (defvar edt-find-last-text "" (#$ . 3591)) #@52 Used internally by the EDT emulation SUBS command. (defvar edt-match-beginning-mark (make-marker) (#$ . 3691)) #@52 Used internally by the EDT emulation SUBS command. (defvar edt-match-end-mark (make-marker) (#$ . 3808)) #@71 Key definition replaced with `edt-define-key' or `edt-learn' command. (defvar edt-last-replaced-key-definition nil (#$ . 3919)) #@50 String indicating current direction of movement. (defvar edt-direction-string "" (#$ . 4053)) #@38 Non-nil means select mode is active. (defvar edt-select-mode nil (#$ . 4153)) #@131 Text displayed in mode line to indicate the state of EDT select mode. When select mode is inactive, it is set to an empty string. (defvar edt-select-mode-current "" (#$ . 4238)) #@54 Used in mode line to indicate select mode is active. (defconst edt-select-mode-string " Select" (#$ . 4422)) #@61 Direction string in mode line to indicate forward movement. (defconst edt-forward-string " ADVANCE" (#$ . 4537)) #@62 Direction string in mode line to indicate backward movement. (defconst edt-backward-string " BACKUP" (#$ . 4656)) #@122 Non-nil indicates that default EDT emulation key bindings are active. nil means user-defined custom bindings are active. (defvar edt-default-map-active nil (#$ . 4778)) #@142 Non-nil indicates that user custom EDT key bindings are configured. This means that an edt-user.el file was found in the user's `load-path'. (defvar edt-user-map-configured nil (#$ . 4954)) #@45 Specifies the terminal type, if applicable. (defvar edt-term nil (#$ . 5150)) #@66 Indicates Emacs variant: GNU Emacs or XEmacs (aka Lucid Emacs). (defconst edt-emacs-variant "gnu" (#$ . 5234)) #@69 Indicates window system (in GNU Emacs) or console type (in XEmacs). (defconst edt-window-system window-system (#$ . 5352)) #@48 Indicates X server vendor name, if applicable. (defconst edt-xserver (byte-code "\301=\205\f \302\303\304\305 #\207" [edt-window-system x replace-regexp-in-string "[ /]" "-" x-server-vendor] 4) (#$ . 5481)) #@77 User's custom keypad and function keys mappings to emulate LK-201 keyboard. (defvar edt-keys-file nil (#$ . 5695)) #@33 Last word that the user copied. (defvar edt-last-copied-word nil (#$ . 5816)) #@104 Move forward to just after next page delimiter. Argument NUM is the number of page delimiters to move. (defalias 'edt-page-forward #[(num) "\301!\210m\203\f \302\303!\207\304!\210m\203 \305 \207\306 \207" [num edt-check-prefix error "End of buffer" forward-page edt-line-to-bottom-of-window edt-line-to-top-of-window] 2 (#$ . 5901) "p"]) #@109 Move backward to just after previous page delimiter. Argument NUM is the number of page delimiters to move. (defalias 'edt-page-backward #[(num) "\301!\210o\203\f \302\303!\207\304!\210\305 \210\306\207" [num edt-check-prefix error "Beginning of buffer" backward-page edt-line-to-top-of-window nil] 2 (#$ . 6249) "p"]) #@106 Move in current direction to next page delimiter. Argument NUM is the number of page delimiters to move. (defalias 'edt-page #[(num) " \232\203\n \303\n!\207\304\n!\207" [edt-direction-string edt-forward-string num edt-page-forward edt-page-backward] 2 (#$ . 6577) "p"]) #@111 Move cursor forward two-thirds of a window's number of lines. Argument NUM is the number of sections to move. (defalias 'edt-sect-forward #[(num) "\301!\210\302\303 S\304\245\305__!\207" [num edt-check-prefix edt-line-forward window-height 3 2] 3 (#$ . 6856) "p"]) #@94 Move cursor backward two-thirds of a window. Argument NUM is the number of sections to move. (defalias 'edt-sect-backward #[(num) "\301!\210\302\303 S\304\245\305__!\207" [num edt-check-prefix edt-line-backward window-height 3 2] 3 (#$ . 7129) "p"]) #@90 Move in current direction a full window. Argument NUM is the number of sections to move. (defalias 'edt-sect #[(num) " \232\203\n \303\n!\207\304\n!\207" [edt-direction-string edt-forward-string num edt-sect-forward edt-sect-backward] 2 (#$ . 7387) "p"]) #@96 Move backward to next beginning of line mark. Argument NUM is the number of BOL marks to move. (defalias 'edt-beginning-of-line #[(num) "\302!\210\303 n\203 [y\210\202 S\211[y\210\304 \"\210)\305\207" [num beg edt-check-prefix edt-current-line edt-top-check nil] 4 (#$ . 7649) "p"]) #@89 Move forward to next end of line mark. Argument NUM is the number of EOL marks to move. (defalias 'edt-end-of-line-forward #[(num) "\302!\210\303 \304u\210\210\305 \"\210)\304\207" [num beg edt-check-prefix edt-current-line nil edt-bottom-check] 3 (#$ . 7946) "p"]) #@90 Move backward to next end of line mark. Argument NUM is the number of EOL marks to move. (defalias 'edt-end-of-line-backward #[(num) "\302!\210\303 S\210\304 \"\210)\305\207" [num beg edt-check-prefix edt-current-line edt-top-check nil] 3 (#$ . 8223) "p"]) #@102 Move in current direction to next end of line mark. Argument NUM is the number of EOL marks to move. (defalias 'edt-end-of-line #[(num) " \232\203\n \303\n!\207\304\n!\207" [edt-direction-string edt-forward-string num edt-end-of-line-forward edt-end-of-line-backward] 2 (#$ . 8492) "p"]) #@47 Move forward to first character of next word. (defalias 'edt-one-word-forward #[nil "m\203 \301\302!\210l\203 \303u\210\202T g>\203 \303u\210\2029 l\2049 m\2049 gz\304=\2049 g>\2049 \303u\210\202 l\204T m\204T gz\304=\203T g>\204T \303u\210\2029 \303\207" [edt-word-entities error "End of buffer" nil 32] 2 (#$ . 8787) nil]) #@52 Move backward to first character of previous word. (defalias 'edt-one-word-backward #[nil "o\203 \301\302!\210n\203 \303u\210\202Q \303u\210n\2040 o\2040 gz\304=\2030 g>\2040 \303u\210\202 g>\204Q n\204Q o\204Q hz\304=\204Q h>\204Q \303u\210\2026 \305\207" [edt-word-entities error "Beginning of buffer" -1 32 nil] 2 (#$ . 9125) nil]) #@92 Move forward to first character of next word. Argument NUM is the number of words to move. (defalias 'edt-word-forward #[(num) "\301!\210\302V\205 \303 \210S\211\202 \207" [num edt-check-prefix 0 edt-one-word-forward] 3 (#$ . 9472) "p"]) #@97 Move backward to first character of previous word. Argument NUM is the number of words to move. (defalias 'edt-word-backward #[(num) "\301!\210\302V\205 \303 \210S\211\202 \207" [num edt-check-prefix 0 edt-one-word-backward] 3 (#$ . 9722) "p"]) #@105 Move in current direction to first character of next word. Argument NUM is the number of words to move. (defalias 'edt-word #[(num) " \232\203\n \303\n!\207\304\n!\207" [edt-direction-string edt-forward-string num edt-word-forward edt-word-backward] 2 (#$ . 9980) "p"]) #@96 Move in current direction to next character. Argument NUM is the number of characters to move. (defalias 'edt-character #[(num) "\303!\210 \n\232\203 u\210\202 [u\210\304\207" [num edt-direction-string edt-forward-string edt-check-prefix nil] 2 (#$ . 10257) "p"]) #@96 Move backward to next beginning of line mark. Argument NUM is the number of BOL marks to move. (defalias 'edt-line-backward #[(num) "\301!\207" [num edt-beginning-of-line] 2 (#$ . 10532) "p"]) #@95 Move forward to next beginning of line mark. Argument NUM is the number of BOL marks to move. (defalias 'edt-line-forward #[(num) "\302!\210\303 y\210\304 \"\210)\305\207" [num beg edt-check-prefix edt-current-line edt-bottom-check nil] 3 (#$ . 10732) "p"]) #@108 Move in current direction to next beginning of line mark. Argument NUM is the number of BOL marks to move. (defalias 'edt-line #[(num) " \232\203\n \303\n!\207\304\n!\207" [edt-direction-string edt-forward-string num edt-line-forward edt-line-backward] 2 (#$ . 11001) "p"]) #@73 Move cursor down one line. Argument NUM is the number of lines to move. (defalias 'edt-next-line #[(num) "\302!\210\303 \304!\210\305 \"\210)\306\207" [num beg edt-check-prefix edt-current-line next-line edt-bottom-check nil] 3 (#$ . 11282) "p"]) #@71 Move cursor up one line. Argument NUM is the number of lines to move. (defalias 'edt-previous-line #[(num) "\302!\210\303 \304!\210\305 \"\210)\306\207" [num beg edt-check-prefix edt-current-line previous-line edt-top-check nil] 3 (#$ . 11539) "p"]) #@41 Move cursor to the beginning of buffer. (defalias 'edt-top #[nil "eb\210\300\207" [nil] 1 (#$ . 11799) nil]) #@35 Move cursor to the end of buffer. (defalias 'edt-bottom #[nil "db\210\300 \207" [edt-line-to-bottom-of-window] 1 (#$ . 11914) nil]) #@58 Execute BODY with some position-related variables bound. (defalias 'edt-with-position '(macro . #[(&rest body) "\301\302BB\207" [body let* ((left nil) (beg (edt-current-line)) (height (window-height)) (top-percent (if (zerop edt-top-scroll-margin) 10 edt-top-scroll-margin)) (bottom-percent (if (zerop edt-bottom-scroll-margin) 15 edt-bottom-scroll-margin)) (top-margin (/ (* height top-percent) 100)) (bottom-up-margin (1+ (/ (* height bottom-percent) 100))) (bottom-margin (max beg (- height bottom-up-margin 1))) (top (save-excursion (move-to-window-line top-margin) (point))) (bottom (save-excursion (move-to-window-line bottom-margin) (point))) (far (save-excursion (goto-char bottom) (point-at-bol (1- height)))))] 3 (#$ . 12052)])) #@141 Find first occurrence of a string in forward direction and save it. Optional argument FIND is t is this function is called from `edt-find'. (defalias 'edt-find-forward #[(&optional find) "\204 \306\307!\310\311 \312 \313 !\203 \314\202 \313!\203( \315\202* \f_\316\245\f_\316\245T\317\f\320#]\212\321!\210`)\212\321!\210`)\212b\210\322\fS!)\323 !\203\244 \324 !\210\325 \210`V\203\230 \313\212\fy)\211!\203\216 \326!\210\202\244 \326\nZ!\210\202\244 `V\203\244 \326!\210.\310\207" [find edt-find-last-text left beg height edt-top-scroll-margin read-string "Search forward: " nil edt-current-line window-height zerop 10 15 100 - 1 move-to-window-line point-at-bol search-forward search-backward edt-set-match recenter top-percent edt-bottom-scroll-margin bottom-percent top-margin bottom-up-margin bottom-margin top bottom far] 5 (#$ . 12799) nil]) #@146 Find first occurrence of a string in the backward direction and save it. Optional argument FIND is t if this function is called from `edt-find'. (defalias 'edt-find-backward #[(&optional find) "\204 \306\307!\310\311 \312 \313 !\203 \314\202 \313!\203( \315\202* \f_\316\245\f_\316\245T\317\f\320#]\212\321!\210`)\212\321!\210`)\212b\210\322\fS!)\323 !\203p \324 \210`W\203~ \325^!\210.\310\207" [find edt-find-last-text left beg height edt-top-scroll-margin read-string "Search backward: " nil edt-current-line window-height zerop 10 15 100 - 1 move-to-window-line point-at-bol search-backward edt-set-match recenter top-percent edt-bottom-scroll-margin bottom-percent top-margin bottom-up-margin bottom-margin top bottom far] 5 (#$ . 13708) nil]) #@67 Find first occurrence of string in current direction and save it. (defalias 'edt-find #[nil "\303\304! \n\232\203 \305\306!\207\307\306!\207" [edt-find-last-text edt-direction-string edt-forward-string read-string "Search: " edt-find-forward t edt-find-backward] 2 (#$ . 14511) nil]) #@56 Find next occurrence of a string in forward direction. (defalias 'edt-find-next-forward #[nil "\306\307 \310 \311!\203 \312\202 \311 !\203 \313\202 \n\f_\314\245\n_\314\245T \315\n\316#]\212\317!\210`)\212\317!\210`)\212b\210\320\nS!)\316u\210\321 \306\322#\203\242 \323 !\210\324 \210`V\203\223 \311\212\ny)\211!\203\211 \325!\210\202\253 \325Z!\210\202\253 `V\203\253 \325!\210\202\253 \326u\210\327\330 \"\210.\306\207" [left beg height edt-top-scroll-margin top-percent edt-bottom-scroll-margin nil edt-current-line window-height zerop 10 15 100 - 1 move-to-window-line point-at-bol search-forward t search-backward edt-set-match recenter -1 error "Search failed: \"%s\"" bottom-percent top-margin bottom-up-margin bottom-margin top bottom far edt-find-last-text] 5 (#$ . 14803) nil]) #@57 Find next occurrence of a string in backward direction. (defalias 'edt-find-next-backward #[nil "\306\307 \310 \311!\203 \312\202 \311 !\203 \313\202 \n\f_\314\245\n_\314\245T \315\n\316#]\212\317!\210`)\212\317!\210`)\212b\210\320\nS!)\321\306\322#\204m \323\324\"\210\202~ \325 \210`W\203~ \326 ^!\210.\306\207" [left beg height edt-top-scroll-margin top-percent edt-bottom-scroll-margin nil edt-current-line window-height zerop 10 15 100 - 1 move-to-window-line point-at-bol search-backward t error "Search failed: \"%s\"" edt-set-match recenter bottom-percent top-margin bottom-up-margin bottom-margin top bottom far edt-find-last-text] 5 (#$ . 15649) nil]) #@56 Find next occurrence of a string in current direction. (defalias 'edt-find-next #[nil " \232\203 \302 \207\303 \207" [edt-direction-string edt-forward-string edt-find-next-forward edt-find-next-backward] 2 (#$ . 16361) nil]) #@48 Append this kill region to last killed region. (defalias 'edt-append #[nil "\300 \210\301 \210\302\303 `\"\210\304\305!\207" [edt-check-selection append-next-kill kill-region mark message "Selected text APPENDED to kill ring"] 3 (#$ . 16594) "*"]) #@109 Delete from cursor up to and including the end of line mark. Argument NUM is the number of lines to delete. (defalias 'edt-delete-line #[(num) "\303!\210`y\210h\304=\204 \305c\210 `{ `|)\207" [num beg edt-last-deleted-lines edt-check-prefix 10 "\n"] 2 (#$ . 16849) "*p"]) #@109 Delete from cursor up to but excluding the end of line mark. Argument NUM is the number of lines to delete. (defalias 'edt-delete-to-end-of-line #[(num) "\303!\210`\304u\210\210 `{ `|)\207" [num beg edt-last-deleted-lines edt-check-prefix 1] 2 (#$ . 17133) "*p"]) #@123 Turn EDT select mode off if ARG is nil; otherwise, turn EDT select mode on. In select mode, selected text is highlighted. (defalias 'edt-select-mode #[(arg) "\203 \303\301!\210\304\305 \202 \306\301!\210\307 \207" [arg edt-select-mode rect-start-point make-local-variable edt-select-mode-current window-point kill-local-variable force-mode-line-update] 2 (#$ . 17409)]) #@46 Set mark at cursor and start text selection. (defalias 'edt-select #[nil "\300\301!\207" [set-mark-command nil] 2 (#$ . 17790) nil]) #@24 Cancel text selection. (defalias 'edt-reset #[nil "\305 \204\n \205{ \n\306=\203 \242\306=\202 \n\203P \307 \203P \310 \203P \2033 \311\312\"\210\305\202P \313 \314 U\204P \315\312!\204G \316\312!\204P \311\312\313 \314 {\"\210\204l \317=\204f \242\306=\203l A\204l \305\211\202{ \242\306=\203v A\305\320\321!)\207" [force transient-mark-mode select-active-regions saved-region-selection mark-active nil only region-active-p display-selections-p x-set-selection PRIMARY region-beginning region-end x-selection-owner-p x-selection-exists-p lambda run-hooks deactivate-mark-hook] 4 (#$ . 17929) nil]) #@48 Deletes selected text but copies to kill ring. (defalias 'edt-cut #[nil "\300 \210\301\302 `\"\210\303\304!\207" [edt-check-selection kill-region mark message "Selected text CUT to kill ring"] 3 (#$ . 18551) "*"]) #@89 Delete from cursor to beginning of line. Argument NUM is the number of lines to delete. (defalias 'edt-delete-to-beginning-of-line #[(num) "\303!\210`\304!\210` { `|)\207" [num beg edt-last-deleted-lines edt-check-prefix edt-beginning-of-line] 2 (#$ . 18771) "*p"]) #@117 Delete from cursor up to but excluding first character of next word. Argument NUM is the number of words to delete. (defalias 'edt-delete-word #[(num) "\303!\210`\304!\210 `{ `|)\207" [num beg edt-last-deleted-words edt-check-prefix edt-word-forward] 2 (#$ . 19048) "*p"]) #@89 Delete from cursor to beginning of word. Argument NUM is the number of words to delete. (defalias 'edt-delete-to-beginning-of-word #[(num) "\303!\210`\304!\210` { `|)\207" [num beg edt-last-deleted-words edt-check-prefix edt-word-backward] 2 (#$ . 19331) "*p"]) #@84 Delete character under cursor. Argument NUM is the number of characters to delete. (defalias 'edt-delete-character #[(num) "\302!\210`d`\\^{`d`\\^|\207" [num edt-last-deleted-chars edt-check-prefix] 4 (#$ . 19603) "*p"]) #@90 Delete character in front of cursor. Argument NUM is the number of characters to delete. (defalias 'edt-delete-previous-character #[(num) "\302!\210e`Z]`{e`Z]`|\207" [num edt-last-deleted-chars edt-check-prefix] 3 (#$ . 19834) "*p"]) #@36 Undelete previous deleted line(s). (defalias 'edt-undelete-line #[nil "\301\302!\210c\210\303\302!\207" [edt-last-deleted-lines point-to-register 1 register-to-point] 2 (#$ . 20078) "*"]) #@36 Undelete previous deleted word(s). (defalias 'edt-undelete-word #[nil "\301\302!\210c\210\303\302!\207" [edt-last-deleted-words point-to-register 1 register-to-point] 2 (#$ . 20273) "*"]) #@41 Undelete previous deleted character(s). (defalias 'edt-undelete-character #[nil "\301\302!\210c\210\303\302!\207" [edt-last-deleted-chars point-to-register 1 register-to-point] 2 (#$ . 20468) "*"]) #@53 Replace marked section with last CUT (killed) text. (defalias 'edt-replace #[nil "\302 \203\n \303@!\207\304 \210`\304 \210 `|\210)\305 \207" [kill-ring-yank-pointer beg edt-check-match replace-match exchange-point-and-mark yank] 2 (#$ . 20673) "*"]) #@331 Replace the selected region with the contents of the CUT buffer and. Repeat the most recent FIND command. (The Emacs kill ring is used as the CUT buffer.) Argument NUM is the repeat count. A positive value indicates the of times to repeat the substitution. A negative argument means replace all occurrences of the search text. (defalias 'edt-substitute #[(num) "\204 \302 \203'