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 / old / 5.5.045 < prev    next >
Encoding:
Internet Message Format  |  1999-12-03  |  4.4 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.5.045
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.5.045  
  8. Problem:    Using "this_session" variable does not work, requires preceding it
  9.             with "v:".  Default filename for ":mksession" isn't mentioned 
  10.             in the docs. (Fisher)
  11. Solution:   Support using "this_session" to be backwards compatible.
  12. Files:      src/eval.c, runtime/doc/options.txt
  13.  
  14.  
  15. *** ../vim-5.5.44/src/eval.c    Wed Sep 22 10:06:20 1999
  16. --- src/eval.c    Sun Nov 28 14:30:50 1999
  17. ***************
  18. *** 125,131 ****
  19.       {"statusmsg", sizeof("statusmsg") - 1, NULL, VAR_STRING, 0},
  20.       {"shell_error", sizeof("shell_error") - 1, NULL, VAR_NUMBER,
  21.                                    VV_COMPAT+VV_RO},
  22. !     {"this_session", sizeof("this_session") - 1, NULL, VAR_STRING, 0},
  23.       {"version", sizeof("version") - 1, (char_u *)(VIM_VERSION_MAJOR * 100
  24.                  + VIM_VERSION_MINOR), VAR_NUMBER, VV_COMPAT+VV_RO},
  25.   };
  26. --- 125,131 ----
  27.       {"statusmsg", sizeof("statusmsg") - 1, NULL, VAR_STRING, 0},
  28.       {"shell_error", sizeof("shell_error") - 1, NULL, VAR_NUMBER,
  29.                                    VV_COMPAT+VV_RO},
  30. !     {"this_session", sizeof("this_session") - 1, NULL, VAR_STRING, VV_COMPAT},
  31.       {"version", sizeof("version") - 1, (char_u *)(VIM_VERSION_MAJOR * 100
  32.                  + VIM_VERSION_MINOR), VAR_NUMBER, VV_COMPAT+VV_RO},
  33.   };
  34. *** ../vim-5.5.44/runtime/doc/options.txt    Sat Oct  2 16:10:34 1999
  35. --- runtime/doc/options.txt    Sat Dec  4 13:40:07 1999
  36. ***************
  37. *** 1,4 ****
  38. ! *options.txt*   For Vim version 5.5.  Last change: 1999 Oct 02
  39.   
  40.   
  41.             VIM REFERENCE MANUAL    by Bram Moolenaar
  42. --- 1,4 ----
  43. ! *options.txt*   For Vim version 5.5.  Last change: 1999 Dec 04
  44.   
  45.   
  46.             VIM REFERENCE MANUAL    by Bram Moolenaar
  47. ***************
  48. *** 357,370 ****
  49.               directory).  {not in Vi}
  50.   
  51.                               *:mkv* *:mkvimrc*
  52. ! :mkv[imrc][!] [file]    Like as :mkexrc, but default is ".vimrc" in the
  53.               current directory.  The ":version" command is also
  54.               written to the file.  {not in Vi}
  55.   
  56.                               *:mks* *:mksession*
  57. ! :mks[ession][!] [file]    Like :mkvimrc, but write commands to the end of the
  58.               file that reload the files being edited at the time of
  59.               the command.  |session-file|
  60.               The created file can be loaded with a |:source|
  61.               command to recreate the current edit session.
  62.               {not in Vi} {only when compiled with the |+mksession|
  63. --- 357,371 ----
  64.               directory).  {not in Vi}
  65.   
  66.                               *:mkv* *:mkvimrc*
  67. ! :mkv[imrc][!] [file]    Like ":mkexrc", but the default is ".vimrc" in the
  68.               current directory.  The ":version" command is also
  69.               written to the file.  {not in Vi}
  70.   
  71.                               *:mks* *:mksession*
  72. ! :mks[ession][!] [file]    Like ":mkvimrc", but write commands to the end of the
  73.               file that reload the files being edited at the time of
  74.               the command.  |session-file|
  75. +             The default file name is "Session.vim".
  76.               The created file can be loaded with a |:source|
  77.               command to recreate the current edit session.
  78.               {not in Vi} {only when compiled with the |+mksession|
  79. ***************
  80. *** 436,445 ****
  81.      such as creating menu items in the GUI version.
  82.   
  83.   The full filename of your current session is available in the internal
  84. ! variable "this_session".  See |this_session-variable|.
  85.   
  86.   So an example mapping might be (all one line):
  87. ! >  :nmap <S-F1> :wa | execute("mksession " . this_session)<CR>:so $VIM/sessions/
  88.   which saves the files and session, and starts off the command to load another.
  89.   
  90.   ==============================================================================
  91. --- 437,446 ----
  92.      such as creating menu items in the GUI version.
  93.   
  94.   The full filename of your current session is available in the internal
  95. ! variable "v:this_session".  See |this_session-variable|.
  96.   
  97.   So an example mapping might be (all one line):
  98. ! >  :nmap <S-F1> :wa<Bar>exe "mksession! " . v:this_session<CR>:so $VIM/sessions/
  99.   which saves the files and session, and starts off the command to load another.
  100.   
  101.   ==============================================================================
  102. *** ../vim-5.5.44/src/version.c    Sat Dec  4 13:36:56 1999
  103. --- src/version.c    Sat Dec  4 13:36:42 1999
  104. ***************
  105. *** 420,420 ****
  106. --- 420,421 ----
  107.   {   /* Add new patch number below this line */
  108. +     45,
  109.  
  110. -- 
  111. hundred-and-one symptoms of being an internet addict:
  112. 230. You spend your Friday nights typing away at your keyboard
  113.  
  114. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  115.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  116.