|
Karsten Hopp |
91781d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
91781d |
Subject: Patch 7.4.234
|
|
Karsten Hopp |
91781d |
Fcc: outbox
|
|
Karsten Hopp |
91781d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
91781d |
Mime-Version: 1.0
|
|
Karsten Hopp |
91781d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
91781d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
91781d |
------------
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
Patch 7.4.234
|
|
Karsten Hopp |
91781d |
Problem: Can't get the command that was used to start Vim.
|
|
Karsten Hopp |
91781d |
Solution: Add v:progpath. (Viktor Kojouharov)
|
|
Karsten Hopp |
91781d |
Files: runtime/doc/eval.txt, src/eval.c, src/main.c, src/vim.h
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
*** ../vim-7.4.233/runtime/doc/eval.txt 2014-03-25 18:23:27.054087691 +0100
|
|
Karsten Hopp |
91781d |
--- runtime/doc/eval.txt 2014-04-01 19:33:25.516805743 +0200
|
|
Karsten Hopp |
91781d |
***************
|
|
Karsten Hopp |
91781d |
*** 1557,1562 ****
|
|
Karsten Hopp |
91781d |
--- 1558,1569 ----
|
|
Karsten Hopp |
91781d |
|evim| etc., or any other name you might symlink to Vim.
|
|
Karsten Hopp |
91781d |
Read-only.
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
+ *v:progpath* *progpath-variable*
|
|
Karsten Hopp |
91781d |
+ v:progpath Contains the command with which Vim was invoked, including the
|
|
Karsten Hopp |
91781d |
+ path. Useful if you want to message a Vim server using a
|
|
Karsten Hopp |
91781d |
+ |--remote-expr|.
|
|
Karsten Hopp |
91781d |
+ Read-only.
|
|
Karsten Hopp |
91781d |
+
|
|
Karsten Hopp |
91781d |
*v:register* *register-variable*
|
|
Karsten Hopp |
91781d |
v:register The name of the register in effect for the current normal mode
|
|
Karsten Hopp |
91781d |
command (regardless of whether that command actually used a
|
|
Karsten Hopp |
91781d |
*** ../vim-7.4.233/src/eval.c 2014-03-30 16:49:06.412565288 +0200
|
|
Karsten Hopp |
91781d |
--- src/eval.c 2014-04-01 19:34:13.164805087 +0200
|
|
Karsten Hopp |
91781d |
***************
|
|
Karsten Hopp |
91781d |
*** 361,366 ****
|
|
Karsten Hopp |
91781d |
--- 361,367 ----
|
|
Karsten Hopp |
91781d |
{VV_NAME("hlsearch", VAR_NUMBER), 0},
|
|
Karsten Hopp |
91781d |
{VV_NAME("oldfiles", VAR_LIST), 0},
|
|
Karsten Hopp |
91781d |
{VV_NAME("windowid", VAR_NUMBER), VV_RO},
|
|
Karsten Hopp |
91781d |
+ {VV_NAME("progpath", VAR_STRING), VV_RO},
|
|
Karsten Hopp |
91781d |
};
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
/* shorthand */
|
|
Karsten Hopp |
91781d |
*** ../vim-7.4.233/src/main.c 2014-03-23 15:12:29.923264336 +0100
|
|
Karsten Hopp |
91781d |
--- src/main.c 2014-04-01 19:34:13.164805087 +0200
|
|
Karsten Hopp |
91781d |
***************
|
|
Karsten Hopp |
91781d |
*** 1602,1607 ****
|
|
Karsten Hopp |
91781d |
--- 1602,1608 ----
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
91781d |
set_vim_var_string(VV_PROGNAME, initstr, -1);
|
|
Karsten Hopp |
91781d |
+ set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
|
|
Karsten Hopp |
91781d |
#endif
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
if (TOLOWER_ASC(initstr[0]) == 'r')
|
|
Karsten Hopp |
91781d |
*** ../vim-7.4.233/src/vim.h 2014-03-24 19:43:56.600837795 +0100
|
|
Karsten Hopp |
91781d |
--- src/vim.h 2014-04-01 19:34:13.164805087 +0200
|
|
Karsten Hopp |
91781d |
***************
|
|
Karsten Hopp |
91781d |
*** 1880,1886 ****
|
|
Karsten Hopp |
91781d |
#define VV_HLSEARCH 54
|
|
Karsten Hopp |
91781d |
#define VV_OLDFILES 55
|
|
Karsten Hopp |
91781d |
#define VV_WINDOWID 56
|
|
Karsten Hopp |
91781d |
! #define VV_LEN 57 /* number of v: vars */
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
#ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
--- 1880,1887 ----
|
|
Karsten Hopp |
91781d |
#define VV_HLSEARCH 54
|
|
Karsten Hopp |
91781d |
#define VV_OLDFILES 55
|
|
Karsten Hopp |
91781d |
#define VV_WINDOWID 56
|
|
Karsten Hopp |
91781d |
! #define VV_PROGPATH 57
|
|
Karsten Hopp |
91781d |
! #define VV_LEN 58 /* number of v: vars */
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
#ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
*** ../vim-7.4.233/src/version.c 2014-04-01 18:54:44.316837673 +0200
|
|
Karsten Hopp |
91781d |
--- src/version.c 2014-04-01 19:28:05.092810150 +0200
|
|
Karsten Hopp |
91781d |
***************
|
|
Karsten Hopp |
91781d |
*** 736,737 ****
|
|
Karsten Hopp |
91781d |
--- 736,739 ----
|
|
Karsten Hopp |
91781d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
91781d |
+ /**/
|
|
Karsten Hopp |
91781d |
+ 234,
|
|
Karsten Hopp |
91781d |
/**/
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
--
|
|
Karsten Hopp |
91781d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
91781d |
18. Your wife drapes a blond wig over your monitor to remind you of what she
|
|
Karsten Hopp |
91781d |
looks like.
|
|
Karsten Hopp |
91781d |
|
|
Karsten Hopp |
91781d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
91781d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
91781d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
91781d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|