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:28 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/progmodes/octave-mod.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&\207" [require custom custom-declare-group octave nil "Major mode for editing Octave source files." :link (custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group languages] 8) (defvar inferior-octave-output-list nil) (defvar inferior-octave-output-string nil) (defvar inferior-octave-receive-in-progress nil) #@49 Current maintainer of the Emacs Octave package. (defconst octave-maintainer-address "Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>, bug-gnu-emacs@gnu.org" (#$ . 947)) (byte-code "\300\301\302\303\304\"\305\306\307%\207" [define-abbrev-table octave-abbrev-table mapcar #[(e) "\301\302\"\207" [e append (nil 0 t)] 3] (("`a" "all_va_args") ("`b" "break") ("`cs" "case") ("`ca" "catch") ("`c" "continue") ("`el" "else") ("`eli" "elseif") ("`et" "end_try_catch") ("`eu" "end_unwind_protect") ("`ef" "endfor") ("`efu" "endfunction") ("`ei" "endif") ("`es" "endswitch") ("`ew" "endwhile") ("`f" "for") ("`fu" "function") ("`gl" "global") ("`gp" "gplot") ("`gs" "gsplot") ("`if" "if ()") ("`o" "otherwise") ("`rp" "replot") ("`r" "return") ("`s" "switch") ("`t" "try") ("`u" "until ()") ("`up" "unwind_protect") ("`upc" "unwind_protect_cleanup") ("`w" "while ()")) "Abbrev table for Octave's reserved words.\nUsed in `octave-mode' and inferior-octave-mode buffers.\nAll Octave abbrevs start with a grave accent (`)." :regexp "\\(?:[^`]\\|^\\)\\(\\(?:\\<\\|`\\)\\w+\\)\\W*"] 6) #@39 Character to start an Octave comment. (defvar octave-comment-char 35 (#$ . 2017)) #@57 String to insert to start a new Octave in-line comment. (defvar octave-comment-start (string octave-comment-char 32) (#$ . 2105)) #@64 Regexp to match the start of an Octave comment up to its body. (defvar octave-comment-start-skip "\\s<+\\s-*" (#$ . 2241)) (defvar octave-begin-keywords '("do" "for" "function" "if" "switch" "try" "unwind_protect" "while")) (defvar octave-else-keywords '("case" "catch" "else" "elseif" "otherwise" "unwind_protect_cleanup")) (defvar octave-end-keywords '("endfor" "endfunction" "endif" "endswitch" "end_try_catch" "end_unwind_protect" "endwhile" "until" "end")) #@27 Reserved words in Octave. (defvar octave-reserved-words (append octave-begin-keywords octave-else-keywords octave-end-keywords '("break" "continue" "end" "global" "persistent" "return")) (#$ . 2709)) #@27 Text functions in Octave. (defvar octave-text-functions '("casesen" "cd" "chdir" "clear" "diary" "dir" "document" "echo" "edit_history" "format" "help" "history" "hold" "load" "ls" "more" "run_history" "save" "type" "which" "who" "whos") (#$ . 2915)) #@30 Builtin variables in Octave. (defvar octave-variables '("DEFAULT_EXEC_PATH" "DEFAULT_LOADPATH" "EDITOR" "EXEC_PATH" "F_DUPFD" "F_GETFD" "F_GETFL" "F_SETFD" "F_SETFL" "I" "IMAGE_PATH" "Inf" "J" "NaN" "OCTAVE_VERSION" "O_APPEND" "O_CREAT" "O_EXCL" "O_NONBLOCK" "O_RDONLY" "O_RDWR" "O_TRUNC" "O_WRONLY" "PAGER" "PS1" "PS2" "PS4" "PWD" "SEEK_CUR" "SEEK_END" "SEEK_SET" "__F_DUPFD__" "__F_GETFD__" "__F_GETFL__" "__F_SETFD__" "__F_SETFL__" "__I__" "__Inf__" "__J__" "__NaN__" "__OCTAVE_VERSION__" "__O_APPEND__" "__O_CREAT__" "__O_EXCL__" "__O_NONBLOCK__" "__O_RDONLY__" "__O_RDWR__" "__O_TRUNC__" "__O_WRONLY__" "__PWD__" "__SEEK_CUR__" "__SEEK_END__" "__SEEK_SET__" "__argv__" "__e__" "__eps__" "__i__" "__inf__" "__j__" "__nan__" "__pi__" "__program_invocation_name__" "__program_name__" "__realmax__" "__realmin__" "__stderr__" "__stdin__" "__stdout__" "ans" "argv" "beep_on_error" "completion_append_char" "crash_dumps_octave_core" "default_save_format" "e" "echo_executing_commands" "eps" "error_text" "gnuplot_binary" "history_file" "history_size" "ignore_function_time_stamp" "inf" "nan" "nargin" "output_max_field_width" "output_precision" "page_output_immediately" "page_screen_output" "pi" "print_answer_id_name" "print_empty_dimensions" "program_invocation_name" "program_name" "realmax" "realmin" "return_last_computed_value" "save_precision" "saving_history" "sighup_dumps_octave_core" "sigterm_dumps_octave_core" "silent_functions" "split_long_rows" "stderr" "stdin" "stdout" "string_fill_char" "struct_levels_to_print" "suppress_verbose_help_message") (#$ . 3172)) #@136 Regexp to match an Octave function header. The string `function' and its name are given by the first and third parenthetical grouping. (defvar octave-function-header-regexp "^\\s-*\\_<\\(function\\)\\_>\\([^=;\n]*=[ ]*\\|[ ]*\\)\\(\\(?:\\w\\|\\s_\\)+\\)\\_>" (#$ . 4755)) #@45 Additional Octave expressions to highlight. (defvar octave-font-lock-keywords (byte-code "\304\305\306 \"!\307Q\310B\311\312\313!\203 \313\202 \314B\315\305\n!\316Q\317B\320\321EF\207" [octave-reserved-words octave-text-functions octave-variables octave-function-header-regexp "\\_<\\(" regexp-opt append "\\)\\_>" font-lock-keyword-face "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)" boundp font-lock-builtin-face font-lock-preprocessor-face "\\_<" "\\_>" font-lock-variable-name-face (1 font-lock-keyword-face) (3 font-lock-function-name-face nil t)] 6) (#$ . 5035)) (defalias 'octave-syntax-propertize-function #[(start end) "b\210\302 !\210` \211b\210` W\2051 \303\304 \305#\2051 \306\224\203 \307\306\224\306\225\310\311$\210\302 !\210\202 *\207" [start end octave-syntax-propertize-sqs re-search-forward "[[({,; ]\\('\\)" t 1 put-text-property syntax-table (7 . 39)] 6]) #@53 Propertize the content/end of single-quote strings. (defalias 'octave-syntax-propertize-sqs #[(end) "\301\302 8\303=\2050 \304\305\306#\2050 \307\224b\210\310\224Sf\311=\203( \312\310\224S\310\224\313\314$\210\312\310\224\310\225\313\315$\207" [end 3 syntax-ppss 39 re-search-forward "\\(?:\\=\\|[^']\\)\\(?:''\\)*\\('\\)\\($\\|[^']\\)" move 2 1 92 put-text-property syntax-table (1) (7 . 39)] 5 (#$ . 5926)]) #@56 Name of buffer for running an inferior Octave process. (custom-declare-variable 'inferior-octave-buffer "*Inferior Octave*" '(#$ . 6343) :type 'string :group 'octave-inferior) (defvar inferior-octave-process nil) #@29 Keymap used in Octave mode. (defvar octave-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\316#\210\302\317\320#\210\302\321\322#\210\302\323\324#\210\302\325\326#\210\302\327\330#\210\302\331\330#\210\302\332\333#\210\302\334\335#\210\302\336\337#\210\302\340\341#\210\302\342\343#\210\302\344\345#\210\302\346\347#\210\302\350\351#\210\302\352\353#\210\302\354\337#\210\302\355\341#\210\302\356\343#\210\302\357\345#\210\302\360\347#\210\302\361\351#\210\302\362\353#\210)\207" [map make-sparse-keymap define-key "`" octave-abbrev-start "\n" octave-indent-new-comment-line "\221" octave-indent-defun "" octave-submit-bug-report "" octave-previous-code-line "" octave-next-code-line "" octave-beginning-of-line "" octave-end-of-line [remap down-list] smie-down-list "\210" octave-mark-block "]" smie-close-block "/" "" octave-insert-defun "" info-lookup-symbol " l" octave-send-line " b" octave-send-block " f" octave-send-defun " r" octave-send-region " s" octave-show-process-buffer " h" octave-hide-process-buffer " k" octave-kill-process " \f" " " " " " " " " " " " "] 4) (#$ . 6562)) #@23 Menu for Octave mode. (defvar octave-mode-menu nil (#$ . 7798)) (easy-menu-do-define 'octave-mode-menu octave-mode-map "Menu for Octave mode." '("Octave" ("Lines" ["Previous Code Line" octave-previous-code-line t] ["Next Code Line" octave-next-code-line t] ["Begin of Continuation" octave-beginning-of-line t] ["End of Continuation" octave-end-of-line t] ["Split Line at Point" octave-indent-new-comment-line t]) ("Blocks" ["Mark Block" octave-mark-block t] ["Close Block" smie-close-block t]) ("Functions" ["Indent Function" octave-indent-defun t] ["Insert Function" octave-insert-defun t]) "-" ("Debug" ["Send Current Line" octave-send-line t] ["Send Current Block" octave-send-block t] ["Send Current Function" octave-send-defun t] ["Send Region" octave-send-region t] ["Show Process Buffer" octave-show-process-buffer t] ["Hide Process Buffer" octave-hide-process-buffer t] ["Kill Process" octave-kill-process t]) "-" ["Indent Line" indent-according-to-mode t] ["Complete Symbol" completion-at-point t] "-" ["Toggle Abbrev Mode" abbrev-mode :style toggle :selected abbrev-mode] ["Toggle Auto-Fill Mode" auto-fill-mode :style toggle :selected auto-fill-function] "-" ["Submit Bug Report" octave-submit-bug-report t] "-" ["Describe Octave Mode" describe-mode t] ["Lookup Octave Index" info-lookup-symbol t])) #@47 Syntax table in use in `octave-mode' buffers. (defvar octave-mode-syntax-table (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\306#\210\302\310\306#\210\302\311\306#\210\302\312\306#\210\302\313\306#\210\302\314\306#\210\302\315\306#\210\302\316\306#\210\302\317\306#\210\302\320\321#\210\302\322\306#\210\302\323\306#\210\302\324\325#\210\302\326\327#\210\302\330\327#\210\302\331\332#\210\302\333\332#\210\302\334\335#\210\302\336\337#\210\302\340\341#\210)\207" [table make-syntax-table modify-syntax-entry 13 " " 43 "." 45 61 42 47 62 60 38 124 33 92 "\\" 39 96 34 "\"" 46 "_" 95 37 "< 13" 35 123 "(} 2c" 125 "){ 4c" 10 ">"] 4) (#$ . 9115)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable octave-blink-matching-block t "Control the blinking of matching Octave block keywords.\nNon-nil means show matching begin of block when inserting a space,\nnewline or semicolon after an else or end keyword." :type boolean :group octave octave-block-offset 2 "Extra indentation applied to statements in Octave block structures." integer] 8) #@66 String to insert to start a new Octave comment on an empty line. (defvar octave-block-comment-start (byte-code "\301\302\"\303P\207" [octave-comment-char make-string 2 " "] 3) (#$ . 10257)) #@57 Extra indentation applied to Octave continuation lines. (custom-declare-variable 'octave-continuation-offset 4 '(#$ . 10454) :type 'integer :group 'octave) (defconst octave-continuation-marker-regexp "\\\\\\|\\.\\.\\.") (defvar octave-continuation-regexp (concat "[^#%\n]*\\(" octave-continuation-marker-regexp "\\)\\s-*\\(\\s<.*\\)?$")) #@67 Character string used for Octave continuation lines. Normally \. (custom-declare-variable 'octave-continuation-string "\\" '(#$ . 10798) :type 'string :group 'octave) #@225 Alist of Octave symbols for completion in Octave mode. Each element looks like (VAR . VAR), where the car and cdr are the same symbol (an Octave command or variable name). Currently, only builtin variables can be completed. (defvar octave-completion-alist nil (#$ . 10973)) #@68 Imenu expression for Octave mode. See `imenu-generic-expression'. (defvar octave-mode-imenu-generic-expression (byte-code "\301\302EC\207" [octave-function-header-regexp nil 3] 3) (#$ . 11253)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\311\315\304\313\306\307&\210\300\316\311\317\304\313\306\307&\210\320\321!\207" [custom-declare-variable octave-mode-hook nil "Hook to be run when Octave mode is started." :type hook :group octave octave-send-show-buffer t "Non-nil means display `inferior-octave-buffer' after sending to it." boolean octave-send-line-auto-forward "Control auto-forward after sending to the inferior Octave process.\nNon-nil means always go to the next Octave code line after sending." octave-send-echo-input "Non-nil means echo input sent to the inferior Octave process." require smie] 8) (defconst octave-operator-table '((assoc ";" "\n") (assoc ",") (right "=" "+=" "-=" "*=" "/=") (assoc "&&") (assoc "||") (assoc "&") (assoc "|") (nonassoc "<" "<=" "==" ">=" ">" "!=" "~=") (nonassoc ":") (assoc "+" "-") (assoc "*" "/" "\\" ".\\" ".*" "./") (nonassoc "'" ".'") (nonassoc "++" "--" "!" "~") (right "^" "**" ".^" ".**") (assoc "..."))) (defconst octave-smie-bnf-table '((atom) (exp (exp "\n" exp) (exp ";" exp) ("try" exp "catch" exp "end_try_catch") ("try" exp "catch" exp "end") ("unwind_protect" exp "unwind_protect_cleanup" exp "end_unwind_protect") ("unwind_protect" exp "unwind_protect_cleanup" exp "end") ("for" exp "endfor") ("for" exp "end") ("do" exp "until" atom) ("while" exp "endwhile") ("while" exp "end") ("if" exp "endif") ("if" exp "else" exp "endif") ("if" exp "elseif" exp "else" exp "endif") ("if" exp "elseif" exp "elseif" exp "else" exp "endif") ("if" exp "elseif" exp "elseif" exp "else" exp "end") ("switch" exp "case" exp "endswitch") ("switch" exp "case" exp "otherwise" exp "endswitch") ("switch" exp "case" exp "case" exp "otherwise" exp "endswitch") ("switch" exp "case" exp "case" exp "otherwise" exp "end") ("function" exp "endfunction") ("function" exp "end")))) (defconst octave-smie-grammar (byte-code "\302\303\304\305\"\306 !\"!\207" [octave-smie-bnf-table octave-operator-table smie-prec2->grammar smie-merge-prec2s smie-bnf->prec2 ((assoc "\n" ";")) smie-precs->prec2] 5)) (defconst octave-operator-regexp (byte-code "\301\302\303\304\305\"\"!\207" [octave-operator-table regexp-opt apply append mapcar cdr] 6)) (defalias 'octave-smie-backward-token #[nil "`\304`[!\210`Sf\305=\204F \306 V\203F \307 `\310Z\"\203+ \311\224b\210\304`[!\210\202F \312 \211A@\205: \nA@f\313=)\204F \314\315w\210\316\202d \307`\310Z\317#\203b \307\320`S\"\204b \311\224b\210\321\311!\202d \322 )\207" [pos octave-continuation-marker-regexp ppss octave-operator-regexp forward-comment 59 line-end-position looking-back 3 0 syntax-ppss 40 " " nil ";" greedy "\\s\"" match-string-no-properties smie-default-backward-token] 5]) (defalias 'octave-smie-forward-token #[nil "\302\303w\210\304\305!\203 \306\225b\210\307\306!\210\304\310!\2032 \311 \211A@\205'