aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1994-10-12 09:15:14 +0000
committerSimon Marshall1994-10-12 09:15:14 +0000
commit0ffb818c8fb6b5d4b65ff4c0f58e61ff08fe8dc6 (patch)
treed16904da140d68a648cd77e5518aea9e52fa580f
parent2667df428475d93669c3af8d23969c1836bfca09 (diff)
downloademacs-0ffb818c8fb6b5d4b65ff4c0f58e61ff08fe8dc6.tar.gz
emacs-0ffb818c8fb6b5d4b65ff4c0f58e61ff08fe8dc6.zip
* sh-script.el: (sh-set-shell): Set font-lock-defaults.
-rw-r--r--lisp/progmodes/sh-script.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index a010f293459..260c31186e2 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -392,8 +392,7 @@ The following commands are available, based on the current shell's syntax:
392 (make-local-variable 'sh-shell-is-csh) 392 (make-local-variable 'sh-shell-is-csh)
393 (make-local-variable 'pair-alist) 393 (make-local-variable 'pair-alist)
394 (make-local-variable 'pair-filter) 394 (make-local-variable 'pair-filter)
395 (make-local-variable 'font-lock-keywords) 395 (make-local-variable 'font-lock-defaults)
396 (make-local-variable 'font-lock-keywords-case-fold-search)
397 (make-local-variable 'sh-variables) 396 (make-local-variable 'sh-variables)
398 (setq major-mode 'sh-mode 397 (setq major-mode 'sh-mode
399 mode-name "Shell-script" 398 mode-name "Shell-script"
@@ -405,7 +404,6 @@ The following commands are available, based on the current shell's syntax:
405 tab-width sh-tab-width 404 tab-width sh-tab-width
406 ;; C shells do 405 ;; C shells do
407 require-final-newline t 406 require-final-newline t
408 font-lock-keywords-case-fold-search nil
409 pair-alist '((?` _ ?`)) 407 pair-alist '((?` _ ?`))
410 pair-filter 'sh-quoted-p) 408 pair-filter 'sh-quoted-p)
411 ;; parse or insert magic number for exec 409 ;; parse or insert magic number for exec
@@ -828,8 +826,8 @@ Calls the value of `sh-set-shell-hook' if set."
828 (error "Cannot find %s." shell))) 826 (error "Cannot find %s." shell)))
829 sh-shell (intern (file-name-nondirectory sh-shell-path)) 827 sh-shell (intern (file-name-nondirectory sh-shell-path))
830 sh-shell-is-csh (memq sh-shell '(csh tcsh)) 828 sh-shell-is-csh (memq sh-shell '(csh tcsh))
831 font-lock-keywords 829 font-lock-defaults
832 (intern-soft (format "sh-%s-font-lock-keywords" sh-shell)) 830 (list (intern-soft (format "sh-%s-font-lock-keywords" sh-shell)))
833 font-lock-keywords (if (and font-lock-keywords 831 font-lock-keywords (if (and font-lock-keywords
834 (boundp font-lock-keywords)) 832 (boundp font-lock-keywords))
835 (symbol-value font-lock-keywords) 833 (symbol-value font-lock-keywords)