* vim losing file bug with :e#
@ 2002-05-11 7:10 Greg Matheson
0 siblings, 0 replies; 2+ messages in thread
From: Greg Matheson @ 2002-05-11 7:10 UTC (permalink / raw)
To: cygwin
Crossposted to bug@vim.org
This has been happening since vim-6.0 on cygwin. It is
reproducible (although not every time) and occurs when I have 2
files open and switch back and forth between each with :e#. I
start in one and switch to the other and write it, with :w and
then switch back to the first. Then I change focus to another
window. This case, the perl debugger and attempting to read the
file I just wrote, I get the message:
readline() on closed filehandle L at ./ppind.pl line 16.
I then change focus back to vim and switch back to the problem
file and get the vim warning
Warning, file "penpairs" no longer available.
I then write the file to avoid losing it. Then I go back to the
start of this sequence, that is, the first buffer, and do the
same process all over again. This time I don't get the messages.
But if I do it a third time, the file is no longer available
again.
The changing of focus to another window is involved. If I don't
change focus, I don't lose the file.
I sent the vim bugreport.txt data to bug@vim.org
--
Greg Matheson There is here. Never ceases to amaze me.
Chinmin College
Taiwan Penpals Page: http://netcity.hinet.net/kurage
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: vim losing file bug with :e#
@ 2002-05-27 9:35 Greg Matheson
0 siblings, 0 replies; 2+ messages in thread
From: Greg Matheson @ 2002-05-27 9:35 UTC (permalink / raw)
To: cygwin
On Sat, 11 May 2002, Greg Matheson wrote:
> ... I have 2 files open and switch back and forth between each
> with :e#. I start in one and switch to the other and write it,
> with :w and then switch back to the first. Then I change focus
> to another window.
[and the file was gone.]
It's just started happening again occasionally. It stopped (after I
reinstalled?), so I didn't follow up with this note from Bram
Moolenaar:
> To: Greg Matheson <lang@ms.chinmin.edu.tw>
> Subject: file no longer available
> From: Bram Moolenaar <Bram@moolenaar.net>
> Date: Sat, 11 May 2002 13:54:18 +0200
> The change of focus is needed to trigger the check for changed and
> deleted files. This check remembers that it did the check to avoid that
> a program that continuously appends to a file causes the message over
> and over again.
> It seems that the "penpairs" file actually is deleted somehow, and Vim
> detects this only after you have written the file recently.
> This doesn't sound like a bug go me. It might actually have something
> to do with the version being compiled with cygwin. If the file really
> isn't deleted, please contact Corrina Vinschen, the maintainer of the
> cygwin version.
> If you want to avoid the message try using the FileChangedShell
> autocommand event.
> - Bram
> --
> Managers are like cats in a litter box. They instinctively shuffle things
> around to conceal what they've done.
> (Scott Adams - The Dilbert principle)
> /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
> /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
> \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
> \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
Hey, I just found Ctrl-Shift-6 can be used to move between
buffers. The alternative for :e # is supposed to be CTRL-^,
which never worked for me, either on this Japanese IBM notebook,
or standard PC keyboard, with cygwin.
I'll have to try Ctrl-Shift-6 on the PC keyboard now.
--
Greg Matheson Doing things right is doing the right thing.
Chinmin College Doing things wrong is education.
Taiwan Penpals Archive <URL: http://netcity.hinet.net/kurage>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-27 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-11 7:10 vim losing file bug with :e# Greg Matheson
2002-05-27 9:35 Greg Matheson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).