]> git.eshelyaron.com Git - emacs.git/commitdiff
* sh-script.el: (sh-set-shell): Set font-lock-defaults.
authorSimon Marshall <simon@gnu.org>
Wed, 12 Oct 1994 09:15:14 +0000 (09:15 +0000)
committerSimon Marshall <simon@gnu.org>
Wed, 12 Oct 1994 09:15:14 +0000 (09:15 +0000)
lisp/progmodes/sh-script.el

index a010f2934594ee7864057d451b03493ef16e95d1..260c31186e20866bd1bf3230132cae4e82064fcf 100644 (file)
@@ -392,8 +392,7 @@ The following commands are available, based on the current shell's syntax:
   (make-local-variable 'sh-shell-is-csh)
   (make-local-variable 'pair-alist)
   (make-local-variable 'pair-filter)
-  (make-local-variable 'font-lock-keywords)
-  (make-local-variable 'font-lock-keywords-case-fold-search)
+  (make-local-variable 'font-lock-defaults)
   (make-local-variable 'sh-variables)
   (setq major-mode 'sh-mode
        mode-name "Shell-script"
@@ -405,7 +404,6 @@ The following commands are available, based on the current shell's syntax:
        tab-width sh-tab-width
        ;; C shells do
        require-final-newline t
-       font-lock-keywords-case-fold-search nil
        pair-alist '((?` _ ?`))
        pair-filter 'sh-quoted-p)
   ;; parse or insert magic number for exec
@@ -828,8 +826,8 @@ Calls the value of `sh-set-shell-hook' if set."
                                        (error "Cannot find %s." shell)))
          sh-shell (intern (file-name-nondirectory sh-shell-path))
          sh-shell-is-csh (memq sh-shell '(csh tcsh))
-         font-lock-keywords
-         (intern-soft (format "sh-%s-font-lock-keywords" sh-shell))
+         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)