Re: [Vim-latex-devel] What to do about removed files?
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2004-03-09 18:11:35
|
On Mon, 8 Mar 2004, Alan Schmitt wrote: > I can think of a workaround that is kind of a kludge: put an empty file > ftplugin/tex/texviewer.vim which will overwrite the old one (or better, > put a file that echoes a warning when opened, asking the user to remove > it). > This is what I was thinking too... Actually, one of the files in the present latex-suite (ftplugin/latex-suite/multicompile.vim) is presently just an empty file. I cannot see how echoing a warning asking the user to remove the file will help because we put the file there in the first place... And the empty file might remain there for the next few point releases to make the transition smoother, thus irritating the user with a warning each time he updates latex-suite... Hmm... What about this? Maybe have a little function in ftplugin/latex-suite/main.vim which actually removes the original files if it sees them. Hmm... This seems promising. 1. Have the zip file overwrite the original file with an empty file. 2. Have a little function in main.vim which checks for the existence of the original file (which should now be empty). --> If found, then delete it. If there is an error in deletion, give an error message. The problem with this approach is that this will mean that main.vim will have a little bit of extra computation every time... As far as the package on Debian goes, Artur can just use the latest CVS. I have noticed that doing an "apt-get install" will remove files which are not needed automatically... Is this right? I am hesitant to follow Artur's suggestion of creating an executable which will delete the files because creating executables which will work uniformly on all the zillion platforms is a huge undertaking, no matter how simple the task. Srinath |