On Fri, Jun 05, 2009 at 11:36:04AM +0900, Stephen J. Turnbull wrote:
If you don't mind explaining, how are you in this situation
frequently
enough to figure out what happened, let alone care? I don't think
I've ever edited an existing file with zero-size. If there's a common
workflow that leads to this, maybe there's more hurry than I thought.
it is very common for me - I use gnuclient as editor for the mutt email
client. Whenever mutt is asked to compose a new message it will call gnuclient
with a zero-sized temporary file.
The temporary file must be created by mutt because otherwise it would be
hard to guarantee uniqueness - in principle other tools calling an external
editor on a newly created temporary file are likely to hit the same bug.
Btw my workaround for mutt is
(defun mutt-mode ()
(fundamental-mode)
(setq buffer-file-coding-system 'utf-8)
(highlight-changes-mode))
(setq auto-mode-alist (cons '("^/tmp/mutt" . mutt-mode) auto-mode-alist))
- obviously working only if mutt is set to use utf-8 unconditionally.
Richard
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta