]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-mode): When setting syntax
authorKarl Heuer <kwzh@gnu.org>
Tue, 29 Jun 1999 17:06:17 +0000 (17:06 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 29 Jun 1999 17:06:17 +0000 (17:06 +0000)
table, default to the standard one.

lisp/progmodes/sh-script.el

index 44d70931f66f6e7601b6df32e6a102b87be5f198..622e63512d0dfe5b3324732cab07a1fe4ab14765 100644 (file)
@@ -783,7 +783,8 @@ with your script for an edit-interpret-debug cycle."
       (progn
         ;; If we don't know the shell for this file, set the syntax
         ;; table anyway, for the user's normal choice of shell.
-        (set-syntax-table (sh-feature sh-mode-syntax-table))
+       (set-syntax-table (or (sh-feature sh-mode-syntax-table)
+                             (standard-syntax-table)))
         ;; And avoid indent-new-comment-line (at least) losing.
         (setq comment-start-skip "#+[\t ]*"))))
   (run-hooks 'sh-mode-hook))