On 2014-03-05, Nikolay Pavlov wrote:
> 
> On Mar 5, 2014 12:49 AM, "Jean-François Bignolles" wrote:

> > Le mardi 4 mars 2014 15:48:49 UTC+1, ZyX a écrit :

> > > Swap files to XDG_RUNTIME_DIR and do so by default.
> >
> > According to the spec (v0.7):
> > "The lifetime of the directory MUST be bound to the user being logged in"
> > "It MUST be created when the user first logs in and if the user fully logs
> > out the directory MUST be removed."
> > "Files in the directory MUST not survive reboot or a full logout/login
> > cycle."
> >
> > So, what if the user was editing files with Vim when he got brutally
> > disconnected (for whatever reason)? I agree on runtime status of swap
> > files, but they're in a safer place with XDG_CACHE_HOME
> > (which is user-managed).
> 
> If he is disconnected he should have used screen/tmux/dtach. What is wanted to
> be kept is usually not only what is saved in swap file. Though there are also
> cases of e.g. power fail which are not handled by screen.
> 
> But AFAIR you still have current directory as the first one. I think it should
> be the second, after $XDG_whatever.

Definitely not.  Swap files should be put in some directory that is
likely to survive a system crash.  If some user wishes to shoot
himself in the foot by putting swap files in a volatile directory
such as XDG_RUNTIME_DIR, fine, but Vim should not help him do it.

I don't put swap files in the current directory, either, but at
least that is a relatively safe default.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui