1. 12 Nov, 2000 1 commit
    • Stefan Monnier's avatar
      (sh-mode-syntax-table) <defvar>: · aace6150
      Stefan Monnier authored
      Make it into a simple syntax-table, shared among all submodes.
      (sh-heredoc-face): Re-introduce.
      (sh-font-lock-syntactic-face-function): New function.
      (sh-mode): Use it.  Also use define-derived-mode.
      Remove old bogus setting of indent-region-function.
      (sh-set-shell): Don't set the syntax-table any more.
      (sh-mode-syntax-table) <defun>: Remove.
      aace6150
  2. 21 Oct, 2000 1 commit
    • Stefan Monnier's avatar
      (sh-mode-map): Remove bindings for · 34939e2c
      Stefan Monnier authored
      sh-electric-rparen, sh-electric-less and sh-electric-hash.
      (sh-st-punc, sh-here-doc-syntax): Use string-to-syntax.
      (sh-font-lock-heredoc, sh-font-lock-paren): New funs.
      (sh-font-lock-syntactic-keywords): Use them.
      (sh-heredoc-face, sh-st-face, sh-special-syntax): Remove.
      (sh-mkword-regexp, sh-electric-rparen-needed-here): Remove.
      (sh-mode): Don't override font-lock-unfontify-region-function.
      Use a copy of sh-font-lock-syntactic-keywords.
      (sh-set-shell): Don't set sh-electric-rparen-needed-here.
      Don't call sh-scan-buffer since font-lock does it on the fly.
      (sh-get-indent-info): Use `face' rather than `syntax-table'
      text-property to detect here-documents.
      Replace sh-special-syntax with sh-st-punc.
      (sh-prev-line): Use `face' rather than `syntax-table'
      text-property to skip over here-documents.
      (sh-font-lock-unfontify-region-function, sh-check-paren-in-case)
      (sh-set-char-syntax, sh-electric-rparen, sh-electric-hash)
      (sh-electric-less, sh-set-here-doc-region)
      (sh-remove-our-text-properties, sh-search-word, sh-scan-case)
      (sh-scan-buffer, sh-rescan-buffer): Remove.
      34939e2c
  3. 15 Oct, 2000 2 commits
    • Dave Love's avatar
      Require skeleton and comint when · d2d00127
      Dave Love authored
      compiling.
      d2d00127
    • Stefan Monnier's avatar
      (sh-imenu-generic-expression): Fix. · 6c5bcbc1
      Stefan Monnier authored
      (sh-mode-syntax-table): Add punctuation syntax for < and >.
      (sh-mode): Don't make all vars local here.
      (sh-kw): Reformat.
      (sh-set-shell): Use dolist.  Don't set indent-region-function.
      (sh-mode-syntax-table): Use pop.
      (sh-remember-variable): Use push.
      (sh-help-string-for-variable): Use memq.
      (sh-safe-backward-sexp): Remove.
      (sh-safe-forward-sexp): Add ARG.
      (sh-get-indent-info, sh-prev-stmt): Use it.
      (sh-prev-line): Simplify by using forward-comment.
      (sh-this-is-a-continuation): Simplify.
      (sh-learn-buffer-indent): Use dolist.
      (sh-do-nothing): Remove.
      (sh-set-char-syntax, sh-set-here-doc-region):
      Use inhibit-modification-hooks.
      (sh-name-style): Use mapcar and push.
      (sh-load-style): Use dolist.
      (sh-save-styles-to-buffer): Use with-current-buffer and pp.
      (sh-case, sh-while-getopts): Use propertize directly rather
      than sh-electric-rparen.
      6c5bcbc1
  4. 19 Sep, 2000 2 commits
  5. 18 Aug, 2000 1 commit
  6. 21 Jun, 2000 1 commit
  7. 05 Jun, 2000 1 commit
    • Stefan Monnier's avatar
      (sh-symbol-list, sh-number-or-symbol-list) · d92474ed
      Stefan Monnier authored
      (sh-re-done): Use defconst.
      (sh-indent-supported-here, sh-electric-rparen-needed-here): Add defvar.
      (sh-help-string-for-variable, sh-guess-basic-offset):
      Don't quote lambdas.
      (sh-electric-rparen, sh-electric-hash, sh-search-word): Docstring typo.
      (sh-regexp-for-done, sh-kw-alist, sh-kw): Moved to before their use.
      d92474ed
  8. 23 May, 2000 1 commit
  9. 15 May, 2000 1 commit
  10. 22 Dec, 1999 1 commit
  11. 16 Dec, 1999 2 commits
  12. 12 Dec, 1999 1 commit
  13. 12 Oct, 1999 1 commit
    • Gerd Moellmann's avatar
      Added support for indenting existing scripts. · f964dfcb
      Gerd Moellmann authored
      (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.
      f964dfcb
  14. 06 Sep, 1999 1 commit
  15. 01 Jul, 1999 1 commit
  16. 29 Jun, 1999 1 commit
  17. 15 May, 1999 1 commit
  18. 14 Dec, 1998 1 commit
  19. 30 Oct, 1998 1 commit
  20. 21 Oct, 1998 1 commit
  21. 20 Oct, 1998 1 commit
  22. 28 Sep, 1998 1 commit
  23. 19 Jul, 1998 1 commit
  24. 07 May, 1998 1 commit
  25. 03 May, 1998 1 commit
  26. 20 Apr, 1998 1 commit
  27. 15 Feb, 1998 1 commit
  28. 11 Feb, 1998 1 commit
  29. 26 Jan, 1998 1 commit
  30. 12 Dec, 1997 1 commit
  31. 04 Dec, 1997 2 commits
  32. 30 Nov, 1997 1 commit
  33. 27 Aug, 1997 1 commit
  34. 23 Aug, 1997 1 commit
  35. 22 Jun, 1997 1 commit
  36. 29 May, 1997 1 commit