Re: :c* (eg, :cfirst, :cp) fails if buffer is :bw'ed
- Suresh Govindachar wrote:
> The following error message comes up ifNo, commands like changing directory will affect the remembered file
> a) after issuing a :cfile <errorfile> command,
> b) one :bw's the first file and
> c) then issues the :cfirst command:
> E92: Buffer 170 not found
> I understand the reason for the error message, but isn't
> it a case of bad design? In this situation, rather than
> searching based on buffer number, shouldn't the :cfirst
> command do something along the lines of the :drop command?
name. That's why a buffer is used to store it. There are other
solutions, but this was a convenient method.
> Because of the :cfile command, the quick-fix mechanism knowsThe buffers are used to store the file name, thus if you wipe out a
> the file it needs to open and so it should not fail with E92
> when it finds that the buffer of the file it previously
> opened has now been wipedout.
buffer that is being used somewhere you cause trouble. That's why the
help for ":bwipe" mention "Don't use this unless you know what you are
doing.". You can use ":bdelete" instead, so that the file name is still
** Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
- just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
- no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
other line and they desparately want to ask you a few questions.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///