aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-11 07:14:24 +0000
committerRichard M. Stallman1998-02-11 07:14:24 +0000
commit0775c032ae5c3e4cabb593555ae88e999eb0342f (patch)
tree162f15dfabcff6c7b615bd5a9c42944795c9c5cc
parent06f7f0a00e9a1ac209488464d93fd98c37817f6e (diff)
downloademacs-0775c032ae5c3e4cabb593555ae88e999eb0342f.tar.gz
emacs-0775c032ae5c3e4cabb593555ae88e999eb0342f.zip
(sh-set-shell): Use standard-syntax-table if none other is specified.
-rw-r--r--lisp/progmodes/sh-script.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 4cc89af5f1e..bc106f82b30 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -831,7 +831,8 @@ Calls the value of `sh-set-shell-hook' if set."
831 imenu-generic-expression (sh-feature sh-imenu-generic-expression) 831 imenu-generic-expression (sh-feature sh-imenu-generic-expression)
832 imenu-case-fold-search nil 832 imenu-case-fold-search nil
833 shell (sh-feature sh-variables)) 833 shell (sh-feature sh-variables))
834 (set-syntax-table (sh-feature sh-mode-syntax-table)) 834 (set-syntax-table (or (sh-feature sh-mode-syntax-table)
835 (standard-syntax-table)))
835 (while shell 836 (while shell
836 (sh-remember-variable (car shell)) 837 (sh-remember-variable (car shell))
837 (setq shell (cdr shell))) 838 (setq shell (cdr shell)))