?
Current Path : /usr/share/emacs/24.3/lisp/ |
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/ielm.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:22 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ielm.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%\210\311\312\313\314\315\316\307\304&\210\311\317\313\320\315\316\307\304\321\322& \210\311\323\324\325\315\326\307\304&\207" [require comint pp custom-declare-group ielm nil "Interaction mode for Emacs Lisp." :group lisp custom-declare-variable ielm-noisy t "If non-nil, IELM will beep on error." :type boolean ielm-prompt-read-only "If non-nil, the IELM prompt is read only.\nThe read only region includes the newline before the prompt.\nSetting this variable does not affect existing IELM runs.\nThis works by setting the buffer-local value of `comint-prompt-read-only'.\nSetting that value directly affects new prompts in the current buffer.\n\nIf this option is enabled, then the safe way to temporarily\noverride the read-only-ness of IELM prompts is to call\n`comint-kill-whole-line' or `comint-kill-region' with no\nnarrowing in effect. This way you will be certain that none of\nthe remaining prompts will be accidentally messed up. You may\nwish to put something like the following in your init file:\n\n(add-hook 'ielm-mode-hook\n (lambda ()\n (define-key ielm-map \"\\C-w\" 'comint-kill-region)\n (define-key ielm-map [C-S-backspace]\n 'comint-kill-whole-line)))\n\nIf you set `comint-prompt-read-only' to t, you might wish to use\n`comint-mode-hook' and `comint-mode-map' instead of\n`ielm-mode-hook' and `ielm-map'. That will affect all comint\nbuffers, including IELM buffers. If you sometimes use IELM on\ntext-only terminals or with `emacs -nw', you might wish to use\nanother binding for `comint-kill-whole-line'." :version "22.1" ielm-prompt "ELISP> " "Prompt used in IELM.\nSetting this variable does not affect existing IELM runs.\n\nInterrupting the IELM process with \\<ielm-map>\\[comint-interrupt-subjob],\nand then restarting it using \\[ielm], makes the then current\ndefault value affect _new_ prompts. Unless the new prompt\ndiffers only in text properties from the old one, IELM will no\nlonger recognize the old prompts. However, executing \\[ielm]\ndoes not update the prompt of an *ielm* buffer with a running process.\nFor IELM buffers that are not called `*ielm*', you can execute\n\\[inferior-emacs-lisp-mode] in that IELM buffer to update the value,\nfor new prompts. This works even if the buffer has a running process." string] 10) #@213 Stored value of `ielm-prompt' in the current IELM buffer. This is an internal variable used by IELM. Its purpose is to prevent a running IELM process from being messed up when the user customizes `ielm-prompt'. (defvar ielm-prompt-internal "ELISP> " (#$ . 2910)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\304\305\306\307&\210\300\312\313\314\315\316\304\317\306\307& \210\320\321\312\"\207" [custom-declare-variable ielm-dynamic-return t "Controls whether \\<ielm-map>\\[ielm-return] has intelligent behavior in IELM.\nIf non-nil, \\[ielm-return] evaluates input for complete sexps, or inserts a newline\nand indents for incomplete sexps. If nil, always inserts newlines." :type boolean :group ielm ielm-dynamic-multiline-inputs "Force multiline inputs to start from column zero?\nIf non-nil, after entering the first line of an incomplete sexp, a newline\nwill be inserted after the prompt, moving the input to the next line.\nThis gives more frame width for large indented sexps, and allows functions\nsuch as `edebug-defun' to work with such inputs." ielm-mode-hook nil "Hooks to be run when IELM (`inferior-emacs-lisp-mode') is started." :options (turn-on-eldoc-mode) hook defvaralias inferior-emacs-lisp-mode-hook] 10) #@38 Most recent value evaluated in IELM. (defvar * nil (#$ . 4168)) #@45 Second-most-recent value evaluated in IELM. (defvar ** nil (#$ . 4238)) #@44 Third-most-recent value evaluated in IELM. (defvar *** nil (#$ . 4316)) #@46 Match data saved at the end of last command. (defvar ielm-match-data nil (#$ . 4394)) #@322 During IELM evaluation, most recent value evaluated in IELM. Normally identical to `*'. However, if the working buffer is an IELM buffer, distinct from the process buffer, then `*' gives the value in the working buffer, `*1' the value in the process buffer. The intended value is only accessible during IELM evaluation. (defvar *1 nil (#$ . 4487)) #@331 During IELM evaluation, second-most-recent value evaluated in IELM. Normally identical to `**'. However, if the working buffer is an IELM buffer, distinct from the process buffer, then `**' gives the value in the working buffer, `*2' the value in the process buffer. The intended value is only accessible during IELM evaluation. (defvar *2 nil (#$ . 4843)) #@332 During IELM evaluation, third-most-recent value evaluated in IELM. Normally identical to `***'. However, if the working buffer is an IELM buffer, distinct from the process buffer, then `***' gives the value in the working buffer, `*3' the value in the process buffer. The intended value is only accessible during IELM evaluation. (defvar *3 nil (#$ . 5208)) #@78 Buffer in which IELM sexps will be evaluated. This variable is buffer-local. (defvar ielm-working-buffer nil (#$ . 5573)) #@42 Message to display when IELM is started. (defvar ielm-header "*** Welcome to IELM *** Type (describe-mode) for help.\n" (#$ . 5701)) #@23 Keymap for IELM mode. (defvar ielm-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\324#\210\302\325\326#\210)\207" [map make-sparse-keymap define-key " " comint-dynamic-complete " " ielm-return "\n" ielm-send-input "" eval-defun " " completion-at-point "" indent-sexp "" backward-delete-char-untabify "" ielm-change-working-buffer "" ielm-display-working-buffer "" ielm-print-working-buffer] 4) (#$ . 5841)) (defvaralias 'inferior-emacs-lisp-mode-map 'ielm-map) #@54 Additional expressions to highlight in IELM buffers. (defvar ielm-font-lock-keywords '(("\\(^\\*\\*\\*[^*]+\\*\\*\\*\\)\\(.*$\\)" (1 font-lock-comment-face) (2 font-lock-constant-face))) (#$ . 6451)) #@48 Possibly indent the current line as Lisp code. (defalias 'ielm-tab #[nil "h\300=\204 hz\301=\205 \302 \210\303\207" [10 32 ielm-indent-line t] 2 (#$ . 6657) nil]) #@40 Complete the Lisp symbol before point. (defalias 'ielm-complete-symbol #[nil "\303 \304\305!\211\205 \303 !\306 \210\303 U?\206* \203' \n\303 !U?\202* \304\305!+\207" [btick cbuffer ctick buffer-modified-tick get-buffer "*Completions*" lisp-complete-symbol] 4 (#$ . 6828)]) #@61 Dynamically complete filename before point, if in a string. (defalias 'ielm-complete-filename #[nil "\301\302`\"8\205 \303 \207" [comint-last-input-start 3 parse-partial-sexp comint-dynamic-complete-filename] 4 (#$ . 7114)]) #@66 Indent the current line as Lisp code if it is not a prompt line. (defalias 'ielm-indent-line #[nil "\212\300 \210n)\205 \301 \207" [comint-bol lisp-indent-line] 1 (#$ . 7347)]) #@64 Print the current IELM working buffer's name in the echo area. (defalias 'ielm-print-working-buffer #[nil "\301\302\303!\"\207" [ielm-working-buffer message "The current working buffer is: %s" buffer-name] 4 (#$ . 7531) nil]) #@147 Display the current IELM working buffer. Don't forget that selecting that buffer will change its value of `point' to its value of `window-point'! (defalias 'ielm-display-working-buffer #[nil "\301!\210\302 \207" [ielm-working-buffer display-buffer ielm-print-working-buffer] 2 (#$ . 7765) nil]) #@209 Change the current IELM working buffer to BUF. This is the buffer in which all sexps entered at the IELM prompt are evaluated. You can achieve the same effect with a call to `set-buffer' at the IELM prompt. (defalias 'ielm-change-working-buffer #[(buf) "\303!\211\203 \304 !\203 \202 \305\306\"\210)\307 \207" [buf buffer ielm-working-buffer get-buffer buffer-live-p error "No such buffer: %S" ielm-print-working-buffer] 4 (#$ . 8068) "bSet working buffer to: "]) #@223 Newline and indent, or evaluate the sexp before the prompt. Complete sexps are evaluated; for incomplete sexps inserts a newline and indents. If however `ielm-dynamic-return' is nil, this always simply inserts a newline. (defalias 'ielm-return #[nil "\203B \212\306\210\307\310 `\")\211@\311W\203! \312 8\204! \313 \202@ \n\203>