Commits

scop  committed 9aeae13

2002-10-28 Ville Skyttä <scop@xemacs.org>

* sml-compat.el (make-temp-file):
7th arg to `write-region' isn't applicable for XEmacs here.

  • Participants
  • Parent commits 0687e06

Comments (0)

Files changed (2)

 	* sml-defs.el (sml-mode-menu):
 	Use indent-region, not sml-indent-region (nonexistent).
 
+	* sml-compat.el (make-temp-file):
+	7th arg to `write-region' isn't applicable for XEmacs here.
+
+	Thanks to Sergei Vorobyov for pointing these out.
+
 2002-10-15  Ville Skyttä  <scop@xemacs.org>
 
 	* Makefile (srckit): Remove.

File sml-compat.el

 			(expand-file-name prefix temporary-file-directory)))
 		 (if dir-flag
 		     (make-directory file)
-		   (write-region "" nil file nil 'silent nil 'excl))
+		   (if (featurep 'xemacs)
+		       ;; The 7th arg to `write-region' specifies the
+		       ;; coding system to use in XEmacs.
+		       (write-region "" nil file nil 'silent nil)
+		     (write-region "" nil file nil 'silent nil 'excl)))
 		 nil)
 	    (file-already-exists t))
       ;; the file was somehow created by someone else between