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 / patches / 7.2 / 7.2.232 < prev    next >
Encoding:
Internet Message Format  |  2009-07-13  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.232
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.232
  11. Problem:    Cannot debug problems with being in a wrong directory.
  12. Solution:   When 'verbose' is 5 or higher report directory changes.
  13. Files:        src/os_unix.c, src/os_unix.h, src/proto/os_unix.pro
  14.  
  15.  
  16. *** ../vim-7.2.231/src/os_unix.c    2009-07-14 12:20:28.000000000 +0200
  17. --- src/os_unix.c    2009-07-14 17:13:15.000000000 +0200
  18. ***************
  19. *** 319,324 ****
  20. --- 319,341 ----
  21.       {-1,        "Unknown!", FALSE}
  22.   };
  23.   
  24. +     int
  25. + mch_chdir(path)
  26. +     char *path;
  27. + {
  28. +     if (p_verbose >= 5)
  29. +     {
  30. +     verbose_enter();
  31. +     smsg((char_u *)"chdir(%s)", path);
  32. +     verbose_leave();
  33. +     }
  34. + # ifdef VMS
  35. +     return chdir(vms_fixfilename(path));
  36. + # else
  37. +     return chdir(path);
  38. + # endif
  39. + }
  40.   /*
  41.    * Write s[len] to the screen.
  42.    */
  43. ***************
  44. *** 2424,2429 ****
  45. --- 2441,2452 ----
  46.   #ifdef HAVE_FCHDIR
  47.           if (fd >= 0)
  48.           {
  49. +         if (p_verbose >= 5)
  50. +         {
  51. +             verbose_enter();
  52. +             MSG("fchdir() to previous dir");
  53. +             verbose_leave();
  54. +         }
  55.           l = fchdir(fd);
  56.           close(fd);
  57.           }
  58. *** ../vim-7.2.231/src/os_unix.h    2009-05-16 16:36:25.000000000 +0200
  59. --- src/os_unix.h    2009-07-14 16:55:05.000000000 +0200
  60. ***************
  61. *** 482,492 ****
  62.   # else
  63.   int mch_rename __ARGS((const char *src, const char *dest));
  64.   # endif
  65. - # ifdef VMS
  66. - #  define mch_chdir(s) chdir(vms_fixfilename(s))
  67. - # else
  68. - #  define mch_chdir(s) chdir(s)
  69. - # endif
  70.   # ifndef VMS
  71.   #  ifdef __MVS__
  72.     /* on OS390 Unix getenv() doesn't return a pointer to persistent
  73. --- 482,487 ----
  74. *** ../vim-7.2.231/src/proto/os_unix.pro    2008-06-24 23:58:57.000000000 +0200
  75. --- src/proto/os_unix.pro    2009-07-14 16:58:08.000000000 +0200
  76. ***************
  77. *** 1,4 ****
  78. --- 1,5 ----
  79.   /* os_unix.c */
  80. + int mch_chdir __ARGS((char *path));
  81.   void mch_write __ARGS((char_u *s, int len));
  82.   int mch_inchar __ARGS((char_u *buf, int maxlen, long wtime, int tb_change_cnt));
  83.   int mch_char_avail __ARGS((void));
  84. *** ../vim-7.2.231/src/version.c    2009-07-14 16:05:14.000000000 +0200
  85. --- src/version.c    2009-07-14 17:37:15.000000000 +0200
  86. ***************
  87. *** 678,679 ****
  88. --- 678,681 ----
  89.   {   /* Add new patch number below this line */
  90. + /**/
  91. +     232,
  92.   /**/
  93.  
  94. -- 
  95. From "know your smileys":
  96.  O:-)    Saint
  97.  
  98.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  99. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  100. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  101.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  102.