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.4 / 7.4.234 < prev    next >
Encoding:
Internet Message Format  |  2014-03-31  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.234
  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.4.234
  11. Problem:    Can't get the command that was used to start Vim.
  12. Solution:   Add v:progpath. (Viktor Kojouharov)
  13. Files:        runtime/doc/eval.txt, src/eval.c, src/main.c, src/vim.h
  14.  
  15.  
  16. *** ../vim-7.4.233/runtime/doc/eval.txt    2014-03-25 18:23:27.054087691 +0100
  17. --- runtime/doc/eval.txt    2014-04-01 19:33:25.516805743 +0200
  18. ***************
  19. *** 1557,1562 ****
  20. --- 1558,1569 ----
  21.           |evim| etc., or any other name you might symlink to Vim.
  22.           Read-only.
  23.   
  24. +                     *v:progpath* *progpath-variable*
  25. + v:progpath    Contains the command with which Vim was invoked, including the
  26. +         path.  Useful if you want to message a Vim server using a
  27. +         |--remote-expr|.
  28. +         Read-only.
  29.                       *v:register* *register-variable*
  30.   v:register    The name of the register in effect for the current normal mode
  31.           command (regardless of whether that command actually used a
  32. *** ../vim-7.4.233/src/eval.c    2014-03-30 16:49:06.412565288 +0200
  33. --- src/eval.c    2014-04-01 19:34:13.164805087 +0200
  34. ***************
  35. *** 361,366 ****
  36. --- 361,367 ----
  37.       {VV_NAME("hlsearch",     VAR_NUMBER), 0},
  38.       {VV_NAME("oldfiles",     VAR_LIST), 0},
  39.       {VV_NAME("windowid",     VAR_NUMBER), VV_RO},
  40. +     {VV_NAME("progpath",     VAR_STRING), VV_RO},
  41.   };
  42.   
  43.   /* shorthand */
  44. *** ../vim-7.4.233/src/main.c    2014-03-23 15:12:29.923264336 +0100
  45. --- src/main.c    2014-04-01 19:34:13.164805087 +0200
  46. ***************
  47. *** 1602,1607 ****
  48. --- 1602,1608 ----
  49.   
  50.   #ifdef FEAT_EVAL
  51.       set_vim_var_string(VV_PROGNAME, initstr, -1);
  52. +     set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
  53.   #endif
  54.   
  55.       if (TOLOWER_ASC(initstr[0]) == 'r')
  56. *** ../vim-7.4.233/src/vim.h    2014-03-24 19:43:56.600837795 +0100
  57. --- src/vim.h    2014-04-01 19:34:13.164805087 +0200
  58. ***************
  59. *** 1880,1886 ****
  60.   #define VV_HLSEARCH    54
  61.   #define VV_OLDFILES    55
  62.   #define VV_WINDOWID    56
  63. ! #define VV_LEN        57    /* number of v: vars */
  64.   
  65.   #ifdef FEAT_CLIPBOARD
  66.   
  67. --- 1880,1887 ----
  68.   #define VV_HLSEARCH    54
  69.   #define VV_OLDFILES    55
  70.   #define VV_WINDOWID    56
  71. ! #define VV_PROGPATH    57
  72. ! #define VV_LEN        58    /* number of v: vars */
  73.   
  74.   #ifdef FEAT_CLIPBOARD
  75.   
  76. *** ../vim-7.4.233/src/version.c    2014-04-01 18:54:44.316837673 +0200
  77. --- src/version.c    2014-04-01 19:28:05.092810150 +0200
  78. ***************
  79. *** 736,737 ****
  80. --- 736,739 ----
  81.   {   /* Add new patch number below this line */
  82. + /**/
  83. +     234,
  84.   /**/
  85.  
  86. -- 
  87. hundred-and-one symptoms of being an internet addict:
  88. 18. Your wife drapes a blond wig over your monitor to remind you of what she
  89.     looks like.
  90.  
  91.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  92. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  93. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  94.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  95.