🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.editor.xemacs
7 messages
7 total messages Started by chee Thu, 28 Mar 2002 10:50
元ファイルの文字コードのまま保存したい
#14
Author: chee
Date: Thu, 28 Mar 2002 10:50
12 lines
1784 bytes
XEmacs で、(デフォルトに設定している)euc 以外のエンコーディングに変えて
前回保存したファイルを、次回開いて編集後にそのまま保存すると、また euc で
保存されてしまうことに不便を感じています。

utf-8 や shift_jis のファイルを xemacs で文字コードを自動判別して
バッファに開くことができますが、そのバッファの buffer-file-coding-system
もその検出文字コードに合わせて自動で変わってくれたりはしないものでしょうか?
そういったことのできる設定か、パッケージがあったら教えてください。

--
chee
using XEmacs/21.4 (patch 6)
Re: 元ファイルの文字コードのまま保存したい
#15
Author: Yoichi NAKAYAMA
Date: Tue, 02 Apr 2002 20:38
13 lines
2801 bytes
At Thu, 28 Mar 2002 19:50:19 +0900,
chee@subdimension.com wrote:
> utf-8 や shift_jis のファイルを xemacs で文字コードを自動判別して
> バッファに開くことができますが、そのバッファの buffer-file-coding-system
> もその検出文字コードに合わせて自動で変わってくれたりはしないものでしょうか?
> そういったことのできる設定か、パッケージがあったら教えてください。

というか、C-h v buffer-file-coding-system すれば
> This is normally set automatically when a file is loaded in
> based on the determined coding system of the file
とあるように、普通はそういうものではない?
-- 
Yoichi Nakayama
Re: 元ファイルの文字コードのまま保存したい
#16
Author: Yoichi NAKAYAMA
Date: Fri, 05 Apr 2002 09:54
11 lines
2631 bytes
At Wed, 03 Apr 2002 05:38:53 +0900,
Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> というか、C-h v buffer-file-coding-system すれば
> > This is normally set automatically when a file is loaded in
> > based on the determined coding system of the file
> とあるように、普通はそういうものではない?

save-buffer-coding-system が Non-nil で設定されていると
その限りではないですね。
-- 
Yoichi Nakayama
Re: 元ファイルの文字コードのまま保存したい
#17
Author: chee
Date: Sun, 07 Apr 2002 18:06
21 lines
2201 bytes
これを機会に中山さんと同じ Emacs/21.1 をインストールして
「普通の動き」になりました。問題の xemacs(21.4.6) 環境を
その普通の状態に持っていくことは結局出来ず断念...

At Wed, 03 Apr 2002 05:38:53 +0900,
Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> 
> At Thu, 28 Mar 2002 19:50:19 +0900,
> chee@subdimension.com wrote:
> > utf-8 や shift_jis のファイルを xemacs で文字コードを自動判別して
> > バッファに開くことができますが、そのバッファの buffer-file-coding-system
> > もその検出文字コードに合わせて自動で変わってくれたりはしないものでしょうか?
> > そういったことのできる設定か、パッケージがあったら教えてください。
> 
> というか、C-h v buffer-file-coding-system すれば
> > This is normally set automatically when a file is loaded in
> > based on the determined coding system of the file
> とあるように、普通はそういうものではない?
> -- 
> Yoichi Nakayama
> 
Re: 元ファイルの文字コードのまま保存したい
#18
Author: Yoichi NAKAYAMA
Date: Sun, 07 Apr 2002 20:01
13 lines
2777 bytes
At Mon, 08 Apr 2002 03:06:36 +0900,
chee@subdimension.com wrote:
> 問題の xemacs(21.4.6) 環境を
> その普通の状態に持っていくことは結局出来ず断念...

At Fri, 05 Apr 2002 18:54:07 +0900,
Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> save-buffer-coding-system が Non-nil で設定されていると
> その限りではないですね。

というのは調べました?
-- 
Yoichi Nakayama
Re: 元ファイルの文字コードのまま保存したい
#19
Author: Yoichi NAKAYAMA
Date: Sun, 07 Apr 2002 20:12
16 lines
2985 bytes
At Fri, 05 Apr 2002 18:54:07 +0900,
Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> save-buffer-coding-system が Non-nil で設定されていると
> その限りではないですね。

ああ、chee さんは XEmacs なのでこの変数は無いですね。
でも少なくともこないだ XEmacs 21.4.6 で試した限りでは

>> XEmacs で、(デフォルトに設定している)euc 以外のエンコーディングに変えて
>> 前回保存したファイルを、次回開いて編集後にそのまま保存すると、また euc で
>> 保存されてしまうことに不便を感じています。

というようなことは起きませんでした。
coding-system 関係で何か設定なされてますか?
-- 
Yoichi Nakayama
解決: 元ファイルの文字コードのまま保存したい
#20
Author: chee
Date: Mon, 08 Apr 2002 05:57
31 lines
2575 bytes
;; xemacs 環境の方はもうあきらめていたのですが、中山さんの
;; フォローのおかげで無事解決できました。ありがとうございます。

coding-system 関係はすべて外したつもりだったのですが、

(setq default-major-mode 'text-mode)

を外すことで無事、普通の動きをするようになりました。理由は
私には分かりませんが、現象レベルでいうと text-mode-hook
を設定してなくても、この行があるとダメみたいです。

At Mon, 08 Apr 2002 05:12:25 +0900,
Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> 
> At Fri, 05 Apr 2002 18:54:07 +0900,
> Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> wrote:
> > save-buffer-coding-system が Non-nil で設定されていると
> > その限りではないですね。
> 
> ああ、chee さんは XEmacs なのでこの変数は無いですね。
> でも少なくともこないだ XEmacs 21.4.6 で試した限りでは
> 
> >> XEmacs で、(デフォルトに設定している)euc 以外のエンコーディングに変えて
> >> 前回保存したファイルを、次回開いて編集後にそのまま保存すると、また euc で
> >> 保存されてしまうことに不便を感じています。
> 
> というようなことは起きませんでした。
> coding-system 関係で何か設定なされてますか?
> -- 
> Yoichi Nakayama
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads