Xavier de Gaye wrote:

> On 02/07/2015 03:59 PM, Bram Moolenaar wrote:
>  >> Charles Campbell wrote:
>  >>
>  >>> Looks like patch#592 stops netrw from working with remote files:  vim
>  >>> scp://hostname/   no longer works.
>  >>
>  >> What this patch does is that when ":e filename" is used when the
>  >> 'buftype' is not a file, it does not empty the buffer.  Is netrw somehow
>  >> depending on this side effect, or did the patch change more than
>  >> intended?
>  >
>  > Unfortunately Charles does not have time to look into this right now.
>  > Can someone else have a look?
>  >
> 
> 
> What about adding a 'nostat' type to the 'buftype' option and saying in the
> documentation that 'nofile' is now deprecated because the 'edit' command on a
> 'nofile' buffer empties its content when editing the same buffer but does not
> change its content when editing a different buffer than the current one.
> 
> There would be only a change in bt_nofile(), in bt_dontwrite() and two other
> places, to make 'nostat' behave like 'nofile'. And the change made in 7.4.592
> would only be done for 'nostat'.
> 
> I can work on a patch if this seems reasonable.

I'm not sure if this helps.  I guess the netrw plugin depended on the
old behavior, even though that behavior was inconsistent.  Fixing the
inconsistency seemed like the best choice, but breaks plugins that
depend on the inconsistency.  Adding another type doesn't really solve
anything, the "nofile" type is still inconsistent.

-- 
hundred-and-one symptoms of being an internet addict:
199. You read this entire list of symptoms, looking for something
     that doesn't describe you.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui