aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/sh-script.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (sh-mode): Don't call sh-set-shellGerd Moellmann1999-12-221-1/+1
| | | | with third argument t.
* Fix typo.Gerd Moellmann1999-12-161-1/+1
|
* (sh-mode): If there is no #!-line, use the shellGerd Moellmann1999-12-161-6/+1
| | | | from sh-shell-file.
* Fix for when font-lock mode is active.Gerd Moellmann1999-12-121-0/+14
| | | | (sh-font-lock-unfontify-region-function): New function.
* Added support for indenting existing scripts.Gerd Moellmann1999-10-121-103/+2599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (sh-mode-map): Added new bindings. (sh-mode): Updated mode doc-string for new commands, added make-local-variable calls, initialize mode-specific variables. (sh-indent-line): Renamed to sh-basic-indent-line; sh-indent-line is now a different function. (sh-header-marker): Changed docstring. (sh-set-shell): Initialize mode-specific variables. (sh-case, sh-for, sh-if, sh-indexed-loop, sh-repeat, sh-select) (sh-tmp-file, sh-until, sh-until, sh-while, sh-while-getopts): Changed these define-skeleton calls to work with user-specified indentation settings. (sh-basic-indent-line, sh-blink, sh-calculate-indent) (sh-check-paren-in-case, sh-check-rule, sh-do-nothing) (sh-electric-hash, sh-electric-less, sh-electric-rparen) (sh-find-prev-matching, sh-find-prev-switch, sh-get-indent-info) (sh-get-indent-var-for-line, sh-get-kw, sh-get-word) (sh-goto-match-for-done, sh-goto-matching-case, sh-goto-matching-if) (sh-guess-basic-offset, sh-handle-after-case-label) (sh-handle-prev-case, sh-handle-prev-case-alt-end, sh-handle-prev-do) (sh-handle-prev-done, sh-handle-prev-else, sh-handle-prev-esac) (sh-handle-prev-fi, sh-handle-prev-if, sh-handle-prev-open) (sh-handle-prev-rc-case, sh-handle-prev-then, sh-handle-this-close) (sh-handle-this-do, sh-handle-this-done, sh-handle-this-else) (sh-handle-this-esac, sh-handle-this-fi, sh-handle-this-rc-case) (sh-handle-this-then, sh-help-string-for-variable) (sh-in-comment-or-string, sh-indent-line, sh-learn-buffer-indent) (sh-learn-line-indent, sh-load-style, sh-make-vars-local, sh-mark-init) (sh-mark-line, sh-mkword-regexpr, sh-mkword-regexp) (sh-must-be-shell-mode, sh-must-support-indent, sh-name-style) (sh-prev-line, sh-prev-stmt, sh-prev-thing, sh-read-variable) (sh-remove-our-text-properties, sh-rescan-buffer) (sh-reset-indent-vars-to-global-values, sh-safe-backward-sexp) (sh-safe-forward-sexp, sh-save-styles-to-buffer, sh-scan-buffer) (sh-scan-case, sh-search-word, sh-set-char-syntax) (sh-set-here-doc-region, sh-set-indent, sh-set-var-value) (sh-show-indent, sh-this-is-a-continuation, sh-var-value): New functions. (sh-debug, sh-electric-rparen-needed, sh-here-doc-syntax) (sh-indent-supported, sh-kw, sh-kw-alist, sh-kws-for-done) (sh-learned-buffer-hook, sh-make-vars-local, sh-regexp-for-done) (sh-special-keywords, sh-special-syntax, sh-st-punc, sh-styles-alist) (sh-var-list): New variables.
* (sh-tmp-file): Use $TMPDIR, if defined, for sh.Eli Zaretskii1999-09-061-2/+2
|
* (sh-feature): If nothing is known about the given shell, use theRichard M. Stallman1999-07-011-0/+4
| | | | values for `sh'.
* (sh-mode): When setting syntaxKarl Heuer1999-06-291-1/+2
| | | | table, default to the standard one.
* (sh-mode): Do not fail if buffer has noKarl Heuer1999-05-151-2/+3
| | | | magic number and is not associated with a file.
* Update comment.Karl Heuer1998-12-141-1/+1
|
* (sh-canonicalize-shell): Fix regexp.Andreas Schwab1998-10-301-2/+2
| | | | (sh-set-shell): Likewise.
* (sh-font-lock-keywords): Don't crash for an unrecognized shell.Richard M. Stallman1998-10-211-5/+6
|
* (sh-mode): Handle .spec and .mspec files.Richard M. Stallman1998-10-201-4/+11
| | | | | (sh-font-lock-keywords): Handle rpm and rpm2. (sh-ancestor-alist): Handle rpm.
* (sh-set-shell): Remove .exe suffix from shell name.Richard M. Stallman1998-09-281-5/+9
| | | | | Don't reuse local var `shell' for two different things. (sh-canonicalize-shell): Remove .exe suffix from shell name.
* (sh-mode): parse-sexp-ignore-comments = t.Richard M. Stallman1998-07-191-0/+2
|
* (sh-shell-file): Add cmdproxy to MS shells.Richard M. Stallman1998-05-071-1/+2
|
* (sh-shell-file): If $SHELL evaluates toEli Zaretskii1998-05-031-1/+10
| | | | one of MS-DOS or MS-Windows shells, use "bin/sh" instead.
* *** empty log message ***Dan Nicolaescu1998-04-201-1/+2
|
* (sh-font-lock-keywords): Fontify sh-style function names in declarations.Richard M. Stallman1998-02-151-1/+6
|
* (sh-set-shell): Use standard-syntax-table if none other is specified.Richard M. Stallman1998-02-111-1/+2
|
* (sh-case): Fix paren error.Richard M. Stallman1998-01-261-33/+33
|
* Use imenu-case-fold-search.Dave Love1997-12-121-0/+1
|
* Deal with `#'s in variable references.Simon Marshall1997-12-041-1/+8
|
* (sh-imenu-generic-expression): New variable.Karl Heuer1997-12-041-0/+15
| | | | | (sh-mode): Make imenu-generic-expression local. (sh-set-shell): Set imenu-generic-expression based on which shell.
* (sh-mode): Set `comment-start-skip' always.Dave Love1997-11-301-3/+6
|
* (sh-indent-line): Delete debugging code.Richard M. Stallman1997-08-271-1/+0
|
* (sh-indent-line): Avoid infinite loopRichard M. Stallman1997-08-231-2/+5
| | | | on indented line at start of buffer, when calculating PREVIOUS.
* Whitespace change.Richard M. Stallman1997-06-221-0/+1
|
* Update for syntax-table text properties.Simon Marshall1997-05-291-12/+12
| | | | sh-script.el now directs font-lock.el to add them to instances of # which are not comments.
* (sh-case): Make this a simple define-skeletonRichard M. Stallman1997-04-221-46/+36
| | | | | | as it was originally. Don't add a menu-enable property. (sh-assignment-regexp): Renamed from sh-assignment-prefix undoing a renaming made by mistake.
* Remove all menu-enable properties except for sh-case.Richard M. Stallman1997-04-171-3/+3
|
* (sh-while-getopts): Don't add menu-enable property.Richard M. Stallman1997-04-151-1/+0
|
* Add defgroup's; change use defcustom for user vars.Richard M. Stallman1997-04-121-29/+95
|
* (sh-mode): Set font-lock-comment-start-regexp via font-lock-defaults.Richard M. Stallman1997-04-101-6/+9
| | | | | (sh-set-shell): Don't set font-lock-keywords or font-lock-syntax-table, and don't toggle Font Lock mode if it is already on.
* (sh-set-shell): If file has no #! line,Richard M. Stallman1997-03-301-1/+4
| | | | set the syntax table based on the default shell.
* (sh-case): Define with defun and defvarRichard M. Stallman1997-03-221-39/+46
| | | | instead of define-skeleton.
* (sh-mode-hook, sh-set-shell-hook): Add defvars.Karl Heuer1997-02-231-0/+6
|
* (sh-shell-file): Downcase and remove extension on shells in NT.Richard M. Stallman1997-01-071-3/+3
|
* (sh-shell-file): On MSDOS, collapse $SHELL to lowerRichard M. Stallman1997-01-021-8/+16
| | | | | | | | case and remove the executable extension, if any. (sh-other-keywords): Define an entry for `sh' and make `bourne' inherit from that. (sh-mode): Always pass nil as 3rd arg to sh-set-shell.
* (sh-set-shell): Pass args no-query-flagRichard M. Stallman1996-11-091-10/+19
| | | | | | | | | | and insert-flag to executable-set-magic. Don't call executable-set-magic if insert-flag is nil. (sh-mode): Always call sh-set-shell, but use insert-flag arg to control whether to call executable-set-magic. No need to set comment-start-skip directly here. (sh-mode): Parse the interpreter from the file text.
* (sh-mode-syntax-table): Turn on comment syntax for #,Richard M. Stallman1996-11-071-36/+14
| | | | | | | | | comment-end for newline, string for `, and excape for $. rc can use the same as sh. Move csh after sh. (sh-comment-prefix, sh-font-lock-keyw-rds-only): Variables deleted. (sh-mode): Adjust setting of font-lock-defaults. (sh-font-lock-keywords): No need for anything special for comments. (sh-set-shell, sh-mode): Set comment-start-skip to a simple constant.
* (sh-mode): Set `comment-start-skip'; otherwiseRichard M. Stallman1996-11-071-0/+1
| | | | only set if `sh-set-shell' gets called.
* Use new face.Simon Marshall1996-10-281-1/+1
|
* (sh-mode): Don't make font-lock-keywords buffer-local.Richard M. Stallman1996-10-261-1/+0
|
* (sh-alias-alist): Use gnu/linux, not lignux.Richard M. Stallman1996-08-281-1/+1
|
* (sh-mode): Call sh-set-shell only for a writableKarl Heuer1996-07-151-4/+3
| | | | empty buffer.
* (sh-while-getopts): Punctuate help message better.Richard M. Stallman1996-04-151-3/+3
|
* (sh-alias-alist): Recognize lignux.Richard M. Stallman1996-03-271-1/+1
|
* (sh-shell-arg): Add no options for bash, ksh, or wksh.Richard M. Stallman1996-03-271-4/+7
|
* (sh-shell-arg): Don't add any options for bash, ksh.Richard M. Stallman1996-03-251-2/+5
|