]> code.delx.au - gnu-emacs-elpa/commitdiff
* sml-mode.el (sml-mode-variables): Set sml-prog-proc-descriptor here...
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Jan 2013 23:36:39 +0000 (18:36 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Jan 2013 23:36:39 +0000 (18:36 -0500)
(sml-mode): ... instead of here.

packages/sml-mode/sml-mode.el

index 3fa0966577979799a6de1809137d89191fca0b90..1f65f6aaa7135e1661a21f1975592cd737a70067 100644 (file)
@@ -1227,7 +1227,6 @@ TAB file name completion, as in shell-mode, etc.."
 This mode runs `sml-mode-hook' just before exiting.
 See also (info \"(sml-mode)Top\").
 \\{sml-mode-map}"
-  (set (make-local-variable 'sml-prog-proc-descriptor) sml-pp-functions)
   (set (make-local-variable 'font-lock-defaults) sml-font-lock-defaults)
   (set (make-local-variable 'outline-regexp) sml-outline-regexp)
   (set (make-local-variable 'imenu-create-index-function)
@@ -1254,6 +1253,7 @@ See also (info \"(sml-mode)Top\").
   (sml-mode-variables))
 
 (defun sml-mode-variables ()
+  (set (make-local-variable 'sml-prog-proc-descriptor) sml-pp-functions)
   (set-syntax-table sml-mode-syntax-table)
   (setq local-abbrev-table sml-mode-abbrev-table)
   ;; Setup indentation and sexp-navigation.