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 / 7.3 / 7.3.1256 < prev    next >
Encoding:
Internet Message Format  |  2013-06-27  |  3.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1256
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1256
  11. Problem:    Can't build without eval or autocmd feature.
  12. Solution:   Add #ifdefs.
  13. Files:        src/mbyte.c, src/window.c
  14.  
  15.  
  16. *** ../vim-7.3.1255/src/mbyte.c    2013-06-26 19:17:58.000000000 +0200
  17. --- src/mbyte.c    2013-06-28 19:53:43.000000000 +0200
  18. ***************
  19. *** 5079,5084 ****
  20. --- 5079,5085 ----
  21.       {
  22.           xim_set_focus(gui.in_focus);
  23.   
  24. + #  ifdef FEAT_EVAL
  25.           if (p_imaf[0] != NUL)
  26.           {
  27.           char_u *argv[1];
  28. ***************
  29. *** 5089,5095 ****
  30.               argv[0] = (char_u *)"0";
  31.           (void)call_func_retnr(p_imaf, 1, argv, FALSE);
  32.           }
  33. !         else if (im_activatekey_keyval != GDK_VoidSymbol)
  34.           {
  35.           if (im_is_active)
  36.           {
  37. --- 5090,5098 ----
  38.               argv[0] = (char_u *)"0";
  39.           (void)call_func_retnr(p_imaf, 1, argv, FALSE);
  40.           }
  41. !         else
  42. ! #  endif
  43. !         if (im_activatekey_keyval != GDK_VoidSymbol)
  44.           {
  45.           if (im_is_active)
  46.           {
  47. ***************
  48. *** 5249,5260 ****
  49.       int
  50.   im_get_status(void)
  51.   {
  52.       if (p_imsf[0] != NUL)
  53.       {
  54.       int is_active;
  55.   
  56.       /* FIXME: Don't execute user function in unsafe situation. */
  57. !     if (exiting || is_autocmd_blocked())
  58.           return FALSE;
  59.       /* FIXME: :py print 'xxx' is shown duplicate result.
  60.        * Use silent to avoid it. */
  61. --- 5252,5268 ----
  62.       int
  63.   im_get_status(void)
  64.   {
  65. + #  ifdef FEAT_EVAL
  66.       if (p_imsf[0] != NUL)
  67.       {
  68.       int is_active;
  69.   
  70.       /* FIXME: Don't execute user function in unsafe situation. */
  71. !     if (exiting
  72. ! #   ifdef FEAT_AUTOCMD
  73. !         || is_autocmd_blocked()
  74. ! #   endif
  75. !         )
  76.           return FALSE;
  77.       /* FIXME: :py print 'xxx' is shown duplicate result.
  78.        * Use silent to avoid it. */
  79. ***************
  80. *** 5263,5268 ****
  81. --- 5271,5277 ----
  82.       --msg_silent;
  83.       return (is_active > 0);
  84.       }
  85. + #  endif
  86.       return im_is_active;
  87.   }
  88.   
  89. *** ../vim-7.3.1255/src/window.c    2013-06-26 14:04:37.000000000 +0200
  90. --- src/window.c    2013-06-28 19:50:44.000000000 +0200
  91. ***************
  92. *** 53,62 ****
  93.   static void frame_append __ARGS((frame_T *after, frame_T *frp));
  94.   static void frame_insert __ARGS((frame_T *before, frame_T *frp));
  95.   static void frame_remove __ARGS((frame_T *frp));
  96. ! #ifdef FEAT_VERTSPLIT
  97.   static void win_goto_ver __ARGS((int up, long count));
  98.   static void win_goto_hor __ARGS((int left, long count));
  99. ! #endif
  100.   static void frame_add_height __ARGS((frame_T *frp, int n));
  101.   static void last_status_rec __ARGS((frame_T *fr, int statusline));
  102.   
  103. --- 53,62 ----
  104.   static void frame_append __ARGS((frame_T *after, frame_T *frp));
  105.   static void frame_insert __ARGS((frame_T *before, frame_T *frp));
  106.   static void frame_remove __ARGS((frame_T *frp));
  107. ! # ifdef FEAT_VERTSPLIT
  108.   static void win_goto_ver __ARGS((int up, long count));
  109.   static void win_goto_hor __ARGS((int left, long count));
  110. ! # endif
  111.   static void frame_add_height __ARGS((frame_T *frp, int n));
  112.   static void last_status_rec __ARGS((frame_T *fr, int statusline));
  113.   
  114. ***************
  115. *** 6928,6933 ****
  116. --- 6928,6934 ----
  117.   }
  118.   #endif
  119.   
  120. + #ifdef FEAT_WINDOWS
  121.   /*
  122.    * Return TRUE if "topfrp" and its children are at the right height.
  123.    */
  124. ***************
  125. *** 6948,6953 ****
  126. --- 6949,6955 ----
  127.   
  128.       return TRUE;
  129.   }
  130. + #endif
  131.   
  132.   #ifdef FEAT_VERTSPLIT
  133.   /*
  134. *** ../vim-7.3.1255/src/version.c    2013-06-27 22:35:58.000000000 +0200
  135. --- src/version.c    2013-06-28 19:54:22.000000000 +0200
  136. ***************
  137. *** 730,731 ****
  138. --- 730,733 ----
  139.   {   /* Add new patch number below this line */
  140. + /**/
  141. +     1256,
  142.   /**/
  143.  
  144. -- 
  145. Q: How does a UNIX Guru do Sex ?
  146. A: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
  147.  
  148.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  149. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  150. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  151.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  152.