Mercurial > emacs
changeset 24899:64ccdc0f6af9
(sh-mode): When setting syntax
table, default to the standard one.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 29 Jun 1999 17:06:17 +0000 |
parents | bd105cd3c084 |
children | b57b0a4e4230 |
files | lisp/progmodes/sh-script.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el Sun Jun 27 23:36:46 1999 +0000 +++ b/lisp/progmodes/sh-script.el Tue Jun 29 17:06:17 1999 +0000 @@ -783,7 +783,8 @@ (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))