]> code.delx.au - gnu-emacs/blobdiff - lisp/autoinsert.el
(tab-always-indent): Fix custom-type.
[gnu-emacs] / lisp / autoinsert.el
index 17a9e4258a26d133b2e7841bce1a769c5a8b978d..b3a594d31d41ceec4d28cec3d418e0520dbe0722 100644 (file)
@@ -1,7 +1,7 @@
 ;;; autoinsert.el --- automatic mode-dependent insertion of text into new files
 
 ;; Copyright (C) 1985, 1986, 1987, 1994, 1995, 1998, 2000, 2001, 2002,
-;;   2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 ;; Author: Charlie Martin <crm@cs.duke.edu>
 ;; Adapted-By: Daniel Pfeiffer <occitan@esperanto.org>
@@ -128,7 +128,7 @@ If this contains a %s, that will be replaced by the matching rule."
 
     (("/bin/.*[^/]\\'" . "Shell-Script mode magic number")
      lambda ()
-       (if (eq major-mode default-major-mode)
+       (if (eq major-mode (default-value 'major-mode))
         (sh-mode)))
 
     (ada-mode . ada-header)