| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | (sh-mode): Don't call sh-set-shell | Gerd Moellmann | 1999-12-22 | 1 | -1/+1 |
| | | | | | with third argument t. | ||||
| * | Fix typo. | Gerd Moellmann | 1999-12-16 | 1 | -1/+1 |
| | | |||||
| * | (sh-mode): If there is no #!-line, use the shell | Gerd Moellmann | 1999-12-16 | 1 | -6/+1 |
| | | | | | from sh-shell-file. | ||||
| * | Fix for when font-lock mode is active. | Gerd Moellmann | 1999-12-12 | 1 | -0/+14 |
| | | | | | (sh-font-lock-unfontify-region-function): New function. | ||||
| * | Added support for indenting existing scripts. | Gerd Moellmann | 1999-10-12 | 1 | -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 Zaretskii | 1999-09-06 | 1 | -2/+2 |
| | | |||||
| * | (sh-feature): If nothing is known about the given shell, use the | Richard M. Stallman | 1999-07-01 | 1 | -0/+4 |
| | | | | | values for `sh'. | ||||
| * | (sh-mode): When setting syntax | Karl Heuer | 1999-06-29 | 1 | -1/+2 |
| | | | | | table, default to the standard one. | ||||
| * | (sh-mode): Do not fail if buffer has no | Karl Heuer | 1999-05-15 | 1 | -2/+3 |
| | | | | | magic number and is not associated with a file. | ||||
| * | Update comment. | Karl Heuer | 1998-12-14 | 1 | -1/+1 |
| | | |||||
| * | (sh-canonicalize-shell): Fix regexp. | Andreas Schwab | 1998-10-30 | 1 | -2/+2 |
| | | | | | (sh-set-shell): Likewise. | ||||
| * | (sh-font-lock-keywords): Don't crash for an unrecognized shell. | Richard M. Stallman | 1998-10-21 | 1 | -5/+6 |
| | | |||||
| * | (sh-mode): Handle .spec and .mspec files. | Richard M. Stallman | 1998-10-20 | 1 | -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. Stallman | 1998-09-28 | 1 | -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. Stallman | 1998-07-19 | 1 | -0/+2 |
| | | |||||
| * | (sh-shell-file): Add cmdproxy to MS shells. | Richard M. Stallman | 1998-05-07 | 1 | -1/+2 |
| | | |||||
| * | (sh-shell-file): If $SHELL evaluates to | Eli Zaretskii | 1998-05-03 | 1 | -1/+10 |
| | | | | | one of MS-DOS or MS-Windows shells, use "bin/sh" instead. | ||||
| * | *** empty log message *** | Dan Nicolaescu | 1998-04-20 | 1 | -1/+2 |
| | | |||||
| * | (sh-font-lock-keywords): Fontify sh-style function names in declarations. | Richard M. Stallman | 1998-02-15 | 1 | -1/+6 |
| | | |||||
| * | (sh-set-shell): Use standard-syntax-table if none other is specified. | Richard M. Stallman | 1998-02-11 | 1 | -1/+2 |
| | | |||||
| * | (sh-case): Fix paren error. | Richard M. Stallman | 1998-01-26 | 1 | -33/+33 |
| | | |||||
| * | Use imenu-case-fold-search. | Dave Love | 1997-12-12 | 1 | -0/+1 |
| | | |||||
| * | Deal with `#'s in variable references. | Simon Marshall | 1997-12-04 | 1 | -1/+8 |
| | | |||||
| * | (sh-imenu-generic-expression): New variable. | Karl Heuer | 1997-12-04 | 1 | -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 Love | 1997-11-30 | 1 | -3/+6 |
| | | |||||
| * | (sh-indent-line): Delete debugging code. | Richard M. Stallman | 1997-08-27 | 1 | -1/+0 |
| | | |||||
| * | (sh-indent-line): Avoid infinite loop | Richard M. Stallman | 1997-08-23 | 1 | -2/+5 |
| | | | | | on indented line at start of buffer, when calculating PREVIOUS. | ||||
| * | Whitespace change. | Richard M. Stallman | 1997-06-22 | 1 | -0/+1 |
| | | |||||
| * | Update for syntax-table text properties. | Simon Marshall | 1997-05-29 | 1 | -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-skeleton | Richard M. Stallman | 1997-04-22 | 1 | -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. Stallman | 1997-04-17 | 1 | -3/+3 |
| | | |||||
| * | (sh-while-getopts): Don't add menu-enable property. | Richard M. Stallman | 1997-04-15 | 1 | -1/+0 |
| | | |||||
| * | Add defgroup's; change use defcustom for user vars. | Richard M. Stallman | 1997-04-12 | 1 | -29/+95 |
| | | |||||
| * | (sh-mode): Set font-lock-comment-start-regexp via font-lock-defaults. | Richard M. Stallman | 1997-04-10 | 1 | -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. Stallman | 1997-03-30 | 1 | -1/+4 |
| | | | | | set the syntax table based on the default shell. | ||||
| * | (sh-case): Define with defun and defvar | Richard M. Stallman | 1997-03-22 | 1 | -39/+46 |
| | | | | | instead of define-skeleton. | ||||
| * | (sh-mode-hook, sh-set-shell-hook): Add defvars. | Karl Heuer | 1997-02-23 | 1 | -0/+6 |
| | | |||||
| * | (sh-shell-file): Downcase and remove extension on shells in NT. | Richard M. Stallman | 1997-01-07 | 1 | -3/+3 |
| | | |||||
| * | (sh-shell-file): On MSDOS, collapse $SHELL to lower | Richard M. Stallman | 1997-01-02 | 1 | -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-flag | Richard M. Stallman | 1996-11-09 | 1 | -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. Stallman | 1996-11-07 | 1 | -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'; otherwise | Richard M. Stallman | 1996-11-07 | 1 | -0/+1 |
| | | | | | only set if `sh-set-shell' gets called. | ||||
| * | Use new face. | Simon Marshall | 1996-10-28 | 1 | -1/+1 |
| | | |||||
| * | (sh-mode): Don't make font-lock-keywords buffer-local. | Richard M. Stallman | 1996-10-26 | 1 | -1/+0 |
| | | |||||
| * | (sh-alias-alist): Use gnu/linux, not lignux. | Richard M. Stallman | 1996-08-28 | 1 | -1/+1 |
| | | |||||
| * | (sh-mode): Call sh-set-shell only for a writable | Karl Heuer | 1996-07-15 | 1 | -4/+3 |
| | | | | | empty buffer. | ||||
| * | (sh-while-getopts): Punctuate help message better. | Richard M. Stallman | 1996-04-15 | 1 | -3/+3 |
| | | |||||
| * | (sh-alias-alist): Recognize lignux. | Richard M. Stallman | 1996-03-27 | 1 | -1/+1 |
| | | |||||
| * | (sh-shell-arg): Add no options for bash, ksh, or wksh. | Richard M. Stallman | 1996-03-27 | 1 | -4/+7 |
| | | |||||
| * | (sh-shell-arg): Don't add any options for bash, ksh. | Richard M. Stallman | 1996-03-25 | 1 | -2/+5 |
| | | |||||