On Thu, 2002-10-24 at 03:15, Sergei Vorobyov wrote:
Ooops, now, when I send a buffer or region contents to sml
(SML->Process->Send buffer) it reports
No such coding system: excl
Duh, this is due to difference between XEmacs' and GNU Emacs'
`write-region', the 7th arg does completely different things in them.
Sergei, does the patch below fix the problem for you?
Stefan, could you apply or comment this and the other patches I've sent
to the "upstream" sml-mode?
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/sml-mode/sml-compat.el,v
retrieving revision 1.2
diff -a -u -r1.2 sml-compat.el
--- sml-compat.el 31 Jul 2002 23:21:29 -0000 1.2
+++ sml-compat.el 28 Oct 2002 18:41:07 -0000
＠＠ -57,7 +57,11 ＠＠
(expand-file-name prefix temporary-file-directory)))
- (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)))
;; the file was somehow created by someone else between
scop at xemacs.org