Thanks a lot, Ville!
Playing for half an hour with all your previous and the last
sml-patches applied I was unable to discover anything wrong (el-pipe,
format region, send-buffer, -region now work OK). I am switching to
this newer xemacs version for all my everyday purposes, will certainly
try it more agressively, and will let you know if something goes
wrong. (So far all LaTeX-AuC-TeX features my students and I use 10
hours a day work fine.)
Best regards,
Sergei
Ville Skyttä writes:
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?
Index: sml-compat.el
===================================================================
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)))
(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
--
\/ille Skyttä
scop at
xemacs.org
--
Sergei Vorobyov
Information Technology/
Computing Science Department
Uppsala University
Box 337
S-751 05 Uppsala
Sweden