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 / 6.1.285 < prev    next >
Encoding:
Internet Message Format  |  2003-01-08  |  3.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.285
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.285
  11. Problem:    Can't wipe out a buffer with 'bufhidden' option.
  12. Solution:   Add "wipe" value to 'bufhidden'. (Yegappan Lakshmanan)
  13. Files:        runtime/doc/options.txt, src/buffer.c, src/option.c,
  14.         src/quickfix.c
  15.  
  16.  
  17. *** ../vim61.284/runtime/doc/options.txt    Sun Oct 13 20:08:13 2002
  18. --- runtime/doc/options.txt    Wed Jan  8 19:29:39 2003
  19. ***************
  20. *** 1,4 ****
  21. ! *options.txt*   For Vim version 6.1.  Last change: 2002 Oct 13
  22.   
  23.   
  24.             VIM REFERENCE MANUAL    by Bram Moolenaar
  25. --- 1,4 ----
  26. ! *options.txt*   For Vim version 6.1.  Last change: 2003 Jan 08
  27.   
  28.   
  29.             VIM REFERENCE MANUAL    by Bram Moolenaar
  30. ***************
  31. *** 947,952 ****
  32. --- 949,957 ----
  33.         delete    delete the buffer from the buffer list, also when
  34.               'hidden' is set or using |:hide|, like using
  35.               |:bdelete|
  36. +       wipe        wipe out the buffer from the buffer list, also when
  37. +             'hidden' is set or using |:hide|, like using
  38. +             |:bwipeout|
  39.   
  40.       This option is used together with 'buftype' and 'swapfile' to specify
  41.       special kinds of buffers.   See |special-buffers|.
  42. *** ../vim61.284/src/buffer.c    Tue Jan  7 21:09:05 2003
  43. --- src/buffer.c    Wed Jan  8 19:27:44 2003
  44. ***************
  45. *** 285,290 ****
  46. --- 285,296 ----
  47.       {
  48.       del_buf = TRUE;
  49.       unload_buf = TRUE;
  50. +     wipe_buf = TRUE;
  51. +     }
  52. +     else if (buf->b_p_bh[0] == 'w')    /* 'bufhidden' == "wipe" */
  53. +     {
  54. +     del_buf = TRUE;
  55. +     unload_buf = TRUE;
  56.       }
  57.       else if (buf->b_p_bh[0] == 'u')    /* 'bufhidden' == "unload" */
  58.       unload_buf = TRUE;
  59. *** ../vim61.284/src/option.c    Sun Jan  5 13:29:11 2003
  60. --- src/option.c    Wed Jan  8 19:29:09 2003
  61. ***************
  62. *** 2306,2312 ****
  63.   #endif
  64.   #if defined(FEAT_QUICKFIX)
  65.   static char *(p_buftype_values[]) = {"nofile", "nowrite", "quickfix", "help", NULL};
  66. ! static char *(p_bufhidden_values[]) = {"hide", "unload", "delete", NULL};
  67.   #endif
  68.   static char *(p_bs_values[]) = {"indent", "eol", "start", NULL};
  69.   #ifdef FEAT_FOLDING
  70. --- 2308,2314 ----
  71.   #endif
  72.   #if defined(FEAT_QUICKFIX)
  73.   static char *(p_buftype_values[]) = {"nofile", "nowrite", "quickfix", "help", NULL};
  74. ! static char *(p_bufhidden_values[]) = {"hide", "unload", "delete", "wipe", NULL};
  75.   #endif
  76.   static char *(p_bs_values[]) = {"indent", "eol", "start", NULL};
  77.   #ifdef FEAT_FOLDING
  78. *** ../vim61.284/src/quickfix.c    Tue Nov 19 11:21:32 2002
  79. --- src/quickfix.c    Thu Jan  9 21:47:22 2003
  80. ***************
  81. *** 1863,1868 ****
  82. --- 1863,1869 ----
  83.       switch (buf->b_p_bh[0])
  84.       {
  85.       case 'u':            /* "unload" */
  86. +     case 'w':            /* "wipe" */
  87.       case 'd': return FALSE;        /* "delete" */
  88.       case 'h': return TRUE;        /* "hide" */
  89.       }
  90. *** ../vim61.284/src/version.c    Tue Jan  7 21:28:36 2003
  91. --- src/version.c    Thu Jan  9 21:44:17 2003
  92. ***************
  93. *** 608,609 ****
  94. --- 608,611 ----
  95.   {   /* Add new patch number below this line */
  96. + /**/
  97. +     285,
  98.   /**/
  99.  
  100. -- 
  101. TALL KNIGHT: We are now no longer the Knights Who Say Ni!
  102. ONE KNIGHT:  Ni!
  103. OTHERS:      Sh!
  104. ONE KNIGHT:  (whispers) Sorry.
  105.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  106.  
  107.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  108. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  109. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  110.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  111.