Charles Campbell wrote:

> Lech Lorens wrote:
> > On 24-Feb-2010 Jean Johner <[email protected]> wrote:
> >   
> >> Hello,
> >>
> >> A still simpler case showing a problem with File browser and Ctrl-O/
> >> Ctrl-I
> >>
> >> Suppress the ~/(.,_)viminfo file.
> >>
> >> Type vim test1 (file1 opens at line 1)
> >> Type :e . (The file browser opens at line 8 OK)
> >> Type Ctrl-O twice (Return to file1, OK)
> >> Type Ctrl-I (Return to File browser, OK)
> >> Type Ctrl-O (Nothing happens, not OK)
> >> Type Ctrl-O: error message E19 : Mark has invalid line number, not OK
> >>
> >> Best regards
> >>
> >> Jean Johner
> >>     
> >
> > This is partly the fault of :keepjumps not being respected for the :put
> > command used in the Netrw plugin, partly the fault of Netrw setting
> > marks (in Gdb I found "mark '" being executed) while producing
> > a directory listing.
> >
> > I already sent a patch solving the first problem.
> >
> > I don't know if it is essential for Netrw to set the ' mark, but it
> > seems that it messes up the jump list when this list is being traversed
> > by pressing <C-o> or <C-i>. Maybe Charles Campbell could respond to my
> > accusation? ;-)
> >
> >   
> Netrw does use and set the ' mark; however, I note that   :keepj mark '  
> protects the jump list.  I'll put that keepj in there with it.  What I 
> wish was that there was
> 
>   :lockjumps    (implemented with a counter; this command would 
> increment it)
>   :unlockjumps (would decrement the counter; need an equivalent qty of 
> :unlockjumps to unlock the jumps, perhaps  :unlockjumps!  would reset 
> the jumplock counter and unlock the jumps)
> 
> instead of having to put  keepjumps all over the place.

That has the problem that when something goes wrong and the
":unlockjumps" is not reached the editor doesn't work properly.

Perhaps we should support ":keepjumps! call DoTheWork()" ?

-- 
FATAL ERROR! SYSTEM HALTED! - Press any key to continue doing nothing.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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

To unsubscribe, reply using "remove me" as the subject.

Raspunde prin e-mail lui