From 9a1136f4de4a20231cac5a8894bf598250cc4ec3 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 29 Jun 1999 17:06:17 +0000 Subject: [PATCH] (sh-mode): When setting syntax table, default to the standard one. --- lisp/progmodes/sh-script.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 44d70931f66..622e63512d0 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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))