昨日気づいたんだけど、Emacsでバッファの保存時に
Save file /Users/hiroya/hgoe.pl? (y, n, !, ., q, C-r, d or C-h)
こんなプロンプトが出てくるけど、ここで'd'を押すと、保存したいバッファの現在の状態と保存する前のファイルのdiffが出てくる.
diff -c /Users/hiroya/hgoe.pl /tmp/buffer-content-11593BR2 *** /Users/hiroya/hgoe.pl 2007-03-11 11:06:46.000000000 +0900 --- /tmp/buffer-content-11593BR2 2007-03-11 11:06:57.000000000 +0900 *************** *** 1,5 **** #!/usr/bin/perl use strict; ! --- 1,5 ---- #!/usr/bin/perl use strict; ! use wargnings; Diff finished. Sun Mar 11 11:06:57 2007