[racket-dev] overwrite

From: John Clements (clements at brinckerhoff.org)
Date: Sun Feb 27 15:01:31 EST 2011

On Feb 27, 2011, at 11:42 AM, Robby Findler wrote:

> Yes, that's it. Also, put something into the after-save-file-method:
> 
> diff --git a/collects/framework/private/editor.rkt
> b/collects/framework/private/editor.rkt
> index 0c8981b..cb5504a 100644
> --- a/collects/framework/private/editor.rkt
> +++ b/collects/framework/private/editor.rkt
> @@ -190,7 +190,8 @@
>             (set! last-saved-file-time
>                   (and filename
>                        (file-exists? filename)
> -                       (file-or-directory-modify-seconds filename)))))
> +                       (file-or-directory-modify-seconds filename))
> +            (log-warning (format "saved ~a at ~a" filename
> last-saved-file-time)))))
> 
>         (inner (void) after-save-file success?))
> 
> and then when you see this strange behavior, maybe it the particular
> numbers that you're seeing might shed some light on which part of this
> is going wrong.

Add'l data point: I tried messing up the clock manually, by turning off NTP, but I was unable to duplicate the bug this way.

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110227/91e12ef7/attachment.p7s>

Posted on the dev mailing list.