> On Mo, 09 Dez 2013, Bram Moolenaar wrote: > > Christian Brabandt wrote: > > > I use an uppercase mark to access a blowfish encrypted file. I > > > therefore :bwipe that buffer when I'm done with this file. > > > Unfortunately, I can't use the uppercase mark again, to reload > > > that file, Vim throws E92 error. > > > > > > Attached patch fixes it and includes a test. > > > > Seems useful. However, why not only :bdelete the buffer? What > > remains behind that :bwipe does get rid of? > > I didn't want to leave behind any way to see what buffers where > loaded.
I'm confused. If you preserve the uppercase mark, there *will* be a way to see that it was loaded. It will be in the viminfo file, and visible by doing :marks. For that matter, why not access that file by means other than an uppercase mark? Why not have a mapping or a user-command that opens it? > > What if someone relies on :bwipe clearing the mark? E.g., when it's > > a temp file with a weird name that you don't want to accidentally > > jump back to? > > Is this really a problem, that someone wipes a buffer and relies on > the fact, that going back to that mark errors out? One should rather > use :delmark or use setpos() function in that case. Surely there should be a way to get rid of *everything* associated with a buffer, including uppercase marks. If :bwipe is not going to be that way, than something should take its place. -Manny -- -- 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.
