[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[linux-users:91953] emacsで「selectcoding system」のエラーが出ないようにしたいのですが


KaoriMochidaです。
お世話様です。

vine2.1.5でGNU Emacs 20.7.2を使用しています。
ブラウザからコピー&ペーストしてemacsに貼り付けています。
でもセーブしようとすると毎回

The target text contains the following non ASCII character(s):
japanese-jisx0208:
These can't be encoded safely by the coding system undecided-unix.

Please select one from the following safe coding systems:
iso-2022-jp euc-jp shift_jis iso-2022-jp-2 x-ctext iso-2022-7bit
iso-2022-8bit-ss2 emacs-mule raw-text japanese-iso-7bit-1978-irv
iso-2022-7bit-lock-ss2 thai-tis620-with-esc
tibetan-iso-8bit-with-esc lao-with-esc korean-iso-8bit-with-esc
japanese-iso-8bit-with-esc in-is13194-devanagari-with-esc
chinese-iso-8bit-with-esc iso-latin-5-with-esc
hebrew-iso-8bit-with-esc greek-iso-8bit-with-esc
cyrillic-iso-8bit-with-esc iso-latin-4-with-esc iso-latin-3-with-esc
iso-latin-2-with-esc iso-latin-1-with-esc compound-text
iso-2022-7bit-lock iso-2022-7bit-ss2

というエラーメッセージが表示されてミニバッファには
「Select coding system (defaults iso-2022-jp):」
がでます。
「euc-jp」とすれば無事保存されて次回からはこのようなエラーは出ません。
つまり、初めての日本語保存時にこのようなエラーが出ます。
いちいちこのような「euc-jp」を入力するのが煩わしいのでこのようなエラー
が出ないようにしたいのですがそれにはどうすればいいのでしょうか?


下記を~/.emacs.elに下記加えたりしてみたのですが全く効果ありません。

;; デフォルトの日本語コードをEUCにする
(set-language-environment 'japanese)
(set-default-coding-systems 'euc-jp)
(set-default-buffer-file-coding-system 'euc-jp)
(set-buffer-file-coding-system-for-read 'euc-jp)
(set-pathname-coding-system 'euc-jp)
(set-keyboard-coding-system 'euc-jp)
(set-terminal-coding-system 'euc-jp)
(setq coding-system-for-read 'euc-jp)

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: