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.4.11 < prev    next >
Encoding:
Internet Message Format  |  1999-07-30  |  4.7 KB

  1. To: Mark Yeager <yeager@rtviz.com>
  2. In-Reply-To: <37A20504.8F355812@rtviz.com>
  3. CC: vim-dev@vim.org
  4. Subject: patch 5.4.11
  5. Fcc: outbox
  6. From: Bram Moolenaar <Bram@moolenaar.net>
  7. ------------
  8.  
  9. Mark Yeager wrote:
  10.  
  11. > Options are set in .vimrc:
  12. > set cpoptions=aAbBcdeEfFjklLmorStwWx$!%<
  13. > What I am finding, with either or both of the S or s options, is that if
  14. > I go to each file in order using :n then the tabstop setting "sticks",
  15. > but if I jump around out of order using, say, :6b, then for that file
  16. > the tabstop does not stick.  So it seems to depend on how I arrive at a
  17. > file for the first time.
  18.  
  19. Aha, now I can see the problem.  The 'tabstop' setting is not copied when
  20. using a ":buffer" command.  Even though the 'S' flag in 'cpoptions' instructs
  21. to do so.
  22.  
  23.  
  24. Patch 5.4.11
  25. Problem:    When using the 'S' flag in 'cpoptions', 'tabstop' is not copied to
  26.             the next buffer for some commands, e.g., ":buffer".
  27. Solution:   When the BCO_NOHELP flag is given to buf_copy_options(), still
  28.             copy the options used by do_help() when neither the "from" or "to"
  29.             buffer is a help buffer. 
  30. Files:      src/option.c
  31.  
  32.  
  33. *** ../vim-5.4/src/option.c    Sun Jul 25 22:02:04 1999
  34. --- src/option.c    Sat Jul 31 16:18:37 1999
  35. ***************
  36. *** 4898,4904 ****
  37.    * BCO_ENTER    We will enter the bp_to buffer.
  38.    * BCO_ALWAYS    Always copy the options, but only set b_p_initialized when
  39.    *        appropriate.
  40. !  * BCO_NOHELP    Don't copy the help settings.
  41.    */
  42.       void
  43.   buf_copy_options(bp_from, bp_to, flags)
  44. --- 4898,4904 ----
  45.    * BCO_ENTER    We will enter the bp_to buffer.
  46.    * BCO_ALWAYS    Always copy the options, but only set b_p_initialized when
  47.    *        appropriate.
  48. !  * BCO_NOHELP    Don't copy the help settings from or to a help buffer.
  49.    */
  50.       void
  51.   buf_copy_options(bp_from, bp_to, flags)
  52. ***************
  53. *** 4908,4913 ****
  54. --- 4908,4914 ----
  55.   {
  56.       int        should_copy = TRUE;
  57.       char_u  *save_p_isk = NULL;        /* init for GCC */
  58. +     int        dont_do_help;
  59.   
  60.       /*
  61.        * Don't do anything of the "to" buffer is invalid.
  62. ***************
  63. *** 4941,4947 ****
  64.   
  65.       if (should_copy || (flags & BCO_ALWAYS))
  66.       {
  67. !         if ((flags & BCO_NOHELP))        /* don't free b_p_isk */
  68.           {
  69.           save_p_isk = bp_to->b_p_isk;
  70.           bp_to->b_p_isk = NULL;
  71. --- 4942,4950 ----
  72.   
  73.       if (should_copy || (flags & BCO_ALWAYS))
  74.       {
  75. !         dont_do_help = (flags & BCO_NOHELP)
  76. !                     && (bp_to->b_help || bp_from->b_help);
  77. !         if (dont_do_help)        /* don't free b_p_isk */
  78.           {
  79.           save_p_isk = bp_to->b_p_isk;
  80.           bp_to->b_p_isk = NULL;
  81. ***************
  82. *** 5025,5034 ****
  83.   #endif
  84.   
  85.           /*
  86. !          * Don't copy the options set by do_help(), use the saved values
  87. !          * Don't touch these at all when BCO_NOHELP is used.
  88.            */
  89. !         if ((flags & BCO_NOHELP))
  90.           bp_to->b_p_isk = save_p_isk;
  91.           else
  92.           {
  93. --- 5028,5039 ----
  94.   #endif
  95.   
  96.           /*
  97. !          * Don't copy the options set by do_help(), use the saved values,
  98. !          * when going from a help buffer to a non-help buffer.
  99. !          * Don't touch these at all when BCO_NOHELP is used and going from
  100. !          * or to a help buffer.
  101.            */
  102. !         if (dont_do_help)
  103.           bp_to->b_p_isk = save_p_isk;
  104.           else
  105.           {
  106. *** ../vim-5.4/src/version.h    Sat Jul 31 16:28:09 1999
  107. --- src/version.h    Sat Jul 31 16:29:33 1999
  108. ***************
  109. *** 19,26 ****
  110.   #define VIM_VERSION_MINOR_STR        "4"
  111.   #define VIM_VERSION_BUILD         57
  112.   #define VIM_VERSION_BUILD_STR        "57"
  113. ! #define VIM_VERSION_PATCHLEVEL         10
  114. ! #define VIM_VERSION_PATCHLEVEL_STR    "10"
  115.   
  116.   /*
  117.    * VIM_VERSION_NODOT is used for the runtime directory name.
  118. --- 19,26 ----
  119.   #define VIM_VERSION_MINOR_STR        "4"
  120.   #define VIM_VERSION_BUILD         57
  121.   #define VIM_VERSION_BUILD_STR        "57"
  122. ! #define VIM_VERSION_PATCHLEVEL         11
  123. ! #define VIM_VERSION_PATCHLEVEL_STR    "11"
  124.   
  125.   /*
  126.    * VIM_VERSION_NODOT is used for the runtime directory name.
  127. ***************
  128. *** 30,35 ****
  129.    */
  130.   #define VIM_VERSION_NODOT    "vim54"
  131.   #define VIM_VERSION_SHORT    "5.4"
  132. ! #define VIM_VERSION_MEDIUM    "5.4.10"
  133. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.10 (1999 Jul 30)"
  134. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.10 (1999 Jul 30, compiled "
  135. --- 30,35 ----
  136.    */
  137.   #define VIM_VERSION_NODOT    "vim54"
  138.   #define VIM_VERSION_SHORT    "5.4"
  139. ! #define VIM_VERSION_MEDIUM    "5.4.11"
  140. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.11 (1999 Jul 31)"
  141. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.11 (1999 Jul 31, compiled "
  142.  
  143. --
  144. ARTHUR: Did you say shrubberies?
  145. ROGER:  Yes.  Shrubberies are my trade.  I am a shrubber.  My name is Roger
  146.         the Shrubber.  I arrange, design, and sell shrubberies.
  147.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  148.  
  149. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  150.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  151.