[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00632] Re: How to use in EUC code?



桐山 です。

At Sat, 30 Oct 1999 11:56:24 +0900,
SHUDO Kazuyuki <shudoh@muraoka.info.waseda.ac.jp> wrote:
> 
> > mgp はデフォルトのコードは JIS ですが、
> > これを EUC にする方法はありますでしょうか?
> 
> いわゆる JIS で書く必要があるのは仕様です。

スッゴイ安直な方法ですが、

--- mgp-mode.el~	Mon Apr 12 02:44:41 1999
+++ mgp-mode.el	Sun Nov  7 22:12:11 1999
@@ -378,8 +378,9 @@
   (if (buffer-file-name (current-buffer))
       (let ((compilation-window-height mgp-window-height))
 	(compile-internal 
-	 (concat command-args " " 
-		 (file-name-nondirectory (buffer-file-name (current-buffer))))
+	 (concat "nkf -j " 
+		 (file-name-nondirectory (buffer-file-name (current-buffer)))
+		 " > /tmp/temp.mgp;" command-args " /tmp/temp.mgp")
 	 "No more errors" "MagicPoint"))))
 
 (defun mgp-current-page-position (arg)

でしのぐことにしました。