Server IP : 111.118.215.189 / Your IP : 18.117.158.174 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/progmodes/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/progmodes/tcl.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\302\303\304\305\306\307\310\311&\210\312\313\314\315\316\317\310\303&\210\320\313\321\322#\210\312\323\314\324\316\317\310\303&\210\320\323\321\322#\210\312\325\304\326\316\327\310\303&\210\312\330\331\332\316\333\310\303&\210\312\334\304\335\316\336\310\303&\210\312\337\304\340\316\341\310\303&\210\312\342\343\344\316\327\310\303&\210\312\345\346\347\316\350\310\303&\210\312\351\304\352\316\353\310\303&\210\312\354\355\356\316\357\310\303&\210\312\360\361\362\316\350\310\303&\210\363\364\365\366\310\303\367\370&\207" [require comint custom-declare-group tcl nil "Major mode for editing Tcl source in Emacs." :link (custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group languages custom-declare-variable tcl-indent-level 4 "Indentation of Tcl statements with respect to containing block." :type integer put safe-local-variable integerp tcl-continued-indent-level "Indentation of continuation line relative to first line of command." tcl-auto-newline "Non-nil means automatically newline before and after braces you insert." boolean tcl-tab-always-indent tab-always-indent "Control effect of TAB key.\nIf t (the default), always indent current line.\nIf nil and point is not in the indentation area at the beginning of\nthe line, a TAB is inserted.\nOther values cause the first possible action from the following list\nto take place:\n\n 1. Move from beginning of line to correct indentation.\n 2. Delete an empty comment.\n 3. Move forward to start of comment, indenting if necessary.\n 4. Move forward to end of line, indenting if necessary.\n 5. Create an empty comment.\n 6. Move backward to start of comment, indenting if necessary." (choice (const :tag "Always" t) (const :tag "Beginning only" nil) (const :tag "Maybe move or make or delete comment" 'tcl)) tcl-electric-hash-style "Style of electric hash insertion to use.\nPossible values are `backslash', meaning that `\\' quoting should be\ndone; `quote', meaning that `\"' quoting should be done; `smart',\nmeaning that the choice between `backslash' and `quote' should be\nmade depending on the number of hashes inserted; or nil, meaning that\nno quoting should be done. Any other value for this variable is\ntaken to mean `smart'. The default is nil." (choice (const backslash) (const quote) (const smart) (const nil)) tcl-help-directory-list "List of topmost directories containing TclX help files." (repeat directory) tcl-use-smart-word-finder t "If not nil, use smart way to find current word, for Tcl help feature." tcl-application "wish" "Name of Tcl program to run in inferior Tcl mode." string tcl-command-switches "List of switches to supply to the `tcl-application' program." (repeat string) tcl-prompt-regexp "^\\(% \\|\\)" "If not nil, a regexp that will match the prompt in the inferior process.\nIf nil, the prompt is the name of the application with \">\" appended.\n\nThe default is \"^\\(% \\|\\)\", which will match the default primary\nand secondary prompts for tclsh and wish." regexp inferior-tcl-source-command "source %s\n" "Format-string for building a Tcl command to load a file.\nThis format string should use `%s' to substitute a file name\nand should result in a Tcl expression that will command the\ninferior Tcl to load that file. The filename will be appropriately\nquoted for Tcl." custom-declare-face tcl-escaped-newline ((t :inherit font-lock-string-face)) "Face used for (non-escaped) backslash at end of a line in Tcl mode." :version "22.1"] 8) #@28 Keymap used in `tcl-mode'. (defvar tcl-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\304#\210\302\310\304#\210\302\311\304#\210\302\312\313#\210\302\314\315#\210\302\316\317#\210\302\320\321#\210\302\322\323#\210\302\324\325#\210\302\326\323#\210\302\327\330#\210\302\331\332#\210\302\333\334#\210\302\335\336#\210)\207" [map make-sparse-keymap define-key "{" tcl-electric-char "}" tcl-electric-brace "[" "]" ";" "#" tcl-electric-hash "" tcl-indent-exp "" backward-delete-char-untabify " " tcl-indent-command "\230" tcl-eval-defun " " tcl-help-on-word "" "" tcl-load-file "" inferior-tcl "" tcl-eval-region "" switch-to-tcl] 4) (#$ . 4069)) #@44 Syntax table in use in `tcl-mode' buffers. (defvar tcl-mode-syntax-table (byte-code "\301 \302\303\304#\210\302\305\304#\210\302\306\304#\210\302\307\304#\210\302\310\304#\210\302\311\304#\210\302\312\304#\210\302\313\304#\210\302\314\304#\210\302\315\304#\210\302\316\304#\210\302\317\304#\210\302\320\304#\210\302\321\304#\210\302\322\304#\210\302\323\304#\210\302\324\325#\210\302\326\327#\210\302\330\331#\210\302\332\333#\210\302\334\335#\210)\207" [st make-syntax-table modify-syntax-entry 37 "_" 64 38 42 43 45 46 58 33 36 47 126 60 61 62 124 40 "()" 41 ")(" 59 "." 10 ">" 35 "<"] 4) (#$ . 4771)) #@37 Keymap used in `inferior-tcl-mode'. (defvar inferior-tcl-mode-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\312#\210\302\316\317#\210\302\320\321#\210\302\322\323#\210\302\324\325#\210)\207" [map make-sparse-keymap define-key " " comint-dynamic-complete "\277" comint-dynamic-list-filename-completions "" backward-delete-char-untabify "\230" tcl-eval-defun " " tcl-help-on-word "" "" tcl-load-file "" inferior-tcl "" tcl-eval-region "" switch-to-tcl] 4) (#$ . 5404)) #@26 Menu used in `tcl-mode'. (defvar tcl-mode-menu nil (#$ . 5970)) (easy-menu-do-define 'tcl-mode-menu tcl-mode-map "Menu used in `tcl-mode'." '("Tcl" ["Beginning of function" beginning-of-defun t] ["End of function" end-of-defun t] ["Mark function" mark-defun t] ["Indent region" indent-region (mark t)] ["Comment region" comment-region (mark t)] ["Uncomment region" uncomment-region (mark t)] "----" ["Show Tcl process buffer" inferior-tcl t] ["Send function to Tcl process" tcl-eval-defun (and inferior-tcl-buffer (get-buffer inferior-tcl-buffer))] ["Send region to Tcl process" tcl-eval-region (and inferior-tcl-buffer (get-buffer inferior-tcl-buffer))] ["Send file to Tcl process" tcl-load-file (and inferior-tcl-buffer (get-buffer inferior-tcl-buffer))] ["Restart Tcl process with file" tcl-restart-with-file t] "----" ["Tcl help" tcl-help-on-word tcl-help-directory-list])) #@1641 The current inferior-tcl process buffer. MULTIPLE PROCESS SUPPORT =========================================================================== To run multiple Tcl processes, you start the first up with \[inferior-tcl]. It will be in a buffer named `*inferior-tcl*'. Rename this buffer with \[rename-buffer]. You may now start up a new process with another \[inferior-tcl]. It will be in a new buffer, named `*inferior-tcl*'. You can switch between the different process buffers with \[switch-to-buffer]. Commands that send text from source buffers to Tcl processes -- like `tcl-eval-defun' or `tcl-load-file' -- have to choose a process to send to, when you have more than one Tcl process around. This is determined by the global variable `inferior-tcl-buffer'. Suppose you have three inferior Lisps running: Buffer Process foo inferior-tcl bar inferior-tcl<2> *inferior-tcl* inferior-tcl<3> If you do a \[tcl-eval-defun] command on some Lisp source code, what process do you send it to? - If you're in a process buffer (foo, bar, or *inferior-tcl*), you send it to that process. - If you're in some other buffer (e.g., a source file), you send it to the process attached to buffer `inferior-tcl-buffer'. This process selection is performed by function `inferior-tcl-proc'. Whenever \[inferior-tcl] fires up a new process, it resets `inferior-tcl-buffer' to be the new process's buffer. If you only run one process, this does the right thing. If you run multiple processes, you can change `inferior-tcl-buffer' to another process buffer with \[set-variable]. (defvar inferior-tcl-buffer nil (#$ . 6856)) #@623 Hook run on entry to Tcl mode. Several functions exist which are useful to run from your `tcl-mode-hook' (see each function's documentation for more information): `tcl-guess-application' Guesses a default setting for `tcl-application' based on any "#!" line at the top of the file. `tcl-hashify-buffer' Quotes all "#" characters that don't correspond to actual Tcl comments. (Useful when editing code not originally created with this mode). `tcl-auto-fill-mode' Auto-filling of Tcl comments. Add functions to the hook with `add-hook': (add-hook 'tcl-mode-hook 'tcl-guess-application) (defvar tcl-mode-hook nil (#$ . 8548)) #@205 List of commands whose first argument defines something. This exists because some people (eg, me) use `defvar' et al. Call `tcl-set-proc-regexp' and `tcl-set-font-lock-keywords' after changing this list. (defvar tcl-proc-list '("proc" "method" "itcl_class" "body" "configbody" "class") (#$ . 9216)) #@43 Regexp to use when matching proc headers. (defvar tcl-proc-regexp nil (#$ . 9521)) #@128 List of Tcl keywords denoting "type". Used only for highlighting. Call `tcl-set-font-lock-keywords' after changing this list. (defvar tcl-typeword-list '("global" "upvar" "inherit" "public" "protected" "private" "common" "itk_option" "variable") (#$ . 9611)) #@154 List of Tcl keywords. Used only for highlighting. Default list includes some TclX keywords. Call `tcl-set-font-lock-keywords' after changing this list. (defvar tcl-keyword-list '("if" "then" "else" "elseif" "for" "foreach" "break" "continue" "while" "eval" "case" "in" "switch" "default" "exit" "error" "proc" "return" "uplevel" "constructor" "destructor" "itcl_class" "loop" "for_array_keys" "for_recursive_glob" "for_file" "method" "body" "configbody" "class" "chain") (#$ . 9878)) #@203 List of Tcl commands. Used only for highlighting. Call `tcl-set-font-lock-keywords' after changing this list. This list excludes those commands already found in `tcl-proc-list' and `tcl-keyword-list'. (defvar tcl-builtin-list '("after" "append" "array" "bgerror" "binary" "catch" "cd" "clock" "close" "concat" "console" "dde" "encoding" "eof" "exec" "expr" "fblocked" "fconfigure" "fcopy" "file" "fileevent" "flush" "format" "gets" "glob" "history" "incr" "info" "interp" "join" "lappend" "lindex" "linsert" "list" "llength" "load" "lrange" "lreplace" "lsort" "namespace" "open" "package" "pid" "puts" "pwd" "read" "regexp" "registry" "regsub" "rename" "scan" "seek" "set" "socket" "source" "split" "string" "subst" "tell" "time" "trace" "unknown" "unset" "vwait") (#$ . 10370)) #@213 Keywords to highlight for Tcl. See variable `font-lock-keywords'. This variable is generally set from `tcl-proc-regexp', `tcl-typeword-list', and `tcl-keyword-list' by the function `tcl-set-font-lock-keywords'. (defvar tcl-font-lock-keywords nil (#$ . 11157)) #@36 Syntactic keywords for `tcl-mode'. (defconst tcl-syntax-propertize-function #[(start end) "b\210` W\205\"