81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.233 (extra)
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.233 (extra part of 7.2.232)
81c2858
Problem:    Cannot debug problems with being in a wrong directory.
81c2858
Solution:   When 'verbose' is 5 or higher report directory changes.
81c2858
Files:	    src/os_msdos.c, src/os_mswin.c, src/os_riscos.c, src/os_mac.h
81c2858
81c2858
81c2858
*** ../vim-7.2.232/src/os_msdos.c	2008-06-24 23:30:18.000000000 +0200
81c2858
--- src/os_msdos.c	2009-07-14 16:50:57.000000000 +0200
81c2858
***************
81c2858
*** 2039,2044 ****
81c2858
--- 2039,2050 ----
81c2858
  {
81c2858
      if (path[0] == NUL)		    /* just checking... */
81c2858
  	return 0;
81c2858
+     if (p_verbose >= 5)
81c2858
+     {
81c2858
+ 	verbose_enter();
81c2858
+ 	smsg((char_u *)"chdir(%s)", path);
81c2858
+ 	verbose_leave();
81c2858
+     }
81c2858
      if (path[1] == ':')		    /* has a drive name */
81c2858
      {
81c2858
  	if (change_drive(TOLOWER_ASC(path[0]) - 'a' + 1))
81c2858
*** ../vim-7.2.232/src/os_mswin.c	2009-05-14 22:00:37.000000000 +0200
81c2858
--- src/os_mswin.c	2009-07-14 16:53:03.000000000 +0200
81c2858
***************
81c2858
*** 653,658 ****
81c2858
--- 653,664 ----
81c2858
      if (path[0] == NUL)		/* just checking... */
81c2858
  	return -1;
81c2858
  
81c2858
+     if (p_verbose >= 5)
81c2858
+     {
81c2858
+ 	verbose_enter();
81c2858
+ 	smsg((char_u *)"chdir(%s)", path);
81c2858
+ 	verbose_leave();
81c2858
+     }
81c2858
      if (isalpha(path[0]) && path[1] == ':')	/* has a drive name */
81c2858
      {
81c2858
  	/* If we can change to the drive, skip that part of the path.  If we
81c2858
*** ../vim-7.2.232/src/os_riscos.c	2006-03-07 23:25:50.000000000 +0100
81c2858
--- src/os_riscos.c	2009-07-14 16:53:35.000000000 +0200
81c2858
***************
81c2858
*** 1203,1208 ****
81c2858
--- 1203,1214 ----
81c2858
      int	    retval;
81c2858
      char_u  *new_dir;
81c2858
  
81c2858
+     if (p_verbose >= 5)
81c2858
+     {
81c2858
+ 	verbose_enter();
81c2858
+ 	smsg((char_u *)"chdir(%s)", dir);
81c2858
+ 	verbose_leave();
81c2858
+     }
81c2858
      length = strlen(dir);
81c2858
      if (dir[length - 1] != '.')
81c2858
  	return chdir(dir);	    /* No trailing dots - nothing to do. */
81c2858
*** ../vim-7.2.232/src/os_mac.h	2009-06-24 16:41:01.000000000 +0200
81c2858
--- src/os_mac.h	2009-07-14 16:54:33.000000000 +0200
81c2858
***************
81c2858
*** 291,297 ****
81c2858
  #  define HAVE_SETENV
81c2858
  #  define HAVE_RENAME
81c2858
  # endif
81c2858
- # define mch_chdir(s) chdir(s)
81c2858
  #endif
81c2858
  
81c2858
  #if defined(MACOS_X) && !defined(HAVE_CONFIG_H)
81c2858
--- 291,296 ----
81c2858
*** ../vim-7.2.232/src/version.c	2009-07-14 17:38:51.000000000 +0200
81c2858
--- src/version.c	2009-07-14 18:35:30.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     233,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
From "know your smileys":
81c2858
 :-O>-o   Smiley American tourist (note big mouth and camera)
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///