- From: Steven Pemberton <Steven.Pemberton@cwi.nl>
- Date: Mon, 12 Jul 2010 14:00:03 +0200
- To: "www-amaya@w3.org" <www-amaya@w3.org>
This is taken from how emacs works, and has saved my bacon a number of times there, and would have saved me a lot of work if Amaya also did it. It consists of two checks: 1) If the document is in 'unedited' state (i.e. where ^S has no effect), and I start to edit it, if it is possible to check the date and time of the original file, and the date and time of the file has changed since loading the document, warn "the document has changed on disk, are you sure you want to edit it?" 2) Similarly, just before saving a file, check that the date and time of the destination is still the same as it was, warning "The document has changed on disk, are you sure you want to save it?" if not. Best wishes, Steven Pemberton
Received on Monday, 12 July 2010 12:00:42 UTC