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.x1 < prev    next >
Encoding:
Internet Message Format  |  1999-08-11  |  3.3 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.4.x1 - Start of extra patches
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. There is a problem with patches that also change files form the extra archive.
  8. Currently that is patch 5.4.9, which patches src/gui_w32.c.  The biggest
  9. problem is for the FreeBSD ports system, where patches are added
  10. automatically.  They can skip a patch, but then the update of version.h will
  11. be missing and the next patch will fail.
  12.  
  13. I'll solve it in this way: The normal sequence of patches will continue as
  14. usual, but only patch the files in the runtime and source archives.  If there
  15. is a patch for a file in the extra archive, it will not update version.h.
  16.  
  17. This could cause misunderstanding about the numbering: If you skip patch 5.4.9
  18. but do include 5.4.10, what should the version number be?  To avoid this I'll
  19. give the patches for the extra archive a different number, starting with "x"
  20. for "extra".  Thus there will be two series of patches:
  21.  
  22. 5.4.1, 5.4.2, etc. : Update version.h to show the patchlevel in the version
  23. number.
  24.  
  25. 5.4.x1, 5.4.x2, etc.: Don't update version.h.  You can leave this series out
  26. without a problem.
  27.  
  28. This is not a 100% safe method.  A disadvantage will be that there is no
  29. feedback of an "x" patch being included.  But that is only for those few
  30. people that really need the patch.  When there are other changes to code that
  31. is in the source archive (in this case in ui.c) we will be in trouble.
  32.  
  33. Since patch 5.4.9 was already released, I'll have to change that now.  To
  34. avoid confusion with version numbers, I'll make patch 5.4.9 only update
  35. version.h, and nothing else.  I'll create patch 5.4.x1, which will do what
  36. 5.4.9 did, but without updating version.h.  This will allow the FreeBSD ports
  37. automatics to work, if they include patch 5.4.9.
  38.  
  39. I'll send the replacement patch 5.4.x1 here.  The replacement 5.4.9 will be in
  40. another message.
  41.  
  42.  
  43. Patch 5.4.x1 (note: Replaces patch 5.4.9)
  44. Problem:    Win32 GUI: menu hints were never used, because WANT_MENU is not
  45.         defined until vim.h is included.
  46. Solution:   Move the #ifdef WANT_MENU from where MENUHINTS is defined to where
  47.         it is used.
  48. Files:        src/gui_w32.c
  49.  
  50.  
  51. *** ../vim-5.4/src/gui_w32.c    Sun Jul 25 22:02:12 1999
  52. --- src/gui_w32.c    Fri Jul 30 09:44:01 1999
  53. ***************
  54. *** 19,27 ****
  55.    */
  56.   
  57.   #define WIN32_FIND_REPLACE    /* include code for find/replace dialog */
  58. - #ifdef WANT_MENU
  59.   #define MENUHINTS        /* show menu hints in command line */
  60. - #endif
  61.   
  62.   #include "vim.h"
  63.   #include "version.h"    /* used by dialog box routine for default title */
  64. --- 19,25 ----
  65. ***************
  66. *** 1698,1704 ****
  67.       }
  68.       break;
  69.   #endif
  70. ! #ifdef MENUHINTS
  71.       case WM_MENUSELECT:
  72.       if (((UINT) HIWORD(wParam)
  73.               & (0xffff ^ (MF_MOUSESELECT + MF_BITMAP + MF_POPUP)))
  74. --- 1696,1702 ----
  75.       }
  76.       break;
  77.   #endif
  78. ! #if defined(MENUHINTS) && defined(WANT_MENU)
  79.       case WM_MENUSELECT:
  80.       if (((UINT) HIWORD(wParam)
  81.               & (0xffff ^ (MF_MOUSESELECT + MF_BITMAP + MF_POPUP)))
  82.  
  83. --
  84. DENNIS: You can't expect to wield supreme executive power just 'cause some
  85.         watery tart threw a sword at you!
  86.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  87.  
  88. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  89.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  90.