MMCT TEAM
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  ]

Current File : //usr/share/emacs/24.3/lisp/progmodes/sh-script.elc
;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/sh-script.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\"\210\302\305\304\"\210\302\306\307\"\210\302\310\307\"\210\311\312\313\314\315\316%\210\311\317\313\320\321\322\315\312\323\324&	\210\325\326\327\330\331\332\315\317&\210\325\333\334\335\331\336\315\317&\210\325\337\340\341\331\342\315\317&\210\325\343\344\345\331\346\315\317&\210\325\347\350\351\331\352\315\317\353\354&	\207" [require executable autoload comint-completion-at-point "comint" comint-filename-completion shell-command-completion "shell" shell-environment-variable-completion custom-declare-group sh nil "Shell programming utilities." :group languages sh-script "Shell script mode." :link (custom-group-link :tag "Font Lock Faces group" font-lock-faces) :prefix "sh-" custom-declare-variable sh-ancestor-alist '((ash . sh) (bash . jsh) (bash2 . jsh) (dtksh . ksh) (es . rc) (itcsh . tcsh) (jcsh . csh) (jsh . sh) (ksh . ksh88) (ksh88 . jsh) (oash . sh) (pdksh . ksh88) (posix . sh) (tcsh . csh) (wksh . ksh88) (wsh . sh) (zsh . ksh88) (rpm . sh)) "Alist showing the direct ancestor of various shells.\nThis is the basis for `sh-feature'.  See also `sh-alias-alist'.\nBy default we have the following three hierarchies:\n\ncsh		C Shell\n  jcsh		C Shell with Job Control\n  tcsh		TENEX C Shell\n    itcsh	Ian's TENEX C Shell\nrc		Plan 9 Shell\n  es		Extensible Shell\nsh		Bourne Shell\n  ash		Almquist Shell\n  jsh		Bourne Shell with Job Control\n    bash	GNU Bourne Again Shell\n    ksh88	Korn Shell '88\n      ksh	Korn Shell '93\n	dtksh	CDE Desktop Korn Shell\n      pdksh	Public Domain Korn Shell\n      wksh	Window Korn Shell\n      zsh	Z Shell\n  oash		SCO OA (curses) Shell\n  posix		IEEE 1003.2 Shell Standard\n  wsh		? Shell" :type (repeat (cons symbol symbol)) sh-alias-alist (append (if (eq system-type 'gnu/linux) '((csh . tcsh) (ksh . pdksh))) '((ksh . ksh88) (bash2 . bash) (sh5 . sh))) "Alist for transforming shell names to what they really are.\nUse this where the name of the executable doesn't correspond to the type of\nshell it really is." (repeat (cons symbol symbol)) sh-shell-file (or (and (memq system-type '(ms-dos windows-nt)) (let* ((shell (getenv "SHELL")) (shell-base (and shell (file-name-nondirectory shell)))) (if (or (null shell) (member (downcase shell-base) '("command.com" "cmd.exe" "4dos.com" "ndos.com" "cmdproxy.exe"))) "/bin/sh" (file-name-sans-extension (downcase shell))))) (getenv "SHELL") "/bin/sh") "The executable file name for the shell being programmed." string sh-shell-arg '((bash) (csh . "-f") (pdksh) (ksh88) (rc . "-p") (wksh) (zsh . "-f")) "Single argument string for the magic number.  See `sh-feature'." (repeat (cons (symbol :tag "Shell") (choice (const :tag "No Arguments" nil) (string :tag "Arguments") (sexp :format "Evaluate: %v")))) sh-imenu-generic-expression `((sh (nil "^\\s-*function\\s-+\\([[:alpha:]_][[:alnum:]_]+\\)\\s-*\\(?:()\\)?" 1) (nil "^\\s-*\\([[:alpha:]_][[:alnum:]_]+\\)\\s-*()" 1))) "Alist of regular expressions for recognizing shell function definitions.\nSee `sh-feature' and `imenu-generic-expression'." (alist :key-type (symbol :tag "Shell") :value-type (alist :key-type (choice :tag "Title" string (const :tag "None" nil)) :value-type (repeat :tag "Regexp, index..." sexp))) :version "20.4"] 10)
#@246 Alist of shell variable names that should be included in completion.
These are used for completion in addition to all the variables named
in `process-environment'.  Each element looks like (VAR . VAR), where
the car and cdr are the same symbol.
(defvar sh-shell-variables nil (#$ . 3802))
#@49 Non-nil if `sh-shell-variables' is initialized.
(defvar sh-shell-variables-initialized nil (#$ . 4097))
#@63 Convert a shell name SHELL to the one we should handle it as.
(defalias 'sh-canonicalize-shell #[(shell) "\302\303\"\203
\304\211\224O9\204\305!	\236A\206\207" [shell sh-alias-alist string-match "\\.exe\\'" 0 intern] 3 (#$ . 4207)])
#@62 The shell being programmed.  This is set by \[sh-set-shell].
(defvar sh-shell (byte-code "\301\302!!\207" [sh-shell-file sh-canonicalize-shell file-name-nondirectory] 3) (#$ . 4459))
(define-abbrev-table 'sh-mode-abbrev-table nil)
#@72 Copy TABLE and set syntax for successive CHARs according to strings S.
(defalias 'sh-mode-syntax-table #[(table &rest list) "\302!	\203\303	\211A@	\211A@#\210\202\207" [table list copy-syntax-table modify-syntax-entry] 4 (#$ . 4697)])
#@91 The syntax table to use for Shell-Script mode.
This is buffer-local in every such buffer.
(defvar sh-mode-syntax-table (sh-mode-syntax-table nil 35 "<" 10 ">#" 34 "\"\"" 39 "\"'" 96 "\"`" 36 "'" 33 #1="_" 37 #1# 58 #1# 46 #1# 94 #1# 126 #1# 44 #1# 61 #2="." 60 #2# 62 #2#) (#$ . 4948))
#@60 Syntax-table used in Shell-Script mode.  See `sh-feature'.
(defvar sh-mode-syntax-table-input '((sh)) (#$ . 5240))
#@35 Keymap used in Shell-Script mode.
(defvar sh-mode-map (byte-code "\302 \302 \303	\304\305#\210\303	\306\307#\210\303	\310\311#\210\303	\312\313#\210\303	\314\315#\210\303	\316\317#\210\303	\320\321#\210\303	\322\323#\210\303	\324\325#\210\303	\326\327#\210\303	\330\331#\210\303	\332\333#\210\303	\334\335#\210\303	\336\337#\210\303	\340\341#\210\303	\342\343#\210\303	\344\345#\210\303	\346\347#\210\303	\350\351#\210\303	\352\353#\210\303	\354\355#\210\303	\356\357#\210\303	\360\361#\210\303	\362\363#\210\303	\364\365B#\210\303\366\367#\210\303\370\371#\210\303\372\373#\210\303\374\375#\210\303\376\377#\210\303\201@\201A#\210\303\201B\201C#\210\303\201D\201E#\210\303\201F\201G#\210\303\201H\201I#\210\303\201J\201K#\210\303\201L\201M#\210\303\201N\201O#\210\303\201P\201Q#\210\303\201R\201S#\210\303\201T\201U#\210\303\201V\201W#\210\303\201X\201Y#\210\303\201Z\201[#\210\303\201\\\201]#\210\303\201^\201_#\210\303\201`\201a#\210	*\207" [menu-map map make-sparse-keymap define-key "(" sh-function "" sh-while "" sh-until "" sh-tmp-file "" sh-select "" sh-repeat "" sh-while-getopts "\f" sh-indexed-loop "	" sh-if "" sh-for "" sh-case "?" sh-show-indent "=" sh-set-indent "<" sh-learn-line-indent ">" sh-learn-buffer-indent "" sh-backslash-region "=" sh-assignment "+" sh-add "\230" sh-execute-region "" executable-interpret [remap delete-backward-char] backward-delete-char-untabify ":" sh-set-shell [remap backward-sentence] sh-beginning-of-command [remap forward-sentence] sh-end-of-command [menu-bar sh-script] "Sh-Script" [sh-learn-buffer-indent] (menu-item "Learn buffer indentation" sh-learn-buffer-indent :help "Learn how to indent the buffer the way it currently is.") [sh-learn-line-indent] (menu-item "Learn line indentation" sh-learn-line-indent :help "Learn how to indent a line as it currently is indented") [sh-show-indent] (menu-item "Show indentation" sh-show-indent :help "Show the how the current line would be indented") [sh-set-indent] (menu-item "Set indentation" sh-set-indent :help "Set the indentation for the current line") [sh-pair] (menu-item "Insert braces and quotes in pairs" electric-pair-mode :button (:toggle bound-and-true-p electric-pair-mode) :help "Inserting a brace or quote automatically inserts the matching pair") [sh-s0] ("--") [sh-function] (menu-item "Function..." sh-function :help "Insert a function definition") [sh-add] (menu-item "Addition..." sh-add :help "Insert an addition of VAR and prefix DELTA for Bourne (type) shell") [sh-until] (menu-item "Until Loop" sh-until :help "Insert an until loop") [sh-repeat] (menu-item "Repeat Loop" sh-repeat :help "Insert a repeat loop definition") [sh-while] (menu-item "While Loop" sh-while :help "Insert a while loop") [sh-getopts] (menu-item "Options Loop" sh-while-getopts :help "Insert a while getopts loop.") [sh-indexed-loop] (menu-item "Indexed Loop" sh-indexed-loop :help "Insert an indexed loop from 1 to n.") [sh-select] (menu-item "Select Statement" sh-select :help "Insert a select statement ") [sh-if] (menu-item "If Statement" sh-if :help "Insert an if statement") [sh-for] (menu-item "For Loop" sh-for :help "Insert a for loop") [sh-case] (menu-item "Case Statement" sh-case :help "Insert a case/switch statement") [sh-s1] ("--") [sh-exec] (menu-item "Execute region" sh-execute-region :help "Pass optional header and region to a subshell for noninteractive execution") [sh-exec-interpret] (menu-item "Execute script..." executable-interpret :help "Run script with user-specified args, and collect output in a buffer") [sh-set-shell] (menu-item "Set shell type..." sh-set-shell :help "Set this buffer's shell to SHELL (a string)") [sh-backslash-region] (menu-item "Backslash region" sh-backslash-region :help "Insert, align, or delete end-of-line backslashes on the lines in the region.")] 5) (#$ . 5361))
#@70 Value to use for `skeleton-pair-default-alist' in Shell-Script mode.
(defvar sh-skeleton-pair-default-alist '((40 _ 41) (41) (91 32 _ 32 93) (93) (123 _ 125) (125)) (#$ . 9274))
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\315\316\304\317\306\307&\210\320\314\321\322#\210\300\323\324\325\304\317\306\307&\207" [custom-declare-variable sh-dynamic-complete-functions '(shell-environment-variable-completion shell-command-completion comint-filename-completion) "Functions for doing TAB dynamic completion." :type (repeat function) :group sh-script sh-assignment-regexp `((csh . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?[ 	]*[-+*/%^]?=") (ksh88 \, (concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?" "[ 	]*\\(?:[-+*/%&|~^]\\|<<\\|>>\\)?=")) (bash . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?\\+?=") (rc . "\\<\\([[:alnum:]_*]+\\)[ 	]*=") (sh . "\\<\\([[:alnum:]_]+\\)=")) "Regexp for the variable name and what may follow in an assignment.\nFirst grouping matches the variable name.  This is upto and including the `='\nsign.  See `sh-feature'." (repeat (cons (symbol :tag "Shell") (choice regexp (sexp :format "Evaluate: %v")))) sh-indentation 4 "The width for further indentation in Shell-Script mode." integer put safe-local-variable integerp sh-remember-variable-min 3 "Don't remember variables less than this length for completing reads."] 8)
#@128 When non-nil is the end of header for prepending by \[sh-execute-region].
That command is also used for setting this variable.
(defvar sh-header-marker nil (#$ . 10669))
(byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\302\312\313\314\306\307\310\311&\210\302\315\316\317\306\320\310\311&\207" [make-variable-buffer-local sh-header-marker custom-declare-variable sh-beginning-of-command "\\([;({`|&]\\|\\`\\|[^\\]\n\\)[ 	]*\\([/~[:alnum:]:]\\)" "Regexp to determine the beginning of a shell command.\nThe actual command starts at the beginning of the second \\(grouping\\)." :type regexp :group sh-script sh-end-of-command "\\([/~[:alnum:]:]\\)[ 	]*\\([;#)}`|&]\\|$\\)" "Regexp to determine the end of a shell command.\nThe actual command ends at the end of the first \\(grouping\\)." sh-here-document-word "EOF" "Word to delimit here documents.\nIf the first character of this string is \"-\", this is taken as\npart of the redirection operator, rather than part of the\nword (that is, \"<<-\" instead of \"<<\").  This is a feature\nused by some shells (for example Bash) to indicate that leading\ntabs inside the here document should be ignored.  In this case,\nEmacs indents the initial body and end of the here document with\ntabs, to the same level as the start (note that apart from this\nthere is no support for indentation of here documents).  This\nwill only work correctly if `sh-basic-offset' is a multiple of\n`tab-width'.\n\nAny quote characters or leading whitespace in the word are\nremoved when closing the here document." string] 8)
#@75 Initial input in Bourne if, while and until skeletons.  See `sh-feature'.
(defvar sh-test '((sh "[  ]" . 3) (ksh88 "[[  ]]" . 4)) (#$ . 12243))
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\315\316\304\317\306\307&\207" [custom-declare-variable sh-builtins '((bash sh-append posix "." "alias" "bg" "bind" "builtin" "caller" "compgen" "complete" "declare" "dirs" "disown" "enable" "fc" "fg" "help" "history" "jobs" "kill" "let" "local" "popd" "printf" "pushd" "shopt" "source" "suspend" "typeset" "unalias") (bourne sh-append shell "eval" "export" "getopts" "newgrp" "pwd" "read" "readonly" "times" "ulimit") (csh sh-append shell "alias" "chdir" "glob" "history" "limit" "nice" "nohup" "rehash" "setenv" "source" "time" "unalias" "unhash") (dtksh sh-append wksh) (es "access" "apids" "cd" "echo" "eval" "false" "let" "limit" "local" "newpgrp" "result" "time" "umask" "var" "vars" "wait" "whatis") (jsh sh-append sh "bg" "fg" "jobs" "kill" "stop" "suspend") (jcsh sh-append csh "bg" "fg" "jobs" "kill" "notify" "stop" "suspend") (ksh88 sh-append bourne "alias" "bg" "false" "fc" "fg" "jobs" "kill" "let" "print" "time" "typeset" "unalias" "whence") (oash sh-append sh "checkwin" "dateline" "error" "form" "menu" "newwin" "oadeinit" "oaed" "oahelp" "oainit" "pp" "ppfile" "scan" "scrollok" "wattr" "wclear" "werase" "win" "wmclose" "wmmessage" "wmopen" "wmove" "wmtitle" "wrefresh") (pdksh sh-append ksh88 "bind") (posix sh-append sh "command") (rc "builtin" "cd" "echo" "eval" "limit" "newpgrp" "shift" "umask" "wait" "whatis") (sh sh-append bourne "hash" "test" "type") (shell "cd" "echo" "eval" "set" "shift" "umask" "unset" "wait") (wksh sh-append ksh88 "Xt[A-Z][A-Za-z]*") (zsh sh-append ksh88 "autoload" "bindkey" "builtin" "chdir" "compctl" "declare" "dirs" "disable" "disown" "echotc" "enable" "functions" "getln" "hash" "history" "integer" "limit" "local" "log" "popd" "pushd" "r" "readonly" "rehash" "sched" "setopt" "source" "suspend" "true" "ttyctl" "type" "unfunction" "unhash" "unlimit" "unsetopt" "vared" "which")) "List of all shell builtins for completing read and fontification.\nNote that on some systems not all builtins are available or some are\nimplemented as aliases.  See `sh-feature'." :type (repeat (cons (symbol :tag "Shell") (choice (repeat string) (sexp :format "Evaluate: %v")))) :group sh-script sh-leading-keywords '((bash sh-append sh "time") (csh "else") (es "true" "unwind-protect" "whatis") (rc "else") (sh "!" "do" "elif" "else" "if" "then" "trap" "type" "until" "while")) "List of keywords that may be immediately followed by a builtin or keyword.\nGiven some confusion between keywords and builtins depending on shell and\nsystem, the distinction here has been based on whether they influence the\nflow of control or syntax.  See `sh-feature'." (repeat (cons (symbol :tag "Shell") (choice (repeat string) (sexp :format "Evaluate: %v")))) sh-other-keywords '((bash sh-append bourne "bye" "logout" "select") (bourne sh-append sh "function") (csh sh-append shell "breaksw" "default" "end" "endif" "endsw" "foreach" "goto" "if" "logout" "onintr" "repeat" "switch" "then" "while") (es "break" "catch" "exec" "exit" "fn" "for" "forever" "fork" "if" "return" "throw" "while") (ksh88 sh-append bourne "select") (rc "break" "case" "exec" "exit" "fn" "for" "if" "in" "return" "switch" "while") (sh sh-append shell "done" "esac" "fi" "for" "in" "return") (shell "break" "case" "continue" "exec" "exit") (zsh sh-append bash "select" "foreach")) "List of keywords not in `sh-leading-keywords'.\nSee `sh-feature'." (repeat (cons (symbol :tag "Shell") (choice (repeat string) (sexp :format "Evaluate: %v"))))] 8)
#@78 List of all shell variables available for completing read.
See `sh-feature'.
(defvar sh-variables '((bash sh-append sh "allow_null_glob_expansion" "auto_resume" "BASH" "BASH_ENV" "BASH_VERSINFO" "BASH_VERSION" "cdable_vars" "COMP_CWORD" "COMP_LINE" "COMP_POINT" "COMP_WORDS" "COMPREPLY" "DIRSTACK" "ENV" "EUID" "FCEDIT" "FIGNORE" "FUNCNAME" "glob_dot_filenames" "GLOBIGNORE" "GROUPS" "histchars" "HISTCMD" "HISTCONTROL" "HISTFILE" "HISTFILESIZE" "HISTIGNORE" "history_control" "HISTSIZE" "hostname_completion_file" "HOSTFILE" "HOSTTYPE" "IGNOREEOF" "ignoreeof" "INPUTRC" "LINENO" "MACHTYPE" "MAIL_WARNING" "noclobber" "nolinks" "notify" "no_exit_on_failed_exec" "NO_PROMPT_VARS" "OLDPWD" "OPTERR" "OSTYPE" "PIPESTATUS" "PPID" "POSIXLY_CORRECT" "PROMPT_COMMAND" "PS3" "PS4" "pushd_silent" "PWD" "RANDOM" "REPLY" "SECONDS" "SHELLOPTS" "SHLVL" "TIMEFORMAT" "TMOUT" "UID") (csh sh-append shell "argv" "cdpath" "child" "echo" "histchars" "history" "home" "ignoreeof" "mail" "noclobber" "noglob" "nonomatch" "path" "prompt" "shell" "status" "time" "verbose") (es sh-append shell "apid" "cdpath" "CDPATH" "history" "home" "ifs" "noexport" "path" "pid" "prompt" "signals") (jcsh sh-append csh "notify") (ksh88 sh-append sh "ENV" "ERRNO" "FCEDIT" "FPATH" "HISTFILE" "HISTSIZE" "LINENO" "OLDPWD" "PPID" "PS3" "PS4" "PWD" "RANDOM" "REPLY" "SECONDS" "TMOUT") (oash sh-append sh "FIELD" "FIELD_MAX" "LAST_KEY" "OALIB" "PP_ITEM" "PP_NUM") (rc sh-append shell "apid" "apids" "cdpath" "CDPATH" "history" "home" "ifs" "path" "pid" "prompt" "status") (sh sh-append shell "CDPATH" "IFS" "OPTARG" "OPTIND" "PS1" "PS2") (shell "COLUMNS" "EDITOR" "HOME" "HUSHLOGIN" "LANG" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES" "LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LINES" "LOGNAME" "MAIL" "MAILCHECK" "MAILPATH" "PAGER" "PATH" "SHELL" "TERM" "TERMCAP" "TERMINFO" "VISUAL") (tcsh sh-append csh "addsuffix" "ampm" "autocorrect" "autoexpand" "autolist" "autologout" "chase_symlinks" "correct" "dextract" "edit" "el" "fignore" "gid" "histlit" "HOST" "HOSTTYPE" "HPATH" "ignore_symlinks" "listjobs" "listlinks" "listmax" "matchbeep" "nobeep" "NOREBIND" "oid" "printexitvalue" "prompt2" "prompt3" "pushdsilent" "pushdtohome" "recexact" "recognize_only_executables" "rmstar" "savehist" "SHLVL" "showdots" "sl" "SYSTYPE" "tcsh" "term" "tperiod" "tty" "uid" "version" "visiblebell" "watch" "who" "wordchars") (zsh sh-append ksh88 "BAUD" "bindcmds" "cdpath" "DIRSTACKSIZE" "fignore" "FIGNORE" "fpath" "HISTCHARS" "hostcmds" "hosts" "HOSTS" "LISTMAX" "LITHISTSIZE" "LOGCHECK" "mailpath" "manpath" "NULLCMD" "optcmds" "path" "POSTEDIT" "prompt" "PROMPT" "PROMPT2" "PROMPT3" "PROMPT4" "psvar" "PSVAR" "READNULLCMD" "REPORTTIME" "RPROMPT" "RPS1" "SAVEHIST" "SPROMPT" "STTY" "TIMEFMT" "TMOUT" "TMPPREFIX" "varcmds" "watch" "WATCH" "WATCHFMT" "WORDCHARS" "ZDOTDIR")) (#$ . 15936))
(byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\210\311\312\313\301#\210\311\312\314\315\316!\206 \317#\207" [custom-declare-face sh-heredoc ((((min-colors 88) (class color) (background dark)) (:foreground "yellow1" :weight bold)) (((class color) (background dark)) (:foreground "yellow" :weight bold)) (((class color) (background light)) (:foreground "tan1")) (t (:weight bold))) "Face to show a here-document" :group sh-indentation sh-quoted-exec ((((class color) (background dark)) (:foreground "salmon")) (((class color) (background light)) (:foreground "magenta")) (t (:weight bold))) "Face to show quoted execs like ``" put sh-heredoc-face face-alias obsolete-face purecopy "22.1" t] 6)
(defvar sh-heredoc-face 'sh-heredoc)
(custom-declare-face 'sh-escaped-newline '((t :inherit font-lock-string-face)) "Face used for (non-escaped) backslash at end of a line in Shell-script mode." :group 'sh-script :version "22.1")
#@76 Default expressions to highlight in Shell Script modes.  See `sh-feature'.
(defvar sh-font-lock-keywords-var '((csh sh-append shell ("\\${?[#?]?\\([[:alpha:]_][[:alnum:]_]*\\|0\\)" 1 font-lock-variable-name-face)) (es sh-append executable-font-lock-keywords ("\\$#?\\([[:alpha:]_][[:alnum:]_]*\\|[0-9]+\\)" 1 font-lock-variable-name-face)) (rc sh-append es) (bash sh-append sh ("\\$(\\(\\sw+\\)" (1 'sh-quoted-exec t))) (sh sh-append shell ("\\$\\({#?\\)?\\([[:alpha:]_][[:alnum:]_]*\\|[-#?@!]\\)" 2 font-lock-variable-name-face) ("^\\(\\sw+\\)[ 	]*(" 1 font-lock-function-name-face) ("\\<\\(function\\)\\>[ 	]*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t)) ("\\(?:^\\s *\\|[[();&|]\\s *\\|\\(?:\\s +-[ao]\\|if\\|else\\|then\\|while\\|do\\)\\s +\\)\\(!\\)" 1 font-lock-negation-char-face)) (shell ("\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*\\(\\\\\\)$" 3 'sh-escaped-newline) ("\\\\[^[:alnum:]]" 0 font-lock-string-face) ("\\${?\\([[:alpha:]_][[:alnum:]_]*\\|[0-9]+\\|[$*_]\\)" 1 font-lock-variable-name-face)) (rpm sh-append rpm2 ("%{?\\(\\sw+\\)" 1 font-lock-keyword-face)) (rpm2 sh-append shell ("^\\(\\sw+\\):" 1 font-lock-variable-name-face))) (#$ . 19712))
#@52 Subdued level highlighting for Shell Script modes.
(defvar sh-font-lock-keywords-var-1 '((sh "[ 	]in\\>")) (#$ . 20904))
#@50 Gaudy level highlighting for Shell Script modes.
(defvar sh-font-lock-keywords-var-2 nil (#$ . 21031))
(defconst sh-st-punc '(1))
(defconst sh-here-doc-syntax '(15))
(defconst sh-escaped-line-re "\\(?:\\(?:.*[^\\\n]\\)?\\(?:\\\\\\\\\\)*\\\\\n\\)*.*")
(defconst sh-here-doc-open-re (concat "<<-?\\s-*\\\\?\\(\\(?:['\"][^'\"]+['\"]\\|\\sw\\|[-/~._]\\)+\\)" sh-escaped-line-re "\\(\n\\)"))
(defalias 'sh--inside-noncommand-expression #[(pos) "\212\303!\211A@\205:	A@b\210\304f\211\305=\203*`Sf\305=\2059`SSf\306=\2029\n\307>\2038`Sf\306=\2029\304)*\207" [pos ppss #1=#:val syntax-ppss nil 40 36 (123 91)] 3])
#@307 Determine the syntax of the \n after a <<EOF.
START is the position of <<.
STRING is the actual word used as delimiter (e.g. "EOF").
INDENTED is non-nil if the here document's content (and the EOF mark) can
be indented (i.e. a <<- was used rather than just <<).
Point is at the beginning of the next line.
(defalias 'sh-font-lock-open-heredoc #[(start string eol) "Sf\306>\206\307!\206\310!?\205U\311\312\313	#\212\314\n!)\3158\203/\316\nS\n\317\320$\210\3218\204>\322\n\"\323V\203F\316\nT\324\325$\210\316\n\211T\326\f$\210
\327\\b\210*\207" [start string eol ppss str sh-here-doc-syntax (60 62) sh-in-comment-or-string sh--inside-noncommand-expression replace-regexp-in-string "['\"]" "" syntax-ppss 4 put-text-property syntax-table (12) 5 count-lines 1 syntax-multiline t sh-here-doc-marker 2] 5 (#$ . 21653)])
(defalias 'sh-syntax-propertize-here-doc #[(end) "\306 \3078\310=\205-\311\3128\313\"\314\315\316\317\n!\320Q\321#\205,\322\224\323\f\211T\324
$)*)\207" [ppss case-fold-search key end eol sh-here-doc-syntax syntax-ppss 3 t get-text-property 8 sh-here-doc-marker nil re-search-forward "^\\([ 	]*\\)" regexp-quote "\\(\n\\)" move 2 put-text-property syntax-table] 5])
#@140 Search for a subshell embedded in a string.
Find all the unescaped " characters within said subshell, remembering that
subshells can nest.
(defalias 'sh-font-lock-quoted-subshell #[(limit) "\304\305 8\306=\205\344`Sf\307=\203\310\202\311\312	\205\343\313\nw\210`\nW\205\343\314f\211\315=\203@	\316=\204\334\317u\210\320\nw\210\202\334\321=\203L\317u\210\202\334\306=\203v	\316=\203a\211A@\202g	B\316	\203\334\322``T\323\324$\210\202\334\307=\203\224	\310=\203\213\211A@\202\334	B\310\202\334\325=\203\256`Tf\326=\203\334\317u\210	B\311\202\334\326=\203\303	\316=\204\334	B\311\202\334\327=\203\330	\316=\204\334\211A@\202\334\330\331!\210)\317u\210\202*\207" [states state limit #1=#:val 3 syntax-ppss 34 96 backquote code (double-quote) "^'\\\\\"`$()" nil 39 double-quote 1 "^'" 92 put-text-property syntax-table (1) 36 40 41 error "Internal error in sh-font-lock-quoted-subshell"] 6 (#$ . 22867)])
(defalias 'sh-is-quoted-p #[(pos) "Sf\301=\205
\302S!?\207" [pos 92 sh-is-quoted-p] 2])
(defalias 'sh-font-lock-paren #[(start) "\303\304 8?\205\260\212\305	b\210\306d[!\210l\203#\307`!\203#\310u\210\202\311\312!\313U\203#\314\305x\313U\203#\307`S!\203A`\315Zb\204#`Sf\316>\203P\305\317\320\217\204#`Sf\321=\203]\310u\210`\306d[!\210\307`!\203n\310u\210\202]`Sf\322=\203|\310u\210\202`eTV\205\257\323u\210	\324 V\203\225\325`	T\326\327$\210\330\331!\205\257\330\332!?\205\257\203\256\325\211T\333\n$\210\n*\207" [open start sh-st-punc 8 syntax-ppss nil forward-comment sh-is-quoted-p -1 skip-syntax-backward "w_" 0 "-$=?[]*@/\\\\" 2 (34 39 125) (byte-code "\300\301!\210\302\207" [backward-sexp 1 t] 2) ((error)) 40 124 -2 line-end-position put-text-property syntax-multiline t looking-at ";[;&]\\|\\_<in" "..[ 	\n]+esac[^[:word:]_]" syntax-table] 5])
(defalias 'sh-font-lock-backslash-quote #[nil "\212\301\302\303\224!8)\304=\205\207" [sh-st-punc 3 syntax-ppss 0 39] 3])
(defalias 'sh-syntax-propertize-function #[(start end) "b\210\306	!\210`	\211b\210`	W\205\307\310	\311#\205\312\224\203@\312\224\312\225\313\314\224\315\316!\312\224#\n\203<\317\f\320\n$\210+\202\321\224\203p\322\323!\211A\324
\233\241\210\325
!\210)\314\224\314\225\326\n\203h\317\f\320\n$\210\306	!\210+\202\327\224\203\201\317\327\224\327\225\320\330$\210\202\331\224\203\256\322\323!\211A\332
\233\241\210\325
!\210)\316\224\316\225\333 \n\203\252\317\f\320\n$\210+\202\334\224\203\277\317\334\224\334\225\320\330$\210\202\335\224\203\356\322\323!\211A\336
\233\241\210\325
!\210)\314\224\314\225\337\314\224!\n\203\352\317\f\320\n$\210+\202\324\224\203\322\323!\211A\336
\233\241\210\325
!\210)\324\212\340\314\224!)8\203\314\224Tb\210\202\212\341	!\210)\202*\207" [start end syntax me mb md sh-syntax-propertize-here-doc re-search-forward "<<-?\\s-*\\\\?\\(\\(?:['\"][^'\"]+['\"]\\|\\sw\\|[-/~._]\\)+\\)\\(?:\\(?:.*[^\\\n]\\)?\\(?:\\\\\\\\\\)*\\\\\n\\)*.*\\(\n\\)\\|\\(\\s|\\)\\|\\(?:[^|&;<>()`\\\"' 	\n]\\|\\${\\)\\(#+\\)\\|\\(\\\\\\)'\\|\\$\\([?@]\\)\\|\\()\\)\\|\"\\(?:\\(?:[^\\\"]\\|\\\\.\\)*?\\)??\\(\\$(\\|`\\)" t 2 sh-font-lock-open-heredoc 0 match-string 1 put-text-property syntax-table 3 match-data ints 8 set-match-data nil 4 (3) 5 10 sh-font-lock-backslash-quote 6 7 16 sh-font-lock-paren syntax-ppss sh-font-lock-quoted-subshell] 7])
(defalias 'sh-font-lock-syntactic-face-function #[(state) "\3058\211\203 \306	!\203	\307=\203\310\202!\n\202!\202!\f)\207" [state q font-lock-string-face sh-heredoc-face font-lock-comment-face 3 characterp 96 sh-quoted-exec] 3])
(byte-code "\300\301\302\303\304\305%\210\306\307\302\310\311\312\304\305&\210\306\313\302\314\311\312\304\305&\210\306\315\302\316\311\317\304\301&\210\306\320\302\321\311\322\304\301&\210\306\323\324\325\311\326\304\301&\210\306\327\330\331\311\332\304\301&\210\306\333\334\335\311\336\304\301&\210\337\333\340\341#\210\306\342\324\343\311\344\345\346\304\301&	\207" [custom-declare-group sh-indentation nil "Variables controlling indentation in shell scripts.\n\nNote: customizing these variables will not affect existing buffers if\n`sh-make-vars-local' is non-nil.  See the documentation for\nvariable `sh-make-vars-local', command `sh-make-vars-local'\nand command `sh-reset-indent-vars-to-global-values'." :group sh-script custom-declare-variable sh-set-shell-hook "Hook run by `sh-set-shell'." :type hook sh-mode-hook "Hook run by `sh-mode'." sh-learn-basic-offset "When `sh-guess-basic-offset' should learn `sh-basic-offset'.\n\nnil mean:              never.\nt means:               only if there seems to be an obvious value.\nAnything else means:   whenever we have a \"good guess\" as to the value." (choice (const :tag "Never" nil) (const :tag "Only if sure" t) (const :tag "If have a good guess" usually)) sh-popup-occur-buffer "Controls when  `sh-learn-buffer-indent' pops the `*indent*' buffer.\nIf t it is always shown.  If nil, it is shown only when there\nare conflicts." (choice (const :tag "Only when there are conflicts." nil) (const :tag "Always" t)) sh-blink t "If non-nil, `sh-show-indent' shows the line indentation is relative to.\nThe position on the line is not necessarily meaningful.\nIn some cases the line will be the matching keyword, but this is not\nalways the case." boolean sh-first-lines-indent 0 "The indentation of the first non-blank non-comment line.\nUsually 0 meaning first column.\nCan be set to a number, or to nil which means leave it as is." (choice (const :tag "Leave as is" nil) (integer :tag "Column number" :menu-tag "Indent to this col (0 means first col)")) sh-basic-offset 4 "The default indentation increment.\nThis value is used for the `+' and `-' symbols in an indentation variable." integer put safe-local-variable integerp sh-indent-comment "How a comment line is to be indented.\nnil means leave it as it is;\nt  means indent it as a normal line, aligning it to previous non-blank\n   non-comment line;\na number means align to that column, e.g. 0 means first column." (choice (const :tag "Leave as is." nil) (const :tag "Indent as a normal line." t) (integer :menu-tag "Indent to this col (0 means first col)." :tag "Indent to column number.")) :version "24.3"] 10)
#@68 Enable lots of debug messages - if function `sh-debug' is enabled.
(defvar sh-debug nil (#$ . 29127))
(defalias 'sh-debug '(macro . #[(&rest _args) "\300\207" [nil] 1]))
(defconst sh-symbol-list '((const :tag "+ " :value + :menu-tag "+   Indent right by sh-basic-offset") (const :tag "- " :value - :menu-tag "-   Indent left  by sh-basic-offset") (const :tag "++" :value ++ :menu-tag "++  Indent right twice sh-basic-offset") (const :tag "--" :value -- :menu-tag "--  Indent left  twice sh-basic-offset") (const :tag "* " :value * :menu-tag "*   Indent right half sh-basic-offset") (const :tag "/ " :value / :menu-tag "/   Indent left  half sh-basic-offset")))
(byte-code "\301\302\303\304\305\306\307\310BBB\311\312&\207" [sh-symbol-list custom-declare-variable sh-indent-for-else 0 "How much to indent an `else' relative to its `if'.  Usually 0." :type choice (integer :menu-tag "A number (positive=>indent right)" :tag "A number") (const :tag "--") :group sh-indentation] 9)
(defconst sh-number-or-symbol-list (append '((integer :menu-tag "A number (positive=>indent right)" :tag "A number") (const :tag "--")) sh-symbol-list))
(byte-code "\301\302\303\304\305\306B\307\310&\210\301\311\303\312\305\306B\307\310&\210\301\313\314\315\305\306B\307\310&\210\301\316\317\320\305\306B\307\310&\210\301\321\303\322\305\306B\307\310&\210\301\323\303\324\305\306B\307\310&\210\301\325\326\327\305\306B\307\310&\210\301\330\331\332\305\306B\307\310&\210\301\333\303\334\305\306B\307\310&\210\301\335\336\337\305\306B\307\310&\210\301\340\341\342\305\306B\307\310&\210\301\343\344\345\305\306B\307\310&\210\301\346\347\350\305\306B\307\310&\210\301\351\352\353\305\306B\307\310&\210\301\354\355\356\305\306B\307\310&\210\301\357\360\361\305\306B\307\310&\210\301\362\363\364\305\365\307\366&\210\301\367\370\371\305\372\307\366&\207" [sh-number-or-symbol-list custom-declare-variable sh-indent-for-fi 0 "How much to indent a `fi' relative to its `if'.  Usually 0." :type choice :group sh-indentation sh-indent-for-done "How much to indent a `done' relative to its matching stmt.  Usually 0." sh-indent-after-else '+ "How much to indent a statement after an `else' statement." sh-indent-after-if '+ "How much to indent a statement after an `if' statement.\nThis includes lines after `else' and `elif' statements, too, but\ndoes not affect the `else', `elif' or `fi' statements themselves." sh-indent-for-then "How much to indent a `then' relative to its `if'." sh-indent-for-do "How much to indent a `do' statement.\nThis is relative to the statement before the `do', typically a\n`while', `until', `for', `repeat' or `select' statement." sh-indent-after-do '+ "How much to indent a line after a `do' statement.\nThis is used when the `do' is the first word of the line.\nThis is relative to the statement before the `do', typically a\n`while', `until', `for', `repeat' or `select' statement." sh-indent-after-loop-construct '+ "How much to indent a statement after a loop construct.\n\nThis variable is used when the keyword `do' is on the same line as the\nloop statement (e.g., `until', `while' or `for').\nIf the `do' is on a line by itself, then `sh-indent-after-do' is used instead." sh-indent-after-done "How much to indent a statement after a `done' keyword.\nNormally this is 0, which aligns the `done' to the matching\nlooping construct line.\nSetting it non-zero allows you to have the `do' statement on a line\nby itself and align the done under to do." sh-indent-for-case-label '+ "How much to indent a case label statement.\nThis is relative to the line containing the `case' statement." sh-indent-for-case-alt '++ "How much to indent statements after the case label.\nThis is relative to the line containing the `case' statement." sh-indent-for-continuation '+ "How much to indent for a continuation statement." sh-indent-after-open '+ "How much to indent after a line with an opening parenthesis or brace.\nFor an open paren after a function, `sh-indent-after-function' is used." sh-indent-after-function '+ "How much to indent after a function line." sh-indent-after-switch '+ "How much to indent a `case' statement relative to the `switch' statement.\nThis is for the rc shell." sh-indent-after-case '+ "How much to indent a statement relative to the `case' statement.\nThis is for the rc shell." sh-backslash-column 48 "Column in which `sh-backslash-region' inserts backslashes." integer sh sh-backslash-align t "If non-nil, `sh-backslash-region' will align backslashes." boolean] 8)
#@139 Make a regexp which matches WORD as a word.
This specifically excludes an occurrence of WORD followed by
punctuation characters like '-'.
(defalias 'sh-mkword-regexpr #[(word) "\301P\207" [word "\\([^-[:alnum:]_]\\|$\\)"] 2 (#$ . 33665)])
(defconst sh-re-done (sh-mkword-regexpr "done"))
#@57 Which keywords can match the word `done' in this shell.
(defconst sh-kws-for-done '((sh "while" "until" "for") (bash "while" "until" "for" "select") (ksh88 "while" "until" "for" "select") (zsh "while" "until" "for" "repeat" "select")) (#$ . 33960))
#@50 Indentation rule set to use for each shell type.
(defconst sh-indent-supported '((sh . sh) (csh) (rc . rc)) (#$ . 34215))
#@72 Non-nil if we support indentation for the current buffer's shell type.
(defvar sh-indent-supported-here nil (#$ . 34343))
#@198 A list of variables used by script mode to control indentation.
This list is used when switching between buffer-local and global
values of variables, and for the commands using indentation styles.
(defconst sh-var-list '(sh-basic-offset sh-first-lines-indent sh-indent-after-case sh-indent-after-do sh-indent-after-done sh-indent-after-else sh-indent-after-if sh-indent-after-loop-construct sh-indent-after-open sh-indent-comment sh-indent-for-case-alt sh-indent-for-case-label sh-indent-for-continuation sh-indent-for-do sh-indent-for-done sh-indent-for-else sh-indent-for-fi sh-indent-for-then) (#$ . 34472))
#@340 Controls whether indentation variables are local to the buffer.
If non-nil, indentation variables are made local initially.
If nil, you can later make the variables local by invoking
command `sh-make-vars-local'.
The default is t because I assume that in one Emacs session one is
frequently editing existing scripts with different styles.
(defvar sh-make-vars-local t (#$ . 35090))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\305\306!\204\302\306\307\310#\210\300\207" [sh-mode-hook variable-documentation put purecopy "Hook run when entering Shell-script mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" boundp sh-mode-map definition-name sh-mode] 5)
(defvar sh-mode-map (make-sparse-keymap))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\305\306!\204\302\306\307\310#\210\300\207" [sh-mode-map variable-documentation put purecopy "Keymap for `sh-mode'." boundp sh-mode-syntax-table definition-name sh-mode] 5)
(defvar sh-mode-syntax-table (make-syntax-table))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [sh-mode-syntax-table variable-documentation put purecopy "Syntax table for `sh-mode'." sh-mode-abbrev-table definition-name sh-mode] 5)
(defvar sh-mode-abbrev-table (progn (define-abbrev-table 'sh-mode-abbrev-table nil) sh-mode-abbrev-table))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [sh-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `sh-mode'." sh-mode derived-mode-parent prog-mode] 5)
#@2573 Major mode for editing shell scripts.
This mode works for many shells, since they all have roughly the same syntax,
as far as commands, arguments, variables, pipes, comments etc. are concerned.
Unless the file's magic number indicates the shell, your usual shell is
assumed.  Since filenames rarely give a clue, they are not further analyzed.

This mode adapts to the variations between shells (see `sh-set-shell') by
means of an inheritance based feature lookup (see `sh-feature').  This
mechanism applies to all variables (including skeletons) that pertain to
shell-specific features.

The default style of this mode is that of Rosenblatt's Korn shell book.
The syntax of the statements varies with the shell being used.  The
following commands are available, based on the current shell's syntax:
\<sh-mode-map>
\[sh-case]	 case statement
\[sh-for]	 for loop
\[sh-function]	 function definition
\[sh-if]	 if statement
\[sh-indexed-loop]	 indexed loop from 1 to n
\[sh-while-getopts]	 while getopts loop
\[sh-repeat]	 repeat loop
\[sh-select]	 select loop
\[sh-until]	 until loop
\[sh-while]	 while loop

For sh and rc shells indentation commands are:
\[sh-show-indent]	Show the variable controlling this line's indentation.
\[sh-set-indent]	Set then variable controlling this line's indentation.
\[sh-learn-line-indent]	Change the indentation variable so this line
would indent to the way it currently is.
\[sh-learn-buffer-indent]  Set the indentation variables so the
buffer indents as it currently is indented.


\[backward-delete-char-untabify]	 Delete backward one position, even if it was a tab.
\[newline-and-indent]	 Delete unquoted space and indent new line same as this one.
\[sh-end-of-command]	 Go to end of successive commands.
\[sh-beginning-of-command]	 Go to beginning of successive commands.
\[sh-set-shell]	 Set this buffer's shell, and maybe its magic number.
\[sh-execute-region]	 Have optional header and region be executed in a subshell.

`sh-electric-here-document-mode' controls whether insertion of two
unquoted < insert a here document.

If you generally program a shell different from your login shell you can
set `sh-shell-file' accordingly.  If your shell's file name doesn't correctly
indicate what shell it is use `sh-alias-alist' to translate.

If your shell gives error messages with line numbers, you can use \[executable-interpret]
with your script for an edit-interpret-debug cycle.

In addition to any hooks its parent mode `prog-mode' might have run,
this mode runs the hook `sh-mode-hook', as the final step
during initialization.
(defalias 'sh-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203\314\311\313\310\313N#\210\315!\204'\316\317 \"\210\320\f!\211\2036
\321 =\203<\322\f\323 \"\210)\324@\325\"\204V@%=\204V\326@\325%C#\210\327!\210\330\f!\210@%\306\331!\210\306\332!\210\306\333!\210A\306\334!\210\335\306\336!\210B\337P\306\340!\210 \306\341!\210\342!\306\343!\210\344#\306\345!\210@%\306\346!\210C&\347\350\351\352\307$\210\306\353!\210\354+\306\355!\210\352-\306\356!\210\357.\306\360!\210\3610\347\362\363\364\365$\210\366\367!\210\306\370!\210\3718\306\372!\210\373:\306\374!\210\375<\306\376!\210\377>\306\201D!\210\307D\306\201E!\210\201GE\201H\212eb\210\201I\201J!)\203#\201K\201L!\202\234F\204-\202\234\201M\201NF\"\203?\201O\202\234\201M\201PF\"\203Q\201Q\202\234\201M\201RF\"\203c\201S\202\234\201M\201TF\"\203u\201U\202\234\201M\201VF\"\203\207\201W\202\234\201XF!\201Y\232\203\232\201Q\202\234\352\211#\210)\201Z\201[!\207" [delay-mode-hooks major-mode mode-name sh-mode-map sh-mode-syntax-table parent make-local-variable t prog-mode sh-mode "Shell-script" mode-class put keymap-parent set-keymap-parent current-local-map char-table-parent standard-syntax-table set-char-table-parent syntax-table abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table sh-shell-file sh-shell skeleton-pair-default-alist skeleton-end-hook #[nil "l\206\300 \206\301 \207" [newline indent-relative] 1] paragraph-start "\\|$" paragraph-separate comment-start "# " comment-start-skip "#+[	 ]*" local-abbrev-table comint-dynamic-complete-functions add-hook completion-at-point-functions comint-completion-at-point nil comint-prompt-regexp "^[ 	]*" imenu-case-fold-search font-lock-defaults ((sh-font-lock-keywords sh-font-lock-keywords-1 sh-font-lock-keywords-2) nil nil ((47 . "w") (126 . "w") (46 . "w") (45 . "w") (95 . "w")) nil (font-lock-syntactic-face-function . sh-font-lock-syntactic-face-function)) syntax-propertize-function sh-syntax-propertize-function syntax-propertize-extend-region-functions syntax-propertize-multiline append local sh-electric-here-document-mode 1 skeleton-pair-alist ((96 _ 96)) skeleton-pair-filter-function sh-quoted-p skeleton-further-elements ((< '(- (min sh-indentation (current-column))))) skeleton-filter-function sh-feature sh-mode-abbrev-table sh-skeleton-pair-default-alist page-delimiter sh-dynamic-complete-functions skeleton-newline-indent-rigidly defun-prompt-regexp buffer-file-name "^\\(function[ 	]\\|[[:alnum:]]+[ 	]+()[ 	]+\\)" sh-set-shell looking-at "#![ 	]?\\([^ 	\n]*/bin/env[ 	]\\)?\\([^ 	\n]+\\)" match-string 2 string-match "\\.m?spec\\'" "rpm" "[.]sh\\>" "sh" "[.]bash\\>" "bash" "[.]ksh\\>" "ksh" "[.]csh\\>" "csh" file-name-nondirectory ".profile" run-mode-hooks sh-mode-hook] 6 (#$ . 36693) nil])
(defalias 'shell-script-mode 'sh-mode)
#@118 Function to get simple fontification based on `sh-font-lock-keywords'.
This adds rules for comments and assignments.
(defalias 'sh-font-lock-keywords #[(&optional keywords) "\302\302	!;\205\n\303\"\207" [sh-font-lock-keywords-var sh-assignment-regexp sh-feature #[(list) "\304!\305B\306	\n#B\207" [sh-assignment-regexp keywords list executable-font-lock-keywords sh-feature (1 font-lock-variable-name-face) append] 5]] 4 (#$ . 42178)])
#@58 Function to get better fontification including keywords.
(defalias 'sh-font-lock-keywords-1 #[(&optional builtins) "\306\307\310!\311\"\312\307\313\310!\310	!\"\311\"R\314\313\205+\n\312\307\310\f!\311\"\315R\316B\310
!B\n\317P\320BC\310!#!)\207" [sh-leading-keywords sh-other-keywords keywords builtins sh-builtins sh-font-lock-keywords-var-2 "\\([;(){}`|&]\\|^\\)[ 	]*\\(\\(" regexp-opt sh-feature t "[ 	]+\\)?" append sh-font-lock-keywords "\\>" ((2 font-lock-keyword-face nil t) (6 font-lock-builtin-face)) "\\)\\>" (2 font-lock-keyword-face) sh-font-lock-keywords-var-1] 8 (#$ . 42624)])
#@71 Function to get better fontification including keywords and builtins.
(defalias 'sh-font-lock-keywords-2 #[nil "\300\301!\207" [sh-font-lock-keywords-1 t] 2 (#$ . 43230)])
(require 'smie)
#@62 Whether to use the SMIE code for navigation and indentation.
(defvar sh-use-smie nil (#$ . 43424))
#@62 Non-nil if TOK (at which we're looking) really is a keyword.
(defalias 'sh-smie--keyword-p #[(tok) " \303	G!\203\304\305`S\"\202\306	\n\")\207" [smie-backward-token-function prev smie-grammar zerop looking-back "\\s(" assoc] 3 (#$ . 43529)])
#@389 Return non-nil if a newline should be treated as a semi-colon.
Here we assume that a newline should be treated as a semi-colon unless it
comes right after a special keyword.
This function does not pay attention to line-continuations.
If TOK is nil, point should be before the newline; otherwise, TOK is the token
before the newline and in that case point should be just before the token.
(defalias 'sh-smie--newline-semi-p #[(&optional tok) "\212\204	 \303G!\205\304\305`S\"?\205 \306\307\n\"8\247?)\207" [tok smie-backward-token-function smie-grammar zerop looking-back "\\s(" 2 assoc] 4 (#$ . 43784)])
(defconst sh-smie-sh-grammar '((:smie-closer-alist (#1="case" . #13="esac") (#1# . #14="in") (#2="if" . "fi") (#2# . #11="then") ("if" . #10="else") ("if" . #9="elif") (#3="while" . "done") (#3# . #8="do") (#4="until" . "done") (#4# . "do") (#5="for" . "done") (#5# . "do") (#5# . "in") (#6="select" . "done") (#6# . "do") (#6# . "in") (#7="repeat" . #12="done") (#7# . "do")) (#8# 0 1) (#9# 3 2) (#10# 3 3) (#11# 2 3) (#3# (71) 0) (#4# (72) 0) ("for" (73) 0) (#6# (74) 0) (#7# (75) 0) (#2# (76) 2) ("&" 38 38) (";" 38 38) ("||" 49 49) ("&&" 49 49) ("|&" 60 60) ("always" 77 78) (#12# 1 (79)) ("fi" 3 (80)) (#13# 0 (81)) (";;" 14 14) (";&" 14 14) (";;&" 14 14) ("case-)" 26 25) ("case-(" (82) 37) ("|" 60 60) (#14# 0 0) (#1# (83) 0)))
(defconst sh-smie--sh-operators (byte-code "\301\302\303\304\"\"\207" [sh-smie-sh-grammar delq nil mapcar #[(x) "@\211;\205\301\302\"?\205\207" [x string-match "\\`[a-z]"] 4]] 5))
(defconst sh-smie--sh-operators-re (regexp-opt sh-smie--sh-operators))
(defconst sh-smie--sh-operators-back-re (concat "\\(?:^\\|[^\\]\\)\\(?:\\\\\\\\\\)*" "\\(" sh-smie--sh-operators-re "\\)"))
#@92 Assuming we're looking at "in", return non-nil if it's a keyword.
Does not preserve point.
(defalias 'sh-smie--sh-keyword-in-p #[nil "\306\211\211\211\211	\204~
 \307G!\2036\n\203,\204&\310\311\303C\"\210\312\211\202\313\306\314\315\217\210\202\n\316\232\203K\203E\313\202\n\317\211\202\320\235\203W\317\211\202\321\"\203e\312\211\202\n\203y\204s\310\311\303C\"\210\312\211\202\313\202\n	-\317=\207" [prev res newline words forward-sexp-function smie-backward-token-function nil zerop signal cl-assertion-failed word t (forward-sexp -1) ((scan-error (byte-code "\301\211\207" [res unknown] 2))) ";" keyword ("case" "for" "select") assoc smie-grammar] 6 (#$ . 45522)])
#@62 Non-nil if TOK (at which we're looking) really is a keyword.
(defalias 'sh-smie--sh-keyword-p #[(tok) "\301\232\203	\302 \207\303!\207" [tok "in" sh-smie--sh-keyword-in-p sh-smie--keyword-p] 2 (#$ . 46243)])
(defalias 'sh-smie-sh-forward-token #[nil "\306\307!\2037\212\310\311x\210n)\2047\312\225\203%\313\314 8\204%\311\315\312!\210)\316\207\317 \312y\210	\2033\316\2025\320 )\207\321d!\210\306\322!\203G\312y\210\320 \207\306\n!\203k\323\225b\210\324\323!\211\211GSH\325>\203h\306\326!\203h\312y\210)\207`\327 \211\330\232\203z\331\202\246\332\232\203\204\333\202\246\203\245\334\335\"\203\245\336
\"\203\245\212\fb\210\337!)\204\245\340\202\246*\207" [forward-sexp-function semi sh-smie--sh-operators-re tok pos smie-grammar looking-at "[ 	]*\\(?:#\\|\\(\\s|\\)\\|$\\)" " 	" nil 1 3 syntax-ppss forward-sexp ";" sh-smie--newline-semi-p sh-smie-sh-forward-token forward-comment "\\\\\n" 0 match-string-no-properties (59 38 124) "[ 	]*\\(?:#\\|$\\)" smie-default-forward-token ")" "case-)" "(" "case-(" string-match "\\`[a-z]" assoc sh-smie--sh-keyword-p " word "] 4])
(defalias 'sh-smie--looking-back-at-continuation-p #[nil "\212`Sf\300=\203\301u\210\202l\205\302\303\304 \")\207" [10 -1 looking-back "\\(?:^\\|[^\\]\\)\\(?:\\\\\\\\\\)*\\\\" line-beginning-position] 3])
(defalias 'sh-smie-sh-backward-token #[nil "\306 \307\211\310`[!\210n\203/o\204/\311`S!\312\232\203/\313\314 8\204/\307\315\316!\210)\317\202\233`\nW\203P\320 \203B\316u\210\f \202\233\321 \203K\317\202\233\f \202\233\322
\306 \323#\203c\324\224b\210\325\324!\202\233\326 \211\327\232\203p\330\202\232\331\232\203z\332\202\232\203\231\333\334\"\203\231\335 \"\203\231\212\336!)\204\231\337\202\232)+\207" [tok pos bol forward-sexp-function smie-backward-token-function sh-smie--sh-operators-back-re line-beginning-position nil forward-comment syntax-after (15) 3 syntax-ppss forward-sexp -1 ";" sh-smie--looking-back-at-continuation-p sh-smie--newline-semi-p looking-back greedy 1 match-string-no-properties smie-default-backward-token ")" "case-)" "(" "case-(" string-match "\\`[a-z]" assoc sh-smie--sh-keyword-p " word " smie-grammar] 5])
#@74 If non-nil, try to make sure text is indented after a line continuation.
(custom-declare-variable 'sh-indent-after-continuation t '(#$ . 48439) :version "24.3" :type 'boolean :group 'sh-indentation)
#@116 Return the initial indentation of a continued line.
May return nil if the line should not be treated as continued.
(defalias 'sh-smie--continuation-start-indent #[nil "\212\300y\210\301 ?\205\f\302 )\207" [-1 sh-smie--looking-back-at-continuation-p current-indentation] 1 (#$ . 48645)])
(defalias 'sh-smie-sh-rules #[(kind token) "	B\211:\205\327\n@\nA\306=\203\f\307=\205\326
\202\326\310=\203e\f\311\232\2034
\206\326#\202\326\f\312\235\203P\313$%\203H$ \202L\314\315\316\217)\202\326\f\317\232\203a\320\317!?\205\326\321\202\326\322\202\326\323=\204o\322\202\326&\203\246\212\322\324\325\217)\203\246\322&\326 '\327 ('\247\205\242(\247\205\242'(X\205\242\330(
\\B+\202\326\f\331\235\203\266\332 \205\326\333 \202\326\f\334\235\203\325\335 \203\317\336\337!\203\317\330\340\341!B\202\326\342!\202\326\322*)\207" [kind token #1=#:val #2=#:xcar #3=#:xcdr sh-indentation :elem basic :after "case-)" (";;" ";&" ";;&") #[nil "\302!\210\303\304 \204\212	 \305\235\205\304 )\203i\202\306 B\207" [token smie-backward-token-function smie-backward-sexp column smie-rule-bolp ("in" ";;") smie-indent-calculate] 3] #4=#:err (funcall #5=#:body) ((error (message "Error: %S" #4#) nil)) "|" smie-rule-parent-p 4 nil :before (byte-code "\300\301x\210\302 \207" [" 	" nil sh-smie--looking-back-at-continuation-p] 2) ((error)) smie-indent-calculate sh-smie--continuation-start-indent column ("(" "{" "[") smie-rule-hanging-p smie-rule-parent (";;" ";&" ";;&") smie-rule-bolp looking-at ";;?&?[ 	]*\\(#\\|$\\)" smie-indent-keyword ";" smie-rule-separator smie-indent-basic #5# debug-on-error sh-indent-after-continuation indent initial] 4])
(defconst sh-smie-rc-grammar '((";&" 0 0) (";;&" 0 0) ("case-)" 12 11) (";;" 0 0) ("if" (67) 68) ("switch" (69) 70) ("for" (71) 72) ("while" (73) 74) ("|" 56 56) ("|&" 56 56) ("&&" 45 45) ("||" 45 45) (";" 34 34) ("case" 23 23) ("&" 34 34)))
#@134 Check if we're after the first arg of an if/while/for/... construct.
Returns the construct's token and moves point before it, if so.
(defalias 'sh-smie--rc-after-special-arg-p #[nil "\300`[!\210\301\302`\303Z\"\205\304\305\306\217\207" [forward-comment looking-back ")\\|\\_<not" 3 nil (byte-code "\302\303\304!\210	 \305\235@)\207" [forward-sexp-function smie-backward-token-function nil forward-sexp -1 ("if" "for" "switch" "while")] 2) ((error))] 4 (#$ . 50582)])
#@100 Return non-nil if a newline should be treated as a semi-colon.
Point should be before the newline.
(defalias 'sh-smie--rc-newline-semi-p #[nil "\212 \211\302\232\203\303v\210\202\304	G!\203%`Sf\305=\203%\306 ?\202(\307	!*\207" [smie-backward-token-function tok "not" 1 zerop 41 sh-smie--rc-after-special-arg-p sh-smie--newline-semi-p] 3 (#$ . 51059)])
(defalias 'sh-smie-rc-forward-token #[nil "\305\306!\2037\212\307\310x\210n)\2047\311\225\203%\312\313 8\204%\310\314\311!\210)\315\207\316 \311y\210	\2033\315\2025\317 )\207\320d!\210\305\321!\203G\311y\210\317 \207`\322 \211\203m\323\324\"\203m\325\f\"\203m\212\nb\210\326!)\204m\327\202n*\207" [forward-sexp-function semi pos tok smie-grammar looking-at "[ 	]*\\(?:#\\|\\(\\s|\\)\\|$\\)" " 	" nil 1 3 syntax-ppss forward-sexp ";" sh-smie--rc-newline-semi-p sh-smie-rc-forward-token forward-comment "\\\\\n" smie-default-forward-token string-match "\\`[a-z]" assoc sh-smie--keyword-p " word "] 4])
(defalias 'sh-smie-rc-backward-token #[nil "\306 \307\211\310`[!\210n\203/o\204/\311`S!\312\232\203/\313\314 8\204/\307\315\316!\210)\317\202z`\nW\203Wl\203I\320\321\306 \"\203I\316u\210\f \202z\322 \203R\317\202z\f \202z\323 \211\203x\324\325\"\203x\326
\"\203x\212\327!)\204x\330\202y)+\207" [tok pos bol forward-sexp-function smie-backward-token-function smie-grammar line-beginning-position nil forward-comment syntax-after (15) 3 syntax-ppss forward-sexp -1 ";" looking-back "\\(?:^\\|[^\\]\\)\\(?:\\\\\\\\\\)*\\\\" sh-smie--rc-newline-semi-p smie-default-backward-token string-match "\\`[a-z]" assoc sh-smie--keyword-p " word "] 4])
(defalias 'sh-smie-rc-rules #[(kind token) "	B\211:\205z\n@\nA\306=\203\f\307=\205y
\202y\310=\2037\f\311\232\205y\312\313!\205y\314
!\202y\315=\203d\f\316\232\203P\212\317 \205L\320iB)\202y\f\321\235\203`\322 \205y\314 \202y\323\202y\324=\204n\323\202y\f\325\235\203x\326\202y\323*)\207" [kind token #1=#:val #2=#:xcar #3=#:xcdr sh-indentation :elem basic :after ";" smie-rule-parent-p "case" smie-rule-parent :before "{" sh-smie--rc-after-special-arg-p column ("(" "[") smie-rule-hanging-p nil :list-intro ("for" "if" "while") t] 3])
#@58 A buffer-local regexp to match opening keyword for done.
(defvar sh-regexp-for-done nil (#$ . 53276))
#@69 A buffer-local, since it is shell-type dependent, list of keywords.
(defvar sh-kw-alist nil (#$ . 53384))
(defconst sh-kw '((sh ("if" nil sh-handle-prev-if) ("elif" sh-handle-this-else sh-handle-prev-else) ("else" sh-handle-this-else sh-handle-prev-else) ("fi" sh-handle-this-fi sh-handle-prev-fi) ("then" sh-handle-this-then sh-handle-prev-then) ("(" nil sh-handle-prev-open) ("{" nil sh-handle-prev-open) ("[" nil sh-handle-prev-open) ("}" sh-handle-this-close nil) (")" sh-handle-this-close nil) ("]" sh-handle-this-close nil) ("case" nil sh-handle-prev-case) ("esac" sh-handle-this-esac sh-handle-prev-esac) (case-label nil sh-handle-after-case-label) (";;" nil sh-handle-prev-case-alt-end) (";;&" nil sh-handle-prev-case-alt-end) (";&" nil sh-handle-prev-case-alt-end) ("done" sh-handle-this-done sh-handle-prev-done) ("do" sh-handle-this-do sh-handle-prev-do)) (rc ("{" nil sh-handle-prev-open) ("}" sh-handle-this-close nil) ("case" sh-handle-this-rc-case sh-handle-prev-rc-case))))
#@561 Set this buffer's shell to SHELL (a string).
When used interactively, insert the proper starting #!-line,
and make the visited file executable via `executable-set-magic',
perhaps querying depending on the value of `executable-query'.

When this function is called noninteractively, INSERT-FLAG (the third
argument) controls whether to insert a #!-line and think about making
the visited file executable, and NO-QUERY-FLAG (the second argument)
controls whether to query about making the visited file executable.

Calls the value of `sh-set-shell-hook' if set.
(defalias 'sh-set-shell #[(shell &optional no-query-flag insert-flag) "\306\307\"\203
\310\211\224O\311\312!!\211\n\236A\206	\203*\313\314\f!
$4\315\316	\"5\317\320!\210\321\317\322!\210\321\317\323!\210\3146!\3147!\2118\203b\317\324!\210\325\3248\"\326!\210)\3149!\321:\211;\203\203;@:\327:!\210;A\211;\204p*\317\330!\210\314<!\211\203\376\331\332	\"\210=\203\272\333>\334>\335!J>\336!\337>\340!\341>\342!&\210)\202\356\317\343!\210\344#\317\345!\210\314?!%\314@!\211A\203\342\317\346!\210\347\350A\344\"!&)\331\351!\210\317\352!\210\353*,\203\366\354 \210\331\355	\"\210\202\331\356!\210\357*B\203\3210\360 \210\361 \210\362\363!\207" [shell sh-shell sh-alias-alist insert-flag sh-shell-arg no-query-flag string-match "\\.exe\\'" 0 intern file-name-nondirectory executable-set-magic sh-feature format "[%s]" make-local-variable sh-shell-variables nil sh-shell-variables-initialized imenu-generic-expression sh-mode-syntax-table apply set-syntax-table sh-remember-variable sh-indent-supported-here message "Setting up indent for shell type %s" #[(name) "\302\303\304	#!\207" [sh-indent-supported-here name intern format "sh-smie-%s-%s"] 5] smie-setup "grammar" "rules" :forward-token "forward-token" :backward-token "backward-token" parse-sexp-lookup-properties t sh-kw-alist sh-regexp-for-done sh-mkword-regexpr regexp-opt "setting up indent stuff" indent-line-function sh-indent-line sh-make-vars-local "Indentation setup for shell type %s" "No indentation for this shell type." sh-basic-indent-line font-lock-set-defaults font-lock-fontify-buffer run-hooks sh-set-shell-hook sh-shell-file mode-line-process sh-imenu-generic-expression sh-mode-syntax-table-input tem sh-variables var --dolist-tail-- sh-indent-supported sh-use-smie mksym sh-kw sh-kws-for-done regexp font-lock-mode] 9 (#$ . 54381) (list (completing-read (format "Shell (default %s): " sh-shell-file) interpreter-mode-alist #'(lambda (x) (eq (cdr x) 'sh-mode)) nil nil nil sh-shell-file) (eq executable-query 'function) t)])
#@914 Index ALIST by the current shell.
If ALIST isn't a list where every element is a cons, it is returned as is.
Else indexing follows an inheritance logic which works in two ways:

  - Fall back on successive ancestors (see `sh-ancestor-alist') as long as
    the alist contains no value for the current shell.
    The ultimate default is always `sh'.

  - If the value thus looked up is a list starting with `sh-append',
    we call the function `sh-append' with the rest of the list as
    arguments, and use the value.  However, the next element of the
    list is not used as-is; instead, we look it up recursively
    in ALIST to allow the function called to define the value for
    one shell to be derived from another shell.
    The value thus determined is physically replaced into the alist.

If FUNCTION is non-nil, it is called with one argument,
the value thus obtained, and the result is used instead.
(defalias 'sh-feature #[(alist &optional function) ":\203!\211\203	@:\203	A\211\204	\205)\206x\n\n\306\211\211\203?\n\236\211\204?\n\236A\211\204-
\204G\307\236
A\211:\203j\f@\310>\203j\311\f@\fA@\312!)\f\211\fAA)#
\203v
\f!\f,\207" [alist l sh-shell orig-sh-shell val elt nil sh (sh-append sh-modify) apply sh-feature sh-ancestor-alist x function] 5 (#$ . 57014)])
#@78 Return list composed of first argument (a list) physically appended to rest.
(defalias 'sh-append #[(ancestor &rest list) "	\244\207" [list ancestor] 2 (#$ . 58342)])
#@73 Modify a copy of SKELETON by replacing I1 with REPL1, I2 with REPL2 ...
(defalias 'sh-modify #[(skeleton &rest list) "\302!	\203!	@\233\206\303\304	@\"	A@\240\210	AA\211\204\207" [skeleton list copy-sequence error "Index %d out of bounds"] 4 (#$ . 58516)])
#@179 Indent a line for Sh mode (shell script mode).
Indent as far as preceding non-empty line, then by steps of `sh-indentation'.
Lines containing only comments are considered empty.
(defalias 'sh-basic-indent-line #[nil "\212\304 \210o\204\305y\210\306 \210l\204g\307=\204i)\310\212\n\311=\203(	\202[i\306 \210i\211W\203?l\203;	\202[\312\202[`\304 \210`|\210l\203U	\245T_]\202[\245T_j\210)i\313 W\205h\314\310w*\207" [current previous this-command sh-indentation beginning-of-line -1 back-to-indentation 35 nil newline-and-indent 0 current-indentation " 	"] 3 (#$ . 58790) nil])
#@398 Pass optional header and region to a subshell for noninteractive execution.
The working directory is that of the buffer, and only environment variables
are already set which is why you can mark a header within the script.

With a positive prefix ARG, instead of sending region, define header from
beginning of buffer to point.  With a negative prefix ARG, instead of sending
region, clear header.
(defalias 'sh-execute-region #[(start end &optional flag) "\203\306!\307V\205\310 \211\207	\2032\212\311	b\210\312p\f#\210\313e	\fZ\\\211
#\210	\f|*\207\313\f
\314P#\207" [flag sh-header-marker buffer-undo-list start end sh-shell-file prefix-numeric-value 0 point-marker nil append-to-buffer shell-command-on-region " -"] 5 (#$ . 59396) "r\nP"])
#@69 Make VARIABLE available for future completing reads in this buffer.
(defalias 'sh-remember-variable #[(var) "G	W\204\303!\204\304\n\"\204\211B\nB\207" [var sh-remember-variable-min sh-shell-variables getenv assoc] 3 (#$ . 60158)])
#@52 Is point preceded by an odd number of backslashes?
(defalias 'sh-quoted-p #[nil "\212\300\301x)\302\246\303=\207" ["\\\\" nil 2 -1] 2 (#$ . 60407)])
#@116 Signal an error if the shell type for this buffer is not supported.
Also, the buffer must be in Shell-script mode.
(defalias 'sh-must-support-indent #[nil "?\205\301\302!\207" [sh-indent-supported-here error "This buffer's shell does not support indentation through Emacs"] 2 (#$ . 60563)])
#@278 Make the indentation variables local to this buffer.
Normally they already are local.  This command is provided in case
variable `sh-make-vars-local' has been set to nil.

To revert all these variables to the global values, use
command `sh-reset-indent-vars-to-global-values'.
(defalias 'sh-make-vars-local #[nil "\301\302\"\210\303\304!\207" [sh-var-list mapc make-local-variable message "Indentation variables are now local."] 3 (#$ . 60864) nil])
#@125 Reset local indentation variables to the global values.
Then, if variable `sh-make-vars-local' is non-nil, make them local.
(defalias 'sh-reset-indent-vars-to-global-values #[nil "\302\303\"\210	\205
\304\305\"\207" [sh-var-list sh-make-vars-local mapc kill-local-variable mapcar make-local-variable] 3 (#$ . 61322) nil])
(defconst sh-special-keywords "then\\|do")
#@72 Construct a string for `sh-read-variable' when changing variable VAR .
(defalias 'sh-help-string-for-variable #[(var) "\305\306\"\307\310>\204\311\312\313\314\f\315##\n	P*\207" [var msg2 msg sh-basic-offset sh-symbol-list documentation-property variable-documentation "" (sh-first-lines-indent sh-indent-comment) format "\n\nYou can enter a number (positive to increase indentation,\nnegative to decrease indentation, zero for no change to indentation).\n\nOr, you can enter one of the following symbols which are relative to\nthe value of variable `sh-basic-offset'\nwhich in this buffer is currently %s.\n\n	%s." mapconcat #[(x) "GS8\207" [x] 2] "\n	"] 7 (#$ . 61696)])
#@48 Read a new value for indentation variable VAR.
(defalias 'sh-read-variable #[(var) "\304\305DD\306\307\310\311\312!#\310\313J\"\306\314$\211*\207" [var val minibuffer-help-form help-char sh-help-string-for-variable quote nil read-from-minibuffer format "New value for %s (press %s for help): " single-key-description "%s" t] 7 (#$ . 62384) "*variable? "])
#@52 Return non-nil if START is in a comment or string.
(defalias 'sh-in-comment-or-string #[(start) "\212\302!\303	8\206\304	8*\207" [start state syntax-ppss 3 4] 2 (#$ . 62753)])
#@67 Go to the matching if for a fi.
This handles nested if..fi pairs.
(defalias 'sh-goto-matching-if #[nil "\301\302\303\304#\211\205\fb)\207" [found sh-find-prev-matching "\\bif\\b" "\\bfi\\b" 1] 5 (#$ . 62939)])
(defalias 'sh-handle-prev-if #[nil "\300C\207" [(+ sh-indent-after-if)] 1])
(defalias 'sh-handle-this-else #[nil "\300 \205\301\302D\207" [sh-goto-matching-if "aligned to if" (+ sh-indent-for-else)] 2])
(defalias 'sh-handle-prev-else #[nil "\300 \205\301C\207" [sh-goto-matching-if (+ sh-indent-after-if)] 1])
(defalias 'sh-handle-this-fi #[nil "\300 \205\301\302D\207" [sh-goto-matching-if "aligned to if" (+ sh-indent-for-fi)] 2])
(defalias 'sh-handle-prev-fi #[nil "\300 \210\301\207" [sh-goto-matching-if nil] 1])
(defalias 'sh-handle-this-then #[nil "\301 \211\205	\302C)\207" [p sh-goto-matching-if (+ sh-indent-for-then)] 2])
(defalias 'sh-handle-prev-then #[nil "\301 \211\205	\302C)\207" [p sh-goto-matching-if (+ sh-indent-after-if)] 2])
(defalias 'sh-handle-prev-open #[nil "\212\301 \211\203b\210\302\303!\204\302\304!\203\305C\202\306C*\207" [x sh-prev-stmt looking-at "function\\b" "\\s-*\\S-+\\s-*()" (+ sh-indent-after-function) (+ sh-indent-after-open)] 3])
(defalias 'sh-handle-this-close #[nil "\300u\210\301\302!\205\303C\207" [1 sh-safe-forward-sexp -1 "aligned to opening paren"] 2])
(defalias 'sh-goto-matching-case #[nil "\301\302\303\304#\211\205\fb)\207" [found sh-find-prev-matching "\\bcase\\b" "\\besac\\b" 1] 5])
(defalias 'sh-handle-prev-case #[nil "\300\301!\203	\302C\207\303\304!\207" [looking-at ".*\\<case\\>" (+ sh-indent-for-case-label) error "We don't seem to be on a line with a case"] 2])
(defalias 'sh-handle-this-esac #[nil "\300 \205\301C\207" [sh-goto-matching-case "aligned to matching case"] 1])
(defalias 'sh-handle-prev-esac #[nil "\300 \205\301C\207" [sh-goto-matching-case "matching case"] 1])
(defalias 'sh-handle-after-case-label #[nil "\300 \205\301C\207" [sh-goto-matching-case (+ sh-indent-for-case-alt)] 1])
(defalias 'sh-handle-prev-case-alt-end #[nil "\300 \205\301C\207" [sh-goto-matching-case (+ sh-indent-for-case-label)] 1])
#@106 Try and do a `forward-sexp', but do not error.
Return new point if successful, nil if an error occurred.
(defalias 'sh-safe-forward-sexp #[(&optional arg) "\300\301\302\217\207" [nil (byte-code "\301\206\302!\210`\207" [arg forward-sexp 1] 2) ((error))] 3 (#$ . 65081)])
(defalias 'sh-goto-match-for-done #[nil "\303	\304#\211\205\f\nb)\207" [sh-regexp-for-done sh-re-done found sh-find-prev-matching 1] 5])
(defalias 'sh-handle-this-done #[nil "\300 \205\301\302D\207" [sh-goto-match-for-done "aligned to do stmt" (+ sh-indent-for-done)] 2])
(defalias 'sh-handle-prev-done #[nil "\300 \205\301C\207" [sh-goto-match-for-done "previous done"] 1])
(defalias 'sh-handle-this-do #[nil "\300 \205\301C\207" [sh-goto-match-for-done (+ sh-indent-for-do)] 1])
(defalias 'sh-handle-prev-do #[nil "\214`\300 }\210\301 )\203\302C\207\301 \203\303C\207\304\305!\210\306\207" [line-beginning-position sh-goto-match-for-done (+ sh-indent-after-loop-construct) (+ sh-indent-after-do) message "match for done NOT found" nil] 2])
#@73 Find the line for the switch keyword matching this line's case keyword.
(defalias 'sh-find-prev-switch #[nil "\300\301\302\303#\207" [re-search-backward "\\<switch\\>" nil t] 4 (#$ . 66116)])
(defalias 'sh-handle-this-rc-case #[nil "\300 \205\301C\207" [sh-find-prev-switch (+ sh-indent-after-switch)] 1])
(defalias 'sh-handle-prev-rc-case #[nil "\300C\207" [(+ sh-indent-after-case)] 1])
(defalias 'sh-check-rule #[(n thing) "\305	\n\"8\306\211\203\f *\207" [n thing sh-kw-alist val rule assoc nil] 5])
#@903 Return indent-info for this line.
This is a list.  nil means the line is to be left as is.
Otherwise it contains one or more of the following sublists:
(t NUMBER)   NUMBER is the base location in the buffer that indentation is
	     relative to.  If present, this is always the first of the
	     sublists.  The indentation of the line in question is
	     derived from the indentation of this point, possibly
	     modified by subsequent sublists.
(+ VAR)
(- VAR)      Get the value of variable VAR and add to or subtract from
	     the indentation calculated so far.
(= VAR)	     Get the value of variable VAR and *replace* the
	     indentation with its value.  This only occurs for
	     special variables such as `sh-indent-comment'.
STRING	     This is ignored for the purposes of calculating
	     indentation, it is printed in certain cases to help show
	     what the indentation is based on.
(defalias 'sh-get-indent-info #[nil "\212\306\211\211\211\211\211\211,\307 \210\310\311`!8\204%\312`\313\"-=\203-\314\211,\202F\315\316!\203Fo\203<\314\202F\317C\320\306!\306,,\204\224\321 \203q\212\307 \210`\322ZSf\323>)\204d\324C\202j\320\306!\325C\314,\202{\307 \210\326\306w\210\327 
\203\224\330\331
\"\211\203\224`\332\f\"\314,`,\204\235\320\333!	\203Q\212	b\210\314\203P\334 \211\203P\335\232\203\343\312`S\336\".\232\203\343\337\330\322\"\211\203\325\332\f\"`o\204\334\340u\210\341\306w\210\202\247\342\343\"\203\375\344\340!\211\203\247`\332\345C\"\202\247\342\346\"\203\330\322\"\211\203\332\f\"\340u\210`\202\247\342\347\"\203)\344\340!\211\202\250;\203H\330\322\"\211\203<\332\f\"`n\204\247\340u\210\202\247\350\351\"\210\202\247)\n\203]\332\314\nDC\"\204p	\203k\314	D\202n\352\353DC\314=\203x\306.\207" [x prev-line-end align-point result val this-kw nil beginning-of-line 3 syntax-ppss get-text-property face t looking-at "\\s-*#" (= sh-indent-comment) sh-prev-line sh-this-is-a-continuation 2 (32 9) (= nil) (+ sh-indent-for-continuation) " 	" sh-get-kw sh-check-rule 1 append end sh-prev-thing ")" syntax-table case-label -1 "[a-z0-9]*?" string-match "[])}]" sh-safe-forward-sexp "aligned to opening paren" "[[({]" "[\"'`]" error "Don't know what to do with %s" = sh-first-lines-indent have-result sh-heredoc-face sh-st-punc] 8 (#$ . 66636)])
#@197 Return the variable controlling indentation for this line.
If there is not [just] one such variable, return a string
indicating the problem.
If INFO is supplied it is used, else it is calculated.
(defalias 'sh-get-indent-var-for-line #[(&optional info) "\306\211\211\211\211
\204\307 
\204\310\202q
\203q\204q
@\211;\203/\202j<\204<\311\312\"\210\202j@\313=\204jA@\2119\203e\f\314=\203W\f\202j\f\203`\315\202j	\202j\311\316\"\210
A\211\204\204w\f\204}\n\204\203\317-\207" [elt sym reason result var info nil sh-get-indent-info "this line to be left as is" error "sh-get-indent-var-for-line invalid elt: %s" t sh-indent-comment "this line is controlled by more than 1 variable." "sh-get-indent-var-for-line invalid list elt: %s" "line has default indentation"] 6 (#$ . 69012)])
#@196 Back to end of previous non-comment non-empty line.
Go to beginning of logical line unless END is non-nil, in which case
we go to the end of the previous line and do not check for continuations.
(defalias 'sh-prev-line #[(&optional end) "\212\303 \210\304d[!\210\204\303 \210o\2049\305`S\306\"	\232\2039\307`S\306\"\211\2038\nb\210\2035\310\210\2028\303 \210)\204P\311 \203I\312\313yY\204=\303 \210\314\310w\210`)\207" [end sh-heredoc-face p1 beginning-of-line forward-comment get-text-property face previous-single-property-change nil sh-this-is-a-continuation 0 -1 " 	"] 4 (#$ . 69847)])
#@49 Return the address of the previous stmt or nil.
(defalias 'sh-prev-stmt #[nil "\212\306`\307\211\310\307x\210	\204to\204t\203t\311\312!\203/\313\f!\203*\202O`\202O\314\315\307x!\203:\312u\210n\203O\316\307!\211\203L
b\210\202N\307)	\204
\317\307x\210n\203`\320 \203n`Sf\321=\204n\313\322!\203
`\211\203	\203{	b\210	\203\205\323\307w\210``\nY\203\224\324\325!\210\307\202\226	\210	-\207" [prev found start going sh-special-keywords back t nil " 	;|&({[" sh-safe-forward-sexp -1 looking-at zerop " 	()[]{};`'" sh-prev-line " 	" sh-this-is-a-continuation 59 "\\s-*[|&]" " 	|&({[" debug "We didn't move!"] 5 (#$ . 70458) nil])
#@50 Get a shell word skipping whitespace from point.
(defalias 'sh-get-word #[nil "\301\302w\210`\303\304!\203\305 \202\306\302w\307V\204`{)\207" [start "	 " nil looking-at "[\"'`]" sh-safe-forward-sexp "-_$[:alnum:]" 0] 2 (#$ . 71122) nil])
#@46 Return the previous thing this logical line.
(defalias 'sh-prev-thing #[nil "n?\205k`\306 \203\307\310!\202\311 \312x\210\313\314!\203#\315\202j\316x\210`V\2050`Sf\211\317>\204=\320\n!\202i`\310\211\321	w\210`	Y\204d\203S\322 \211\323!\235\203d`\202C
b\210\f+)*\207" [min-point start c next kwd boundary sh-this-is-a-continuation sh-prev-line nil line-beginning-position " 	;" looking-at "\\s-*;[;&]" ";;" "^)}];\"'`({[" (10 nil 59) char-to-string " 	\n\\\\" sh-get-word sh-feature sh-leading-keywords] 4 (#$ . 71374)])
#@68 Return non-nil if current line is a continuation of previous line.
(defalias 'sh-this-is-a-continuation #[nil "\212\300\301y!\205\302\303!\205\304\305\306\224\306\225\307\211\211\310&8?)\207" [zerop -1 looking-at ".*\\\\$" 4 parse-partial-sexp 0 nil t] 8 (#$ . 71930)])
#@88 Return first word of line from WHERE.
If AND-MOVE is non-nil then move to end of word.
(defalias 'sh-get-kw #[(&optional where and-move) "`	\203		b\210`\303\304w\210`{\n\204b\210)\207" [start where and-move "^ 	\n;&|" nil] 3 (#$ . 72211)])
#@263 Find a matching token for a set of opening and closing keywords.
This takes into account that there may be nested open..close pairings.
OPEN and CLOSE are regexps denoting the tokens to be matched.
Optional parameter DEPTH (usually 1) says how many to look for.
(defalias 'sh-find-prev-matching #[(open close &optional depth) "\303\304\n\206	\305\212\304\306\307\217\210\n\310=\205+\207" [prev parse-sexp-ignore-comments depth t nil 1 (byte-code "\304U\204;o\204;\305 \211\203;	b\210\212\306\307!\203\"\310u\210\311\312w\210\306\n!\203.S\2027\306!\2037T)\202\312\207" [depth prev open close 0 sh-prev-stmt looking-at "\\\\\n" 2 " 	" nil] 2) ((error)) 0] 3 (#$ . 72463)])
#@181 Return the value of variable VAR, interpreting symbols.
It can also return t or nil.
If an invalid value is found, throw an error unless Optional argument
IGNORE-ERROR is non-nil.
(defalias 'sh-var-value #[(var &optional ignore-error) "J\211\247\203\f	\202x	\304=\203	\202x	\204	\202x	\305=\203(\n\202x	\306=\2033\n[\202x	\307=\203?\n\310_\202x	\311=\203L\n[\310_\202x	\312=\203X\n\310\245\202x	\313=\203e\n[\310\245\202x\203s\314\315	#\210\316\202x\317\315	#)\207" [var val sh-basic-offset ignore-error t + - ++ 2 -- * / message "Don't know how to handle %s's value of %s" 0 error] 5 (#$ . 73164)])
#@135 Set variable VAR to VALUE.
Unless optional argument NO-SYMBOL is non-nil, then if VALUE is
can be represented by a symbol then do so.
(defalias 'sh-set-var-value #[(var value &optional no-symbol) "\203	\nL\207\nU\203	\304L\207\n[U\203	\305L\207\n\306_=\203)	\307L\207\n[\306_=\2036	\310L\207\n\306\245=\203B	\311L\207\n[\306\245=\203O	\312L\207	\nL\207" [no-symbol var value sh-basic-offset + - 2 ++ -- * /] 3 (#$ . 73798)])
#@119 Return the indentation for the current line.
If INFO is supplied it is used, else it is calculated from current line.
(defalias 'sh-calculate-indent #[(&optional info) "\306\211\307\211\211\211\204\310 \205\332\203\267@\211;\204\256<\203\251@@@A@\n\311=\203K\212	b\210\312 )\202\256	9\203\240\313	!\n\314=\203}\204h\307\211\307\202\256\311=\203s\306\202\256\306\307\202\256\n\315=\203\212
\\\202\256\n\316=\203\227
Z\202\256\317\320\n	#\210\202\256\317\321\n	#\210\202\256\317\322\"\210A\211\204\f\203\277
\204\303\307\202\332\f\247\203\323
\247\203\323\f
\\\202\332\317\323\f
#\210\307.\207" [val b a elt base-value ofs 0 nil sh-get-indent-info t current-indentation sh-var-value = + - error "sh-calculate-indent invalid a a=%s b=%s" "sh-calculate-indent invalid elt: a=%s b=%s" "sh-calculate-indent invalid elt %s" "sh-calculate-indent:  Help.  base-value=%s ofs=%s" info] 7 (#$ . 74247)])
#@26 Indent the current line.
(defalias 'sh-indent-line #[nil "\302 d`Z\211\205\"\303 \210\304\305w\210\306	!\210dZ`V\205\"dZb*\207" [pos indent sh-calculate-indent beginning-of-line " 	" nil indent-line-to] 4 (#$ . 75224) nil])
#@54 Move cursor momentarily to BLINKPOS and display MSG.
(defalias 'sh-blink #[(blinkpos &optional msg) "\247\203\212b\210	\203\303\304	\"\210\202\303\305!\210\306\n!)\207	\203'\303\304	\"\207\303\305!\207" [blinkpos msg blink-matching-delay message "%s" nil sit-for] 3 (#$ . 75460)])
#@350 Show the how the current line would be indented.
This tells you which variable, if any, controls the indentation of
this line.
If optional arg ARG is non-null (called interactively with a prefix),
a pop up window describes this variable.
If variable `sh-blink' is non-nil then momentarily go to the line
we are indenting relative to, if applicable.
(defalias 'sh-show-indent #[(arg) "\306 \210\307 \310!\311 \312\211	;\203 \313\314	\211\"\210\202V\315!\n=\2034\316\317	\211J#\202J\203C\316\320	\211J\n%\202I\316\321	\211J#
\203V	\203V\322	!\210\203\202\307 \211\203z@<\203z@@\323=\203z\324@A@\f\"\202~\313\314\f\")\202\206\313\314\f\"-\207" [info var curr-indent val msg arg sh-must-support-indent sh-get-indent-info sh-get-indent-var-for-line current-indentation nil message "%s" sh-calculate-indent format "%s is %s" "%s (%s) would change indent from %d to: %d" "%s (%s) would leave line as is" describe-variable t sh-blink] 7 (#$ . 75757) "P"])
#@136 Set the indentation for the current line.
If the current line is controlled by an indentation variable, prompt
for a new value for it.
(defalias 'sh-set-indent #[nil "\305 \210\306 \307!\310\211\310	;\203\311\312	\"\202'	J\313	!\310\314\315\217-\207" [info var val old-val indent-val sh-must-support-indent sh-get-indent-info sh-get-indent-var-for-line nil message "Cannot set indent - %s" sh-read-variable (byte-code "	L\210\304\n!\211\203\305\306\211J$\207\305\307\211J#\207" [var val info indent-val sh-calculate-indent message "Variable: %s  Value: %s  would indent to: %d" "Variable: %s  Value: %s  would leave line as is."] 6) ((error (byte-code "	L\210\302\303	#\210\304\305!\210\306\207" [var old-val message "Bad value for %s, restoring to previous value %s" sit-for 1 nil] 4)))] 4 (#$ . 76746) nil])
#@347 Learn how to indent a line as it currently is indented.

If there is an indentation variable which controls this line's indentation,
then set it to a value which would indent the line the way it
presently is.

If the value can be represented by one of the symbols then do so
unless optional argument ARG (the prefix when interactive) is non-nil.
(defalias 'sh-learn-line-indent #[(arg) "\306 \210\212\307 \210\310\311!)\203\312\313!\207\314 \315!\316\211\316\211\317 	;\2035\312\320	\"\202\224	\321=\203g\322U\203F\322\202\\\323\324!\211U\203Y\323\202[*\312\325	\211J#\202\224\326	!\211\247\203\215\324!\nZ\f\\\327	
#\210\312\325	\211J#\202\224\330 \210\312\331	\".\207" [info var ival sval diff new-val sh-must-support-indent beginning-of-line looking-at "\\s-*$" message "sh-learn-line-indent ignores empty lines." sh-get-indent-info sh-get-indent-var-for-line nil current-indentation "Cannot learn line - %s" sh-indent-comment 0 t sh-calculate-indent "%s set to %s" sh-var-value sh-set-var-value debug "Cannot change %s" arg no-symbol curr-indent val2] 5 (#$ . 77583) "*P"])
#@51 Initialize a BUFFER to be used by `sh-mark-line'.
(defalias 'sh-mark-init #[(buffer) "r\301!q\210\302 \210\303 )\207" [buffer get-buffer-create erase-buffer occur-mode] 2 (#$ . 78716)])
#@298 Insert MESSAGE referring to location POINT in current buffer into BUFFER.
Buffer BUFFER is in `occur-mode'.
If ADD-LINENUM is non-nil the message is preceded by the line number.
If OCCUR-POINT is non-nil then the line is marked as a new occurrence
so that `occur-next' and `occur-prev' will work.
(defalias 'sh-mark-line #[(message point buffer &optional add-linenum occur-point) "\306 \307\310\203\np\223\210\f\203\311\312\313\314\"T\"\212\315
!\203,\315
!q\210\2024\316
!q\210\317 \210db\210`c\210\203D`c\210\203R\320	`\321#\210\322c\210\205l\323	`\324\n$\210\205l\323	\325\326$,\207" [line start m1 point add-linenum buffer make-marker nil "" format "%d: " count-lines 1 get-buffer get-buffer-create occur-mode add-text-properties (mouse-face highlight help-echo "mouse-2: go to the line where I learned this") "\n" put-text-property occur-target occur-match t occur-point message] 5 (#$ . 78910)])
#@62 An abnormal hook, called with an alist of learned variables.
(defvar sh-learned-buffer-hook nil (#$ . 79849))
#@984 Learn how to indent the buffer the way it currently is.

Output in buffer "*indent*" shows any lines which have conflicting
values of a variable, and the final value of all variables learned.
When called interactively, pop to this buffer automatically if
there are any discrepancies.

If no prefix ARG is given, then variables are set to numbers.
If a prefix arg is given, then variables are set to symbols when
applicable -- e.g. to symbol `+' if the value is that of the
basic indent.
If a positive numerical prefix is given, then  `sh-basic-offset'
is set to the prefix's numerical value.
Otherwise, sh-basic-offset may or may not be changed, according
to the value of variable `sh-learn-basic-offset'.

Abnormal hook `sh-learned-buffer-hook' if non-nil is called when the
function completes.  The function is abnormal because it is called
with an alist of variables learned.  This feature may be changed or
removed in the future.

This command can often take a long time to run.
(defalias 'sh-learn-buffer-indent #[(&optional arg) "\306 \210\212eb\210\307\310\311\307\312\307\211\211\313\307\205\247\205\311V\311\307@ABCDEFG\314C\311\"B\315F!\210\203P,\316\317,\"\202V\316\320,\"`dW\203n\nT\321\322\n\"\210\323\324!\204h\313$\325 H\326H!I\307\211JK\307\211LM\327 NI\203fI;\204f\330I\331\"\211J\247\203<\332 KNKZLJL\\M\333IM\334#\210\323\335!\204f\336IG\"\211D\203IJDA@=\204\337\316\340I\211J#`F\313\211%\210\337\316\341DA@\"\342D8F\313$\210ETEDIJ`D\241\210\202\343I\211J`ECG\"GM\247\203fM\311W\203%M[MMCW\203fBMBMHTI\210\202fI\344=\203fN\332H!U\204f\307@\203b@N=\204f\313@\202fN@.\345y\210\202VO\203\203\316\346@
#A\337A\307F#\210@\311=\203\220\347A\202\263
\203\235\350A\313@\202\263@\247\203\255\316\351@\"A\202\263\352A\307@\337A\307F#\210\337\f\307F\313\211%\210\353B!\211\203:\204:P\313=\203\341	\247\203\341	\202\374P\203\373	\247\203\357	\202\374	G\345U\205\374	@\202\374\307\211Q\203\343\354Q\211,dECG\"G\337\316\355,\"\307F#\210\2029\337	<\2030\316\356\357\360	\361#\"\2024\316\362	\"\307F#\210)\343\344@dECG\"G@$\363 R\337\364\307F#\210\203\223\365G!\307S\211T\203\222T@\211S@SA@U\211I\354=\204\210U\247\203\210\333IU\"\210*TA\211T\204f*\365G!\307S\211T\203\303T@\211S@I\337\316\366I\211J#\342S8F#\210)TA\211T\204\240*rFq\210eb\210\316\367R\"\316\370E\211\345U\203\337\371\202\340\372\373E!\203\353\374\202\354\375$\261\210*\376\377G\"\210\201W\201X!\205V\204
E\311V\205\201YF!.\207" [arg suggested linenum specified-basic-offset initial-msg comments-always-default sh-must-support-indent nil "*indent*" 0 17 t make-vector sh-mark-init format "Using specified sh-basic-offset of %d" "Initial value of sh-basic-offset: %s" message "line %d" looking-at "\\s-*$" sh-get-indent-info sh-get-indent-var-for-line current-indentation sh-var-value no-error sh-calculate-indent sh-set-var-value no-symbol "\\s-*#" assoc sh-mark-line "Variable %s was set to %s" "  but was previously set to %s" 2 append sh-indent-comment 1 "comment-col = %s  comments-always-default = %s" "\nComments are all in 1st column.\n" "\nComments follow default indentation.\n" "\nComments are in col %d." "\nComments seem to be mixed, leaving them as is.\n" sh-guess-basic-offset sh-basic-offset "Changed sh-basic-offset to: %d" "Possible value(s) for sh-basic-offset:  %s" mapconcat int-to-string " " "Suggested sh-basic-offset:  %d" buffer-name "\nLearned variable settings:" reverse "  %s %s" "Indentation values for buffer %s.\n" "%d indentation variable%s different values%s\n\n" " has" "s have" zerop "." ":" run-hook-with-args sh-learned-buffer-hook comment-col msg vec max previous-set-info num-diffs out-buffer learned-var-list info var sval ival diff new-val curr-indent sh-debug sh-learn-basic-offset new-value name learned-var --dolist-tail-- val sh-popup-occur-buffer called-interactively-p any pop-to-buffer] 14 (#$ . 79966) "P"])
#@405 See if we can determine a reasonable value for `sh-basic-offset'.
This is experimental, heuristic and arbitrary!
Argument VEC is a vector of information collected by
`sh-learn-buffer-indent'.
Return values:
  number          - there appears to be a good single value
  list of numbers - no obvious one, here is a list of one or more
		    reasonable choices
  nil		  - we couldn't find a reasonable one.
(defalias 'sh-guess-basic-offset #[(vec) "GS\306\307	\310\"\n	W\203O\n\nH\nH\311_\\I\210\312\n\313\246!\2033\n\nH\n\313\245H\\I\210\n\313_	W\203H\n\nH\n\313_H\\I\210\nT\211\202\f\314\211\211\211\211\306\211	W\203\nH\310U\204x\315\n\nHBC\"\nT\211\202_\316\317\"\320\321\315\314\"\"\312G!\203\236\322\323!\210\202GG\306U\203\267\322\324@@\"\210@@\202G@A\313\245V\203\324\322\325@@\"\210@@\202G@AA@A\313_Y\203\364\322\326@@\"\210@@\202G@AA@A\\\313\245Y\203?\310\314\f\2032
\f@A\\\211\313\245X\2032\315\f@@C\"\fA\211\204\322\327\330\331\332#\"\210\202G\322\333@@\"\210.\207" [vec max i totals p sum 1 make-vector 0 4 zerop 2 nil append sort #[(a b) "A	AV\207" [a b] 2] apply + message "no values!" "only value is %d" "basic-offset is probably %d" "basic-offset could be %d" "Possible choices for sh-basic-offset: %s" mapconcat int-to-string " " "No obvious value for sh-basic-offset.  Perhaps %d" tot result x] 7 (#$ . 84026)])
#@47 A list of all known shell indentation styles.
(defvar sh-styles-alist nil (#$ . 85477))
#@273 Name the current indentation settings as a style called NAME.
If this name exists, the command will prompt whether it should be
overwritten if
- - it was called interactively with a prefix argument, or
- - called non-interactively with optional CONFIRM-OVERWRITE non-nil.
(defalias 'sh-name-style #[(name &optional confirm-overwrite) "\306\307	\"B\310\n\"\203-
\203!\311\312!\204!\313\314\"\2027\313\315\"\210\fA\241\2027\313\316\"\210\f\nB\211*\207" [name sh-var-list sh-styles-alist style slist confirm-overwrite mapcar #[(var) "\211JB\207" [var] 2] assoc y-or-n-p "This style exists.  Overwrite it? " message "Not changing style %s" "Updating style %s" "Creating new style %s"] 4 (#$ . 85572) (list (read-from-minibuffer "Name for this style? ") (not current-prefix-arg))])
#@72 Set shell indentation values for this buffer from those in style NAME.
(defalias 'sh-load-style #[(name) "\305	\"\211\204\306\307\"\202+\nA\310\211\205*\f@\211@AL\210\fA\211\204\310*)\207" [name sh-styles-alist sl var --dolist-tail-- assoc error "sh-load-style - style %s not known" nil] 4 (#$ . 86371) (list (completing-read "Which style to use for this buffer? " sh-styles-alist nil t))])
#@97 Save all current styles in elisp to buffer BUFF.
This is always added to the end of the buffer.
(defalias 'sh-save-styles-to-buffer #[(buff) "r\302!q\210db\210\303c\210\304\305\301\306	DEp\")\207" [buff sh-styles-alist get-buffer-create "\n" pp setq quote] 5 (#$ . 86782) (list (read-from-minibuffer "Buffer to save styles in? " "*scratch*"))])
(defconst sh-non-closing-paren (propertize ")" 'syntax-table sh-st-punc 'rear-nonsticky t))
(put 'sh-case 'no-self-insert t)
#@555 Insert a case/switch statement.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-case #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((csh "expression: " "switch( " str " )" n > "case " (read-string "pattern: ") 58 n > _ n "breaksw" n ("other pattern, %s: " < "case " str 58 n > _ n "breaksw" n) < "default:" n > _ n resume: < < "endsw" n) (es) (rc "expression: " > "switch( " str " ) {" n > "case " (read-string "pattern: ") n > _ n ("other pattern, %s: " "case " str > n > _ n) "case *" > n > _ n resume: 125 > n) (sh "expression: " > "case " str " in" n ("pattern, %s: " > str sh-non-closing-paren n > _ n ";;" n) > "*" sh-non-closing-paren n > _ n resume: "esac" > n))] 4 (#$ . 87260) "*P\nP"])
(put 'sh-for 'no-self-insert t)
#@542 Insert a for loop.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-for #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((csh sh-modify sh 1 "" 2 "foreach " 4 " ( " 6 " )" 15 '< 16 "end") (es sh-modify rc 4 " = ") (rc sh-modify sh 2 "for( " 6 " ) {" 15 125) (sh "Index variable: " > "for " str " in " _ "; do" n > _ | 36 & (sh-remember-variable str) n "done" > n))] 4 (#$ . 88506) "*P\nP"])
(put 'sh-indexed-loop 'no-self-insert t)
#@559 Insert an indexed loop from 1 to n.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-indexed-loop #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((bash sh-modify posix) (csh "Index variable: " "@ " str " = 1" n "while( $" str " <= " (read-string "upper limit: ") " )" n > _ 36 str n "@ " str "++" n < "end" n) (es sh-modify rc 4 " =") (ksh88 "Index variable: " > "integer " str "=0" n > "while (( ( " str " += 1 ) <= " (read-string "upper limit: ") " )); do" n > _ 36 (sh-remember-variable str) > n "done" > n) (posix "Index variable: " > str "=1" n "while [ $" str " -le " (read-string "upper limit: ") " ]; do" n > _ 36 str n str 61 (sh-add (sh-remember-variable str) 1) n "done" > n) (rc "Index variable: " > "for( " str " in" " `{awk 'BEGIN { for( i=1; i<=" (read-string "upper limit: ") "; i++ ) print i }'`}) {" n > _ 36 (sh-remember-variable str) n 125 > n) (sh "Index variable: " > "for " str " in `awk 'BEGIN { for( i=1; i<=" (read-string "upper limit: ") "; i++ ) print i }'`; do" n > _ 36 (sh-remember-variable str) n "done" > n))] 4 (#$ . 89452) "*P\nP"])
#@88 Scan the buffer for variable assignments.
Add these variables to `sh-shell-variables'.
(defalias 'sh-shell-initialize-variables #[nil "\301\302\303 \"\210\212eb\210\304\305\306\307\304#\203\310\311!\210\202\f)\301\312\303 \"\207" [sh-shell-variables-initialized message "Scanning buffer `%s' for variable assignments..." buffer-name t search-forward "=" nil sh-assignment 0 "Scanning buffer `%s' for variable assignments...done"] 4 (#$ . 91034)])
#@547 Do completion using `sh-shell-variables', but initialize it first.
This function is designed for use as the "completion table",
so it takes three arguments:
  STRING, the current buffer contents;
  PREDICATE, the predicate for filtering possible matches;
  CODE, which says what kind of things to do.
CODE can be nil, t or `lambda'.
nil means to return the best completion of STRING, or nil if there is none.
t means to return a list of all possible completions of STRING.
`lambda' means to return t if STRING is a valid completion as it stands.
(defalias 'sh-add-completer #[(string predicate code) "rq\210	\204\306 \210\307\310\n\"\244)\311
\f\n$)\207" [sh-add-buffer sh-shell-variables-initialized process-environment sh-shell-variables vars code sh-shell-initialize-variables mapcar #[(var) "\301\302\303\"O\207" [var 0 string-match "="] 5] complete-with-action string predicate] 5 (#$ . 91492)])
#@69 Insert an addition of VAR and prefix DELTA for Bourne (type) shell.
(defalias 'sh-add #[(var delta) "\302\303!\304!	\305W\203\306\202\307\310\311	!!\302\312!\261\207" [var delta sh-feature ((bash . "$(( ") (ksh88 . "$(( ") (posix . "$(( ") (rc . "`{expr $") (sh . "`expr $") (zsh . "$[ ")) sh-remember-variable 0 " - " " + " number-to-string abs ((bash . " ))") (ksh88 . " ))") (posix . " ))") (rc . "}") (sh . "`") (zsh . " ]"))] 6 (#$ . 92409) (let ((sh-add-buffer (current-buffer))) (list (completing-read "Variable: " 'sh-add-completer) (prefix-numeric-value current-prefix-arg)))])
(put 'sh-function 'no-self-insert t)
#@553 Insert a function definition.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-function #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((bash sh-modify ksh88 3 "() {") (ksh88 "name: " "function " str " {" n > _ n < "}" n) (rc sh-modify ksh88 1 "fn ") (sh nil "() {" n > _ n < "}" n))] 4 (#$ . 93046) "*P\nP"])
(put 'sh-if 'no-self-insert t)
#@547 Insert an if statement.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-if #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((csh "condition: " "if( " str " ) then" n > _ n ("other condition, %s: " < "else if( " str " ) then" n > _ n) < "else" n > _ n resume: < "endif" n) (es "condition: " > "if { " str " } {" n > _ n ("other condition, %s: " "} { " str " } {" > n > _ n) "} {" > n > _ n resume: 125 > n) (rc "condition: " > "if( " str " ) {" n > _ n ("other condition, %s: " "} else if( " str " ) {" > n > _ n) "} else {" > n > _ n resume: 125 > n) (sh "condition: " '(setq input (sh-feature sh-test)) > "if " str "; then" n > _ n ("other condition, %s: " > "elif " str "; then" > n > n) "else" > n > n resume: "fi" > n))] 4 (#$ . 93902) "*P\nP"])
(put 'sh-repeat 'no-self-insert t)
#@556 Insert a repeat loop definition.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-repeat #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((es nil > "forever {" n > _ n 125 > n) (zsh "factor: " > "repeat " str "; do" > n > n "done" > n))] 4 (#$ . 95202) "*P\nP"])
(put 'sh-select 'no-self-insert t)
#@550 Insert a select statement.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-select #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((ksh88 "Index variable: " > "select " str " in " _ "; do" n > 36 str n "done" > n) (bash sh-append ksh88))] 4 (#$ . 96014) "*P\nP"])
(put 'sh-tmp-file 'no-self-insert t)
#@569 Insert code to setup temporary file handling.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-tmp-file #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((bash sh-append ksh88) (csh (file-name-nondirectory (buffer-file-name)) "set tmp = `mktemp -t " str ".XXXXXX`" n "onintr exit" n _ (and (goto-char (point-max)) (not (bolp)) 10) "exit:\n" "rm $tmp* >&/dev/null" > n) (es (file-name-nondirectory (buffer-file-name)) > "local( signals = $signals sighup sigint;" n > "tmp = `{ mktemp -t " str ".XXXXXX } ) {" n > "catch @ e {" n > "rm $tmp^* >[2]/dev/null" n "throw $e" n "} {" > n _ n 125 > n 125 > n) (ksh88 sh-modify sh 7 "EXIT") (rc (file-name-nondirectory (buffer-file-name)) > "tmp = `{ mktemp -t " str ".XXXXXX }" n "fn sigexit { rm $tmp^* >[2]/dev/null }" n) (sh (file-name-nondirectory (buffer-file-name)) > "TMP=`mktemp -t " str ".XXXXXX`" n "trap \"rm $TMP* 2>/dev/null\" " 48 n))] 4 (#$ . 96830) "*P\nP"])
(put 'sh-until 'no-self-insert t)
#@545 Insert an until loop.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-until #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((sh "condition: " '(setq input (sh-feature sh-test)) > "until " str "; do" n > _ n "done" > n))] 4 (#$ . 98294) "*P\nP"])
(put 'sh-while 'no-self-insert t)
#@544 Insert a while loop.  See `sh-feature'.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-while #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((csh sh-modify sh 2 "" 3 "while( " 5 " )" 10 '< 11 "end") (es sh-modify sh 3 "while { " 5 " } {" 10 125) (rc sh-modify sh 3 "while( " 5 " ) {" 10 125) (sh "condition: " '(setq input (sh-feature sh-test)) > "while " str "; do" n > _ n "done" > n))] 4 (#$ . 99090) "*P\nP"])
(put 'sh-while-getopts 'no-self-insert t)
#@694 Insert a while getopts loop.  See `sh-feature'.
Prompts for an options string which consists of letters for each recognized
option followed by a colon `:' if the option accepts an argument.

This is a skeleton command (see `skeleton-insert').
Normally the skeleton text is inserted at point, with nothing "inside".
If there is a highlighted region, the skeleton text is wrapped
around the region text.

A prefix argument ARG says to wrap the skeleton around the next ARG words.
A prefix argument of -1 says to wrap around region, even if not highlighted.
A prefix argument of zero says to wrap around zero words---that is, nothing.
This is a way of overriding the use of a highlighted region.
(defalias 'sh-while-getopts #[(&optional str arg) "\302\303	#\207" [str arg skeleton-proxy-new ((bash sh-modify sh 18 "${0##*/}") (csh nil "while( 1 )" n > "switch( \"$1\" )" n '(setq input '("- x" . 2)) > > ("option, %s: " < "case " '(eval str) '(if (string-match " +" str) (setq v1 (substring str (match-end 0)) str (substring str 0 (match-beginning 0))) (setq v1 nil)) str 58 n > "set " v1 & " = $2" | -4 & _ n (if v1 "shift") & n "breaksw" n) < "case --:" n > "shift" n < "default:" n > "break" n resume: < < "endsw" n "shift" n < "end" n) (ksh88 sh-modify sh 16 "print" 18 "${0##*/}" 37 "OPTIND-1") (posix sh-modify sh 18 "$(basename $0)") (sh "optstring: " > "while getopts :" str " OPT; do" n > "case $OPT in" n '(setq v1 (append (vconcat str) nil)) ((prog1 (if v1 (char-to-string (car v1))) (if (eq (nth 1 v1) 58) (setq v1 (nthcdr 2 v1) v2 "\"$OPTARG\"") (setq v1 (cdr v1) v2 nil))) > str "|+" str sh-non-closing-paren n > _ v2 n > ";;" n) > "*" sh-non-closing-paren n > "echo" " \"usage: " "`basename $0`" " [+-" '(setq v1 (point)) str '(save-excursion (while (search-backward ":" v1 t) (replace-match " ARG] [+-" t t))) (if (eq (preceding-char) 45) -5) (if (and (sequencep v1) (length v1)) "] " "} ") "[--] ARGS...\"" n "exit 2" > n "esac" > n "done" > n "shift " (sh-add "OPTIND" -1) n "OPTIND=1" n))] 4 (#$ . 100044) "*P\nP"])
#@73 Remember preceding identifier for future completion and do self-insert.
(defalias 'sh-assignment #[(arg) "\302!\210\303X\205\304\212\305\306	!`\307\303!\210\310#\205\311\303!)!\207" [arg sh-assignment-regexp self-insert-command 1 sh-remember-variable re-search-forward sh-feature beginning-of-line t match-string] 6 (#$ . 102083) "p"])
#@129 Insert self.  Without prefix, following unquoted `<' inserts here document.
The document is bounded by `sh-here-document-word'.
(defalias 'sh-maybe-here-document #[(arg) "\301\302!!\210\206\f\303 \207" [arg self-insert-command prefix-numeric-value sh--maybe-here-document] 3 (#$ . 102432) "*P"])
(make-obsolete 'sh-maybe-here-document 'sh-electric-here-document-mode "24.3")
(defalias 'sh--maybe-here-document #[nil "\304\305!?\206_\212\306u\210\307 )\206_\310\311 8\206_\312\313\"\203)\314\315 	\245\316\"\202*\317\320\321\317#c\210l\204A\322\323!\204A\324c\210\325\210\307 \203O\326\210\202D\327\261\210\212\327\320\330\317\n#\261+\207" [sh-here-document-word tab-width delim tabs looking-back "[^<]<<" -2 sh-quoted-p 8 syntax-ppss string-match "\\`-" make-string current-indentation 9 "" replace-regexp-in-string "['\"]" looking-at "[ 	]" 32 1 2 10 "\\`-?[ 	]*"] 6])
#@129 Non-nil if Sh-Electric-Here-Document mode is enabled.
Use the command `sh-electric-here-document-mode' to change this variable.
(defvar sh-electric-here-document-mode nil (#$ . 103332))
(make-variable-buffer-local 'sh-electric-here-document-mode)
#@42 Make << insert a here document skeleton.
(defalias 'sh-electric-here-document-mode #[(&optional arg) "\303 	\304=\203\n?\202\305	!\306V\211\203\"\307\310\311\312\313$\210\202(\314\310\311\313#\210\315\316\n\2032\317\2023\320\"\210\321\322!\203T\303 \203G\303 \232\203T\323\324\n\203Q\325\202R\326\"\210)\327 \210\n\207" [#1=#:last-message arg sh-electric-here-document-mode current-message toggle prefix-numeric-value 0 add-hook post-self-insert-hook sh--maybe-here-document nil t remove-hook run-hooks sh-electric-here-document-mode-hook sh-electric-here-document-mode-on-hook sh-electric-here-document-mode-off-hook called-interactively-p any message "Sh-Electric-Here-Document mode %sabled" "en" "dis" force-mode-line-update] 6 (#$ . 103585) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\303\211%\207" [sh-electric-here-document-mode-map add-minor-mode sh-electric-here-document-mode nil boundp] 6)
#@50 Move point to successive beginnings of commands.
(defalias 'sh-beginning-of-command #[nil "\301\302\303#\205\304\224b\207" [sh-beginning-of-command re-search-backward nil t 2] 4 (#$ . 104546) nil])
#@44 Move point to successive ends of commands.
(defalias 'sh-end-of-command #[nil "\301\302\303#\205\304\225b\207" [sh-end-of-command re-search-forward nil t 1] 4 (#$ . 104753) nil])
#@464 Insert, align, or delete end-of-line backslashes on the lines in the region.
With no argument, inserts backslashes and aligns existing backslashes.
With an argument, deletes the backslashes.

This function does not modify the last line of the region if the region ends
right at the start of the following line; it does not modify blank lines
at the start of the region.  So you can put the region around an entire
shell command and conveniently use this command.
(defalias 'sh-backslash-region #[(from to delete-flag) "\212b\210	\306 \n\f\307\223\210
\203Z\2048`\fW\2038\307\210h\310U\203-\311u\210\312\307x\210iT]\313y\210\202\246\314V\203Z\315\311#\245_\211\316 W\203Y)b\210`\nW\203ml\203m\313y\210\202]`\nW\203\223\212\313y\210`\nW)\203\223\204\212\317!\210\202\215\320 \210\313y\210\202m\n\307\211\223+\207" [from sh-backslash-column endmark column to sh-backslash-align make-marker nil 92 -1 " 	" 1 0 + window-width sh-append-backslash sh-delete-backslash delete-flag tab-width adjusted] 5 (#$ . 104942) "r\nP"])
(defalias 'sh-append-backslash #[(column) "\302\210h\303U\203\304u\210\305 \210\306	?\205\307\"\207\306	?\205!\307\"\210\310c\207" [column sh-backslash-align nil 92 -1 delete-horizontal-space indent-to 1 "\\"] 3])
(defalias 'sh-delete-backslash #[nil "\300\210n\206\301u\210\302\303!\205`T\304\300x\210`|\207" [nil -1 looking-at "\\\\" " 	"] 3])
(provide 'sh-script)

MMCT - 2023