Editor Swap Files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Editor Swap Files

Greg Millam
I'm sure most of us have run across this annoyance in one way or
another: Editor swap files.

In several of my Fuse apps, filenames are defined by the application,
and are not really variable. (i.e: it pukes at vim trying to create
".filename.swp" files).

I've gotten around this by handling what I determine to be editor files
differently (.foo.sw* for vim, and #foo# for emacs, so far). But at
least vim also appears to attempt to create a numbered file. (In my
tests, most often 4913), but does not write to it and then unlinks it.

I currently handle this by making sure I only bother to write a file if
it's been mknodd'd, then opened, *modified* and then written to. In
other words, I only pass it in if it's created, and then modified. (even
truncated!).

How do other people handle this?

Thanks,

- Greg


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel