;ELC   
;;; Compiled by rms@psilocin.gnu.org on Thu Apr 30 02:51:04 1998
;;; from file /gd/gnu/emacs/lisp/progmodes/perl-mode.el
;;; in Emacs version 20.2.92.9
;;; with bytecomp version 2.41
;;; with all optimizations.
;;; This file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`perl-mode.el' was compiled for Emacs 19.29 or later"))


(custom-declare-group 'perl nil "Major mode for editing Perl code." :prefix "perl-" :group 'languages)
#@43 Abbrev table in use in perl-mode buffers.
(defvar perl-mode-abbrev-table nil (#$ . 646))
(define-abbrev-table 'perl-mode-abbrev-table nil)
#@27 Keymap used in Perl mode.
(defvar perl-mode-map nil (#$ . 791))
(byte-code "\204C \301 \302\303\304#\210\302\305\304#\210\302\306\304#\210\302\307\304#\210\302\310\311#\210\302\312\313#\210\302\314\315#\210\302\316\317#\210\302\320\321#\210\302\322\323#\210\301\207" [perl-mode-map make-sparse-keymap define-key "{" electric-perl-terminator "}" ";" ":" "" perl-beginning-of-function "" perl-end-of-function "" mark-perl-function "" indent-perl-exp "" backward-delete-char-untabify "	" perl-indent-command] 4)
#@141 Display the result of expanding all C macros occurring in the region.
The expansion is entirely correct because it uses the C preprocessor.
(autoload 'c-macro-expand "cmacexp" '(#$ . 1328) t)
#@43 Syntax table in use in perl-mode buffers.
(defvar perl-mode-syntax-table nil (#$ . 1526))
(byte-code "\204i \301\302 !\303\304\305#\210\303\306\307#\210\303\310\311#\210\303\312\313#\210\303\314\313#\210\303\315\316#\210\303\317\313#\210\303\320\313#\210\303\321\313#\210\303\322\313#\210\303\323\313#\210\303\324\313#\210\303\325\313#\210\303\326\327#\210\303\330\316#\210\303\331\313#\210\301\207" [perl-mode-syntax-table make-syntax-table standard-syntax-table modify-syntax-entry 10 ">" 35 "<" 36 "/" 37 "." 38 39 "\"" 42 43 45 47 60 61 62 92 "\\" 96 124] 4)
#@74 Imenu generic expression for Perl mode.  See `imenu-generic-expression'.
(defvar perl-imenu-generic-expression '((nil "^sub\\s-+\\([-A-Za-z0-9+_:]+\\)\\(\\s-\\|\n\\)*{" 1) ("Variables" "^\\([$@%][-A-Za-z0-9+_:]+\\)\\s-*=" 1) ("Packages" "^package\\s-+\\([-A-Za-z0-9+_:]+\\);" 1)) (#$ . 2113))
#@43 Subdued level highlighting for Perl mode.
(defconst perl-font-lock-keywords-1 '(("^#[ 	]*include[ 	]+\\(<[^>\"\n]+>\\)" 1 font-lock-string-face) ("^#[ 	]*define[ 	]+\\(\\sw+\\)(" 1 font-lock-function-name-face) ("^#[ 	]*if\\>" ("\\<\\(defined\\)\\>[ 	]*(?\\(\\sw+\\)?" nil nil (1 font-lock-constant-face) (2 font-lock-variable-name-face nil t))) ("^#[ 	]*\\(\\sw+\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-constant-face) (2 font-lock-variable-name-face nil t)) ("\\<\\(package\\|sub\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t)) ("\\<\\(import\\|no\\|require\\|use\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-constant-face nil t))) (#$ . 2412))
#@41 Gaudy level highlighting for Perl mode.
(defconst perl-font-lock-keywords-2 (byte-code "\301\302\303\304\305\306\307\310\311\257\"\207" [perl-font-lock-keywords-1 append "\\<\\(BEGIN\\|END\\|d\\(ie\\|o\\|ump\\)\\|e\\(ls\\(e\\|if\\)\\|val\\|x\\(ec\\|it\\)\\)\\|for\\(\\|each\\)\\|if\\|return\\|un\\(less\\|til\\)\\|while\\)\\>" ("\\<\\(local\\|my\\)\\>" . font-lock-type-face) ("&\\(\\sw+\\)" 1 font-lock-function-name-face) ("[$*]{?\\(\\sw+\\)" 1 font-lock-variable-name-face) ("\\([@%]\\|\\$#\\)\\(\\sw+\\)" (2 (cons font-lock-variable-name-face '(underline)))) ("<\\(\\sw+\\)>" 1 font-lock-constant-face) ("\\<\\(continue\\|goto\\|last\\|next\\|redo\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-constant-face nil t)) ("^[ 	]*\\(\\sw+\\)[ 	]*:[^:]" 1 font-lock-constant-face)] 10) (#$ . 3123))
#@48 Default expressions to highlight in Perl mode.
(defvar perl-font-lock-keywords perl-font-lock-keywords-1 (#$ . 3945))
#@67 *Indentation of Perl statements with respect to containing block.
(custom-declare-variable 'perl-indent-level '4 '(#$ . -4069) :type 'integer :group 'perl)
#@54 *Extra indent for lines not starting new statements.
(custom-declare-variable 'perl-continued-statement-offset '4 '(#$ . -4231) :type 'integer :group 'perl)
#@120 *Extra indent for substatements that start with open-braces.
This is in addition to `perl-continued-statement-offset'.
(custom-declare-variable 'perl-continued-brace-offset '-4 '(#$ . -4395) :type 'integer :group 'perl)
#@74 *Extra indentation for braces, compared with other text in same context.
(custom-declare-variable 'perl-brace-offset '0 '(#$ . -4621) :type 'integer :group 'perl)
#@75 *Imagined indentation of an open brace that actually follows a statement.
(custom-declare-variable 'perl-brace-imaginary-offset '0 '(#$ . -4790) :type 'integer :group 'perl)
#@60 *Offset of Perl label lines relative to usual indentation.
(custom-declare-variable 'perl-label-offset '-2 '(#$ . -4970) :type 'integer :group 'perl)
#@165 *Non-nil means TAB in Perl mode always indents the current line.
Otherwise it inserts a tab character if you type it past the first
nonwhite character on the line.
(custom-declare-variable 'perl-tab-always-indent 't '(#$ . -5127) :type 'boolean :group 'perl)
#@219 *Non-nil means TAB moves to eol or makes a comment in some cases.
For lines which don't need indenting, TAB either indents an
existing comment, moves to end-of-line, or if at end-of-line already,
create a new comment.
(custom-declare-variable 'perl-tab-to-comment 'nil '(#$ . -5393) :type 'boolean :group 'perl)
#@69 *Lines starting with this regular expression are not auto-indented.
(custom-declare-variable 'perl-nochange '";?#\\|\f\\|\\s(\\|\\(\\w\\|\\s_\\)+:" '(#$ . -5711) :type 'regexp :group 'perl)
#@2043 Major mode for editing Perl code.
Expression and list commands understand all Perl brackets.
Tab indents for Perl code.
Comments are delimited with # ... \n.
Paragraphs are separated by blank lines only.
Delete converts tabs to spaces as it moves back.
\{perl-mode-map}
Variables controlling indentation style:
 perl-tab-always-indent
    Non-nil means TAB in Perl mode should always indent the current line,
    regardless of where in the line point is when the TAB command is used.
 perl-tab-to-comment
    Non-nil means that for lines which don't need indenting, TAB will
    either delete an empty comment, indent an existing comment, move 
    to end-of-line, or if at end-of-line already, create a new comment.
 perl-nochange
    Lines starting with this regular expression are not auto-indented.
 perl-indent-level
    Indentation of Perl statements within surrounding block.
    The surrounding block's indentation is the indentation
    of the line on which the open-brace appears.
 perl-continued-statement-offset
    Extra indentation given to a substatement, such as the
    then-clause of an if or body of a while.
 perl-continued-brace-offset
    Extra indentation given to a brace that starts a substatement.
    This is in addition to `perl-continued-statement-offset'.
 perl-brace-offset
    Extra indentation for line if it starts with an open brace.
 perl-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.
 perl-label-offset
    Extra indentation for line that is a label.

Various indentation styles:       K&R  BSD  BLK  GNU  LW
  perl-indent-level                5    8    0    2    4
  perl-continued-statement-offset  5    8    4    2    4
  perl-continued-brace-offset      0    0    0    0   -4
  perl-brace-offset               -5   -8    0    0    0
  perl-brace-imaginary-offset      0    0    4    0    0
  perl-label-offset               -5   -8   -2   -2   -2

Turning on Perl mode runs the normal hook `perl-mode-hook'.
(defalias 'perl-mode #[nil "\306 \210\307!\210\310\311\312!\210\313\314!\210\315%P\f\313\316!\210\f\313\317!\210\320\313\321!\210\322\313\323!\210\320\313\324!\210\325\313\326!\210\327\313\330!\210\331\313\332!\210\333\313\334!\210\335\313\336!\210\320\313\337!\210\340\313\341!\210&!\342'\343\344!\207" [perl-mode-map major-mode mode-name perl-mode-abbrev-table local-abbrev-table perl-mode-syntax-table kill-all-local-variables use-local-map perl-mode "Perl" set-syntax-table make-local-variable paragraph-start "$\\|" paragraph-separate paragraph-ignore-fill-prefix t indent-line-function perl-indent-line require-final-newline comment-start "# " comment-end "" comment-column 32 comment-start-skip "\\(^\\|\\s-\\);?#+ *" comment-indent-function perl-comment-indent parse-sexp-ignore-comments font-lock-defaults ((perl-font-lock-keywords perl-font-lock-keywords-1 perl-font-lock-keywords-2) nil nil ((95 . "w"))) imenu-generic-expression nil run-hooks perl-mode-hook page-delimiter perl-imenu-generic-expression imenu-case-fold-search] 2 (#$ . 5909) nil])
(defalias 'perl-comment-indent #[nil "n\203\n l\204\n \301\207\212\302\303x\210n\203 \301\202 iT])\207" [comment-column 0 " 	" nil] 2])
#@121 Insert character and adjust indentation.
If at end-of-line, and not in a comment or a quote, correct the's indentation.
(defalias 'electric-perl-terminator #[(arg) "`	\204N l\203N \212\305y\210\n\205 \306\n\307#?\205> \310U\203' \311\312!\205> \313\314 \"\315\f8\206< \316\f8\206< \317\f8)?)\203N \320\321\"\210\322 \210\323\324!\210)\325\326	!!\207" [insertpos arg comment-start-skip last-command-char pps 0 re-search-forward t 58 looking-at "\\s-*\\(\\w\\|\\s_\\)+$" parse-partial-sexp perl-beginning-of-function 3 4 5 insert-char 1 perl-indent-line delete-char -1 self-insert-command prefix-numeric-value] 4 (#$ . 9190) "P"])
#@824 Indent current line as Perl code, or optionally, insert a tab character.

With an argument, indent the current line, regardless of other options.

If `perl-tab-always-indent' is nil and point is not in the indentation
area at the beginning of the line, simply insert a tab.

Otherwise, indent the current line.  If point was within the indentation
area it is moved to the end of the indentation area.  If the line was
already indented properly and point was not within the indentation area,
and if `perl-tab-to-comment' is non-nil (the default), then do the first
possible action from the following list:

  1) delete an empty comment
  2) move forward to start of comment, indenting if necessary
  3) move forward to end of line
  4) create an empty comment
  5) move backward to start of comment, indenting if necessary.
(defalias 'perl-indent-command #[(&optional arg) "\203 \306\307!\207	\204 i\310 V\203 \311 \207\312\211\211`\313y\210`\314 \nb\210\306\315\"\205\363 \n`U\205\363 <\203J \3168\206E \211\202M \313U\205\363 \312\211 \312\210` f\317U\203p \n U\205\362 \320\321!\202\362 \322\f \"\3238\203\217 \n U\205\362 \320\324\3238\"\202\362 \3258\204\242 \n U\205\362 \326 \202\362 \313y\210!\203\337 \327! \330#\203\337 l\203\310 \313\224b\210\331\312x\210\332` \"\202\362 \n`W\204\325 \n U\203\332 \326 \202\362 \312\202\362 \n U\204\353 \312\202\362 \320\333!\210\334\335!*,\207" [arg perl-tab-always-indent oldpnt delta lsexp bof perl-indent-line "\f" current-indentation insert-tab nil 0 perl-beginning-of-function "\f\\|;?#" 2 61 message "In a format statement" parse-partial-sexp 3 "In a string which starts with a %c." 4 indent-for-comment re-search-forward move " 	" kill-region "Use backslash to quote # characters." ding t perl-tab-to-comment state eol comment-start-skip] 4 (#$ . 9833) "P"])
#@134 Indent current line as Perl code.
Return the amount the indentation 
changed by, or (parse-state) if line starts in a quoted string.
(defalias 'perl-indent-line #[(&optional nochange parse-start) "\306d`Z\206\f \212\307 )\306\211\211\310y\210`\ff\311U\203& \310\202s \312\f!\211<\2033 \n\202s \313\206; !\203C \310\202s \314\306w\210\313\315!\203W \316\n\\]\202p g\317U\203e \nZ\202p g\320U\203p \n\\\niZ\314\306w\210	\247\203\212 	\310U\204\212 `|\210\nj\210dZ`V\203\227 dZb\210	.\207" [parse-start shift-amt indent beg bof pos nil perl-beginning-of-function 0 61 calculate-perl-indent looking-at " 	\f" "\\(\\w\\|\\s_\\)+:" 1 125 123 case-fold-search nochange perl-nochange perl-label-offset perl-indent-level perl-brace-offset] 6 (#$ . 11697)])
#@176 Return appropriate indentation for current line as Perl code.
In usual case returns an integer: the column to indent to.
Returns (parse-state) if line starts inside a string.
(defalias 'calculate-perl-indent #[(&optional parse-start) "\212\306y\210`\307\306\307\211\203 b\210\202 \310 \210`\fW\2030 `\311`\f\306#\211A@\202 \312	8\203: 	\202O\204b \313\307w\210g\314U\203L \306\202O\315 \210o\204Y h\316>\203] \306\202O#\202Of\314U\204u Tb\210\317\307w\210i\202O\315 \210h\320=\204\216 h\321=\203\244 `\322Zfz\323>\203\244 h\320=\203\233 \324!\210\202\236 \306y\210\315 \210\202x h\325>\204\307 \324!\210#i\\\212\fb\210\326\327!)\203\302 $\202\303 \306\\\202Ob\210n\203\336 \212\fb\210\326\330!)\203\336 %\206O\212\331u\210\332\307w\210\326\333!\203\362 \331y\210\202\342 \326\334!\203\212\307\210`)\335\336!\204\342 `\fW\205\n`V\203\337 &Z\202i)\206On\2031%\306U\2031'#\\\2023%\317\307x\210n\203?\306\202A(\\h\340=\203L\341\342!\210\337 \\.\207" [containing-sexp state colon-line-end case-fold-search indent-point parse-start 0 nil perl-beginning-of-function parse-partial-sexp 3 " 	\f" 123 perl-backward-to-noncomment (59 125) " 	" 44 58 2 (119 95) perl-backward-to-start-of-continued-exp (59 125 123) looking-at "[ 	]*{" "[ 	]*}" 1 " 	\f\n" ";?#" "\\(\\w\\|\\s_\\)+:" search-forward ":" current-indentation 41 forward-sexp -1 perl-continued-statement-offset perl-continued-brace-offset perl-indent-level perl-label-offset perl-brace-offset perl-brace-imaginary-offset] 6 (#$ . 12480)])
#@76 Move point backward to after the first non-white-space, skipping comments.
(defalias 'perl-backward-to-noncomment #[nil "\303\211?\2057 `\304y\210\n\203# \305\n	\306\307$\203# \307\225b\210\310\303w\210\311\303x\210o\2062 n?\2062 \312u\211\202 *\207" [stop opoint comment-start-skip nil 0 re-search-forward move 1 ";" " 	\f" -1] 6 (#$ . 14028) nil])
(defalias 'perl-backward-to-start-of-continued-exp #[(lim) "h\301U\203\n \302\303!\210\304y\210`X\203 Tb\210\305\306w\207" [lim 41 forward-sexp -1 0 " 	\f" nil] 2])
#@56 Indent each line of the Perl grouping following point.
(defalias 'indent-perl-exp #[nil "\306\307 \212\310\210\311 \210\307 )\306\306\306\306\312\n!f\313U\203( \314\315!\202\277 \314\316!\210\212\306\210`)\212m\204G `X\203G \317`d\320#\210\2024 \307 )\n\320y\210`\312\f!W\203\267 \321\306\312\n!\"\211\247\203o l\203l \322 \210\307 \306\210`\323\317\312!\"8\203\261 \320y\210\324\325!\203\240 <\204\240 \320U\204\261 \326 ZU\203\261 \203\261 \327\330#\203\261 \331 \210\332y\210\202P \312	!b\210\314\333!.\207" [case-fold-search oldpnt bof-mark eol last-mark lsexp-mark nil point-marker 2 perl-beginning-of-function marker-position 61 message "Can't indent a format statement" "Indenting Perl expression..." parse-partial-sexp 0 perl-indent-line delete-horizontal-space 4 looking-at "\\s-*;?#" current-indentation re-search-forward t indent-for-comment 1 "Indenting Perl expression...done" delta comment-column comment-start-skip] 5 (#$ . 14558) nil])
#@177 Move backward to next beginning-of-function, or as far as possible.
With argument, repeat that many times; negative args move forward.
Returns new value of point in all cases.
(defalias 'perl-beginning-of-function #[(&optional arg) "\204 \301\302W\203 \301u\210\302U\204# \303\304\305\306$\203# \302\225Sb\210`\207" [arg 1 0 re-search-backward "^\\s(\\|^\\s-*sub\\b[^{]+{\\|^\\s-*format\\b[^=]*=\\|^\\." nil move] 5 (#$ . 15552) "p"])
#@183 Move forward to next end-of-function.
The end of a function is found by moving forward from the beginning of one.
With argument, repeat that many times; negative args move backward.
(defalias 'perl-end-of-function #[(&optional arg) "\204 \304\305\306V\203S `dW\203S `\307	\203' \304u\210\310\304!\210o\2032 o\204. \311u\210\310\311!\210\307\312\304!\210\313\307w\210\314\315!\203E \304y\210`X\204 *S\211\202	 \306W\205\223 `\310\304!\210\316\304!\210\304y\210`Y\203\213 \310\317!\210o\204\210 \312\304!\210\313\307w\210\314\315!\203\213 \304y\210\202\213 eb\210)T\211\202T )\207" [arg first npos pos 1 t 0 nil perl-beginning-of-function -1 forward-list " 	" looking-at "[#\n]" forward-sexp 2] 3 (#$ . 16001) "p"])
#@55 Put mark at end of Perl function, point at beginning.
(defalias 'mark-perl-function #[nil "\300`!\210\301 \210\300`!\210\302 \210\303 \207" [push-mark perl-end-of-function perl-beginning-of-function backward-paragraph] 2 (#$ . 16738) nil])
(provide 'perl-mode)
