home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unreleased / patches / old / 5.4p.8 < prev    next >
Encoding:
Internet Message Format  |  1999-07-20  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: patch
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.4p.8
  8. Problem:    The generated bugreport didn't contain information about
  9.             $VIMRUNTIME and whether runtime files actually exist.
  10. Solution:   Added a few checks to the bugreport script.
  11. Files:      runtime/bugreport.vim
  12.  
  13.  
  14. *** ../vim-5.4p/runtime/bugreport.vim    Mon Jul 19 11:09:43 1999
  15. --- runtime/bugreport.vim    Wed Jul 21 10:21:21 1999
  16. ***************
  17. *** 2,8 ****
  18.   :" information about the environment of a possible bug in Vim.
  19.   :"
  20.   :" Maintainer:    Bram Moolenaar <Bram@vim.org>
  21. ! :" Last change:    1999 Apr 26
  22.   :"
  23.   :" To use inside Vim:
  24.   :"    :so $VIMRUNTIME/bugreport.vim
  25. --- 2,8 ----
  26.   :" information about the environment of a possible bug in Vim.
  27.   :"
  28.   :" Maintainer:    Bram Moolenaar <Bram@vim.org>
  29. ! :" Last change:    1999 Jul 21
  30.   :"
  31.   :" To use inside Vim:
  32.   :"    :so $VIMRUNTIME/bugreport.vim
  33. ***************
  34. *** 22,27 ****
  35. --- 22,55 ----
  36.   :endif
  37.   :redir >>bugreport.txt
  38.   :version
  39. + :if 1
  40. + :  func BR_CheckDir(n)
  41. + :    if isdirectory(a:n)
  42. + :      echo 'directory "' . a:n . '" exists'
  43. + :    else
  44. + :      echo 'directory "' . a:n . '" does NOT exist'
  45. + :    endif
  46. + :  endfun
  47. + :  func BR_CheckFile(n)
  48. + :    if filereadable(a:n)
  49. + :      echo '"' . a:n . '" is readable'
  50. + :    else
  51. + :      echo '"' . a:n . '" is NOT readable'
  52. + :    endif
  53. + :  endfun
  54. + :  echo "--- Directories and Files ---"
  55. + :  echo '$VIM = "' . $VIM . '"'
  56. + :  call BR_CheckDir($VIM)
  57. + :  echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"'
  58. + :  call BR_CheckDir($VIMRUNTIME)
  59. + :  call BR_CheckFile(&helpfile)
  60. + :  call BR_CheckFile(fnamemodify(&helpfile, ":h") . "/tags")
  61. + :  call BR_CheckFile($VIMRUNTIME . "/menu.vim")
  62. + :  call BR_CheckFile($VIMRUNTIME . "/filetype.vim")
  63. + :  call BR_CheckFile($VIMRUNTIME . "/syntax/synload.vim")
  64. + :  delfun BR_CheckDir
  65. + :  delfun BR_CheckFile
  66. + :endif
  67.   :set all
  68.   :set termcap
  69.   :if has("autocmd")
  70.  
  71. --
  72. hundred-and-one symptoms of being an internet addict:
  73. 190. You quickly hand over your wallet, leather jacket, and car keys
  74.      during a mugging, then proceed to beat the crap out of your
  75.      assailant when he asks for your laptop.
  76.  
  77. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  78.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  79.