]> code.delx.au - gnu-emacs/commitdiff
Removed setting of font-lock-keywords inadvertently left after last patch.
authorSimon Marshall <simon@gnu.org>
Wed, 12 Oct 1994 16:03:28 +0000 (16:03 +0000)
committerSimon Marshall <simon@gnu.org>
Wed, 12 Oct 1994 16:03:28 +0000 (16:03 +0000)
lisp/progmodes/sh-script.el

index 260c31186e20866bd1bf3230132cae4e82064fcf..c04a31607da0047d8328fc8a8d2549c5a7a27b1e 100644 (file)
@@ -827,11 +827,11 @@ Calls the value of `sh-set-shell-hook' if set."
          sh-shell (intern (file-name-nondirectory sh-shell-path))
          sh-shell-is-csh (memq sh-shell '(csh tcsh))
          font-lock-defaults
-         (list (intern-soft (format "sh-%s-font-lock-keywords" sh-shell))) 
-         font-lock-keywords (if (and font-lock-keywords
-                                     (boundp font-lock-keywords))
-                                (symbol-value font-lock-keywords)
-                              sh-font-lock-keywords)
+         (let ((keywords (intern-soft (format "sh-%s-font-lock-keywords"
+                                              sh-shell))))
+           (list (if (and keywords (boundp keywords))
+                     keywords
+                   'sh-font-lock-keywords)))
          comment-start-skip (if sh-shell-is-csh
                                 "\\(^\\|[^$]\\|\\$[^{]\\)#+[\t ]*"
                               "\\(^\\|[^$]\\|\\$[^{]\\)\\B#+[\t ]*")