• 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
sh-script.el 123 KB