To: vim-dev@vim.org Subject: patch Fcc: outbox From: Bram Moolenaar ------------ Patch 5.4p.8 Problem: The generated bugreport didn't contain information about $VIMRUNTIME and whether runtime files actually exist. Solution: Added a few checks to the bugreport script. Files: runtime/bugreport.vim *** ../vim-5.4p/runtime/bugreport.vim Mon Jul 19 11:09:43 1999 --- runtime/bugreport.vim Wed Jul 21 10:21:21 1999 *************** *** 2,8 **** :" information about the environment of a possible bug in Vim. :" :" Maintainer: Bram Moolenaar ! :" Last change: 1999 Apr 26 :" :" To use inside Vim: :" :so $VIMRUNTIME/bugreport.vim --- 2,8 ---- :" information about the environment of a possible bug in Vim. :" :" Maintainer: Bram Moolenaar ! :" Last change: 1999 Jul 21 :" :" To use inside Vim: :" :so $VIMRUNTIME/bugreport.vim *************** *** 22,27 **** --- 22,55 ---- :endif :redir >>bugreport.txt :version + :if 1 + : func BR_CheckDir(n) + : if isdirectory(a:n) + : echo 'directory "' . a:n . '" exists' + : else + : echo 'directory "' . a:n . '" does NOT exist' + : endif + : endfun + : func BR_CheckFile(n) + : if filereadable(a:n) + : echo '"' . a:n . '" is readable' + : else + : echo '"' . a:n . '" is NOT readable' + : endif + : endfun + : echo "--- Directories and Files ---" + : echo '$VIM = "' . $VIM . '"' + : call BR_CheckDir($VIM) + : echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"' + : call BR_CheckDir($VIMRUNTIME) + : call BR_CheckFile(&helpfile) + : call BR_CheckFile(fnamemodify(&helpfile, ":h") . "/tags") + : call BR_CheckFile($VIMRUNTIME . "/menu.vim") + : call BR_CheckFile($VIMRUNTIME . "/filetype.vim") + : call BR_CheckFile($VIMRUNTIME . "/syntax/synload.vim") + : delfun BR_CheckDir + : delfun BR_CheckFile + :endif :set all :set termcap :if has("autocmd") -- hundred-and-one symptoms of being an internet addict: 190. You quickly hand over your wallet, leather jacket, and car keys during a mugging, then proceed to beat the crap out of your assailant when he asks for your laptop. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /