;ELC   
;;; compiled by rms@mole.gnu.ai.mit.edu on Fri Feb 23 19:57:28 1996
;;; from file /home/fsf/rms/e19/lisp/perl-mode.el
;;; emacs version 19.30.90.5.
;;; 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.29")))
    (error "`perl-mode.el' was compiled for Emacs 19.29 or later"))


#@43 Abbrev table in use in perl-mode buffers.
(defvar perl-mode-abbrev-table nil (#$ . 476))
(define-abbrev-table (quote perl-mode-abbrev-table) nil)
#@27 Keymap used in Perl mode.
(defvar perl-mode-map nil (#$ . 628))
(byte-code "C  ##########" [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 (quote c-macro-expand) "cmacexp" '(#$ . 1033) t)
#@43 Syntax table in use in perl-mode buffers.
(defvar perl-mode-syntax-table nil (#$ . 1238))
(byte-code "i  !################" [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 (quote ((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))) (#$ . 1618))
#@43 Subdued level highlighting for Perl mode.
(defconst perl-font-lock-keywords-1 (quote (("^#[ 	]*include[ 	]+\\(<[^>\"\n]+>\\)" 1 font-lock-string-face) ("^#[ 	]*define[ 	]+\\(\\sw+\\)(" 1 font-lock-function-name-face) ("^#[ 	]*if\\>" ("\\<\\(defined\\)\\>[ 	]*(?\\(\\sw+\\)?" nil nil (1 font-lock-reference-face) (2 font-lock-variable-name-face nil t))) ("^#[ 	]*\\(\\sw+\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-reference-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-reference-face nil t)))) (#$ . 1924))
#@41 Gaudy level highlighting for Perl mode.
(defconst perl-font-lock-keywords-2 (byte-code "	ưͯ\"" [append perl-font-lock-keywords-1 "\\<\\(" "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 (quote (underline))))) ("<\\(\\sw+\\)>" 1 font-lock-reference-face) ("\\<\\(continue\\|goto\\|last\\|next\\|redo\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-reference-face nil t)) ("^[ 	]*\\(\\sw+\\)[ 	]*:[^:]" 1 font-lock-reference-face)] 10) (#$ . 2645))
#@48 Default expressions to highlight in Perl mode.
(defvar perl-font-lock-keywords perl-font-lock-keywords-1 (#$ . 3462))
#@67 *Indentation of Perl statements with respect to containing block.
(defvar perl-indent-level 4 (#$ . -3586))
#@54 *Extra indent for lines not starting new statements.
(defvar perl-continued-statement-offset 4 (#$ . -3700))
#@120 *Extra indent for substatements that start with open-braces.
This is in addition to `perl-continued-statement-offset'.
(defvar perl-continued-brace-offset -4 (#$ . -3816))
#@74 *Extra indentation for braces, compared with other text in same context.
(defvar perl-brace-offset 0 (#$ . -3994))
#@75 *Imagined indentation of an open brace that actually follows a statement.
(defvar perl-brace-imaginary-offset 0 (#$ . -4115))
#@60 *Offset of Perl label lines relative to usual indentation.
(defvar perl-label-offset -2 (#$ . -4247))
#@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.
(defvar perl-tab-always-indent t (#$ . -4356))
#@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.
(defvar perl-tab-to-comment nil (#$ . -4574))
#@69 *Lines starting with this regular expression are not auto-indented.
(defvar perl-nochange ";?#\\|\f\\|\\s(\\|\\(\\w\\|\\s_\\)+:" (#$ . -4844))
#@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 " \n!\n!!P\f!\f!!!!!!!!!! !#\"!" [kill-all-local-variables use-local-map perl-mode-map perl-mode major-mode "Perl" mode-name perl-mode-abbrev-table local-abbrev-table set-syntax-table perl-mode-syntax-table make-local-variable paragraph-start "$\\|" page-delimiter 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 perl-imenu-generic-expression run-hooks perl-mode-hook] 2 (#$ . 4995) nil])
(defalias 'perl-comment-indent #[nil "n\n l\n xn  iT])" [0 " 	" nil comment-column] 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) "`	P lP y\f#?? U$ !?  \"\f\f8= \f8= \f8)?)P \" !)	!!" [insertpos arg 0 re-search-forward comment-start-skip t last-command-char 58 looking-at "\\s-*\\(\\w\\|\\s_\\)+$" parse-partial-sexp perl-beginning-of-function pps 3 4 5 insert-char 1 perl-indent-line delete-char -1 self-insert-command prefix-numeric-value] 4 (#$ . 8031) "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) " ! i V  Ɖ`	\ny`	 \nb\n\"`U<X 8R \n	\\ UƉ`\nfU U!	\"8 U8\"8 U y# l ˔bx`\"`W U  U !!*," [arg perl-indent-line "\f" perl-tab-always-indent current-indentation insert-tab nil oldpnt delta lsexp bof 0 perl-beginning-of-function "\f\\|;?#" perl-tab-to-comment 2 state eol 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 comment-start-skip move " 	" kill-region "Use backslash to quote # characters." ding t] 4 (#$ . 8577) "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) "d`Z	\f  )y`fU) ɂw !<7 \fw ? !G ɂw w![ \f\\]t gUi \fZt gUt \f\\\fiZw U `|\fjdZ`V dZb." [nil parse-start perl-beginning-of-function shift-amt indent beg bof pos case-fold-search 0 61 calculate-perl-indent looking-at nochange perl-nochange " 	\f" "\\(\\w\\|\\s_\\)+:" 1 perl-label-offset 125 perl-indent-level 123 perl-brace-offset] 6 (#$ . 10153)])
#@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) "y` b  `W6 ``#A@ 8@ T\nh wgUR T o_ h>c TT\nfUw \nTbiT h= h= `Zfz> h= \n! y z h> \n!i\\b!)  \\T\nbn b!) Tuw! y !	`)! `W\f`V \"Zi)Tn6U6#\\8xnDF%\\h=Q! \\." [0 nil containing-sexp state colon-line-end case-fold-search indent-point parse-start perl-beginning-of-function parse-partial-sexp 3 " 	\f" 123 perl-backward-to-noncomment (59 125) perl-continued-statement-offset 44 58 2 (119 95) perl-backward-to-start-of-continued-exp (59 125 123) looking-at "[ 	]*{" perl-continued-brace-offset "[ 	]*}" perl-indent-level 1 " 	\f\n" ";?#" "\\(\\w\\|\\s_\\)+:" search-forward ":" current-indentation perl-label-offset perl-brace-offset " 	" perl-brace-imaginary-offset 41 forward-sexp -1] 6 (#$ . 10790)])
#@76 Move point backward to after the first non-white-space, skipping comments.
(defalias 'perl-backward-to-noncomment #[nil "	?3 `y\n$ Ǖbwxo. n?. u *" [nil stop opoint 0 re-search-forward comment-start-skip move 1 ";" " 	\f" -1] 6 (#$ . 11931) nil])
(defalias 'perl-backward-to-start-of-continued-exp #[(lim) "hU\n !y`\fX \fTbw" [41 forward-sexp -1 0 lim " 	\f" nil] 2])
#@56 Indent each line of the Perl grouping following point.
(defalias 'indent-perl-exp #[nil "   )	\n!fU- ! !`)mN `XN `d#:  )	y`!W !\"\n| lx   	`	!\"8 y! \n< \nU  \nZU #  yZ !b!." [nil case-fold-search point-marker oldpnt 2 perl-beginning-of-function bof-mark eol last-mark lsexp-mark delta 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 comment-column re-search-forward comment-start-skip t indent-for-comment 1 "Indenting Perl expression...done"] 5 (#$ . 12347) 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) " W uU# $# Sb`" [arg 1 0 re-search-backward "^\\s(\\|^\\s-*sub\\b[^{]+{\\|^\\s-*format\\b[^=]*=\\|^\\." nil move] 5 (#$ . 13099) "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) " VV `dWV `) u!o4 o0 u!!w!G y`X *S	 W `!!y`Y !o !w! y eb)TW )" [arg 1 t first 0 nil npos pos perl-beginning-of-function -1 forward-list " 	" looking-at "[#\n]" forward-sexp 2] 3 (#$ . 13497) "p"])
#@55 Put mark at end of Perl function, point at beginning.
(defalias 'mark-perl-function #[nil "`! `!  " [push-mark perl-end-of-function perl-beginning-of-function backward-paragraph] 2 (#$ . 14026) nil])
