;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Mon Apr 17 19:43:28 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/icon.el ;;; emacs version 19.28.90.26. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/icon.el' was compiled for Emacs 19")) #@43 Abbrev table in use in Icon-mode buffers. (defvar icon-mode-abbrev-table nil (#$ . 477)) (define-abbrev-table (quote icon-mode-abbrev-table) nil) #@27 Keymap used in Icon mode. (defvar icon-mode-map nil (#$ . 629)) (byte-code "7 ########" [icon-mode-map make-sparse-keymap define-key "{" electric-icon-brace "}" "" mark-icon-function "" beginning-of-icon-defun "" end-of-icon-defun "" indent-icon-exp "" backward-delete-char-untabify " " icon-indent-command] 4) #@43 Syntax table in use in Icon-mode buffers. (defvar icon-mode-syntax-table nil (#$ . 1002)) (byte-code "a ###############" [icon-mode-syntax-table make-syntax-table modify-syntax-entry 92 "\\" 35 "<" 10 ">" 36 "." 47 42 43 45 61 37 60 62 38 124 39 "\""] 4) #@67 *Indentation of Icon statements with respect to containing block. (defconst icon-indent-level 4 (#$ . -1345)) #@79 *Imagined indentation of a Icon open brace that actually follows a statement. (defconst icon-brace-imaginary-offset 0 (#$ . -1461)) #@74 *Extra indentation for braces, compared with other text in same context. (defconst icon-brace-offset 0 (#$ . -1599)) #@54 *Extra indent for lines not starting new statements. (defconst icon-continued-statement-offset 4 (#$ . -1722)) #@118 *Extra indent for substatements that start with open-braces. This is in addition to icon-continued-statement-offset. (defconst icon-continued-brace-offset 0 (#$ . -1840)) #@85 *Non-nil means automatically newline before and after braces inserted in Icon code. (defconst icon-auto-newline nil (#$ . -2017)) #@145 *Non-nil means TAB in Icon mode should always reindent the current line, regardless of where in the line point is when the TAB command is used. (defconst icon-tab-always-indent t (#$ . -2154)) #@1381 Major mode for editing Icon code. Expression and list commands understand all Icon brackets. Tab indents for Icon code. Paragraphs are separated by blank lines only. Delete converts tabs to spaces as it moves back. \{icon-mode-map} Variables controlling indentation style: icon-tab-always-indent Non-nil means TAB in Icon mode should always reindent the current line, regardless of where in the line point is when the TAB command is used. icon-auto-newline Non-nil means automatically newline before and after braces inserted in Icon code. icon-indent-level Indentation of Icon statements within surrounding block. The surrounding block's indentation is the indentation of the line on which the open-brace appears. icon-continued-statement-offset Extra indentation given to a substatement, such as the then-clause of an if or body of a while. icon-continued-brace-offset Extra indentation given to a brace that starts a substatement. This is in addition to `icon-continued-statement-offset'. icon-brace-offset Extra indentation for line if it starts with an open brace. icon-brace-imaginary-offset An open brace following other text is treated as if it were this far to the right of the start of its line. Turning on Icon mode calls the value of the variable `icon-mode-hook' with no args, if that value is non-nil. (defalias 'icon-mode #[nil " \n!\n!!P\f!\f!!!!!!!!" [kill-all-local-variables use-local-map icon-mode-map icon-mode major-mode "Icon" mode-name icon-mode-abbrev-table local-abbrev-table set-syntax-table icon-mode-syntax-table make-local-variable paragraph-start "$\\|" page-delimiter paragraph-separate indent-line-function icon-indent-line require-final-newline t comment-start "# " comment-end "" comment-column 32 comment-start-skip "# *" comment-indent-function icon-comment-indent run-hooks icon-mode-hook] 2 (#$ . 2355) nil]) (defalias 'icon-comment-indent #[nil "!‡xn‚iT ])" [looking-at "^#" 0 " " nil comment-column] 2]) #@50 Insert character and correct line's indentation. (defalias 'electric-icon-brace #[(arg) "\nAlAxn)\fA c \f3 `Z < Tb!) R b\n!!)W\n!!)" [nil insertpos arg " " icon-auto-newline icon-indent-line newline last-command-char 2 delete-char -1 self-insert-command prefix-numeric-value] 3 (#$ . 4462) "P"]) (defalias 'icon-indent-command #[(&optional whole-exp) "3 ‰y`!`\fby`) \fV1\f $+Exn)E " [whole-exp icon-indent-line nil end beg shift-amt icon-tab-always-indent 0 forward-sexp 1 indent-code-rigidly "#" " " insert-tab] 5 nil "P"]) #@81 Indent current line as Icon code. Return the amount the indentation changed by. (defalias 'icon-indent-line #[nil "!d`Zy`=\" =0 !<w?*" [ch ch-syntax 119 assoc -1 1 icon-resword-alist (0 59 125 123 41 93 34 39 10)] 4]) (defalias 'icon-backward-to-noncomment #[(lim) " ?.\fx`y`\n\"8(\f`W(!ʉ*" [nil stop opoint " \n\f" lim 0 5 parse-partial-sexp search-backward "#" t] 5]) (defalias 'icon-backward-to-start-of-continued-exp #[(lim) "h>\n!yw`XTb $Çgz==`v`){ \"A=Ç!" [(41 93) forward-sexp -1 0 " " nil lim icon-is-continued-line 119 assoc 1 icon-resword-alist icon-backward-to-start-of-continued-exp] 3]) (defalias 'icon-is-continued-line #[nil " )" [0 icon-is-continuation-line] 1]) #@48 Move to the start of the last "unbalanced" if. (defalias 'icon-backward-to-start-of-if #[(&optional limit) " `) U?B!!' T!4 S`Wb*" [limit beginning-of-icon-defun 1 nil case-fold-search if-level 0 backward-sexp looking-at "else\\b" "if\\b"] 3 (#$ . 7671)]) #@55 Put mark at end of Icon function, point at beginning. (defalias 'mark-icon-function #[nil "`! `!y " [push-mark end-of-icon-defun -1 beginning-of-icon-defun] 2 (#$ . 7980) nil]) #@71 Go to the start of the enclosing procedure; return t if at top level. (defalias 'beginning-of-icon-defun #[nil "e#\f!Ň" [re-search-backward "^procedure\\s \\|^end[ \n]" move looking-at "e" t] 4 (#$ . 8173) nil]) (defalias 'end-of-icon-defun #[nil "oud#vy" [-1 re-search-forward "\\(\\s \\|^\\)end\\(\\s \\|$\\)" move 1] 4 nil nil]) #@56 Indent each line of the Icon grouping following point. (defalias 'indent-icon-exp #[nil "C`C` \n \f !)\fm?\f?\nmVՉ\f\n ``\n%\n@\nAA@\nAA@Y\nAA@ 8 \n8yFՉK\nX\f\f5\nU\nVAAS\nWBBT@\nA@!`)ywl5@w@Yw@fU1@!gU ! ^@!\"i V#W\\\\sn ! s@)@@[!'')gU!*ZgU+\\iU`y`|j,!5,`)#5 y5." [nil 0 next-depth opoint at-do at-brace at-else last-sexp this-indent ostate state inner-loop-done outer-loop-done restart case-fold-search contain-stack indent-stack forward-sexp 1 last-depth innerloop-done t parse-partial-sexp 4 icon-indent-line 3 -1 " " 123 looking-at "else\\W" icon-backward-to-noncomment icon-is-continuation-line icon-backward-to-start-of-continued-exp icon-continued-statement-offset icon-continued-brace-offset icon-backward-to-start-of-if current-indentation calculate-icon-indent val 125 "end\\b" icon-indent-level icon-brace-offset comment-start-skip re-search-forward indent-for-comment] 16 (#$ . 8534) nil])