|
Karsten Hopp |
2116af |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2116af |
Subject: Patch 7.3.1256
|
|
Karsten Hopp |
2116af |
Fcc: outbox
|
|
Karsten Hopp |
2116af |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2116af |
Mime-Version: 1.0
|
|
Karsten Hopp |
2116af |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2116af |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2116af |
------------
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
Patch 7.3.1256
|
|
Karsten Hopp |
2116af |
Problem: Can't build without eval or autocmd feature.
|
|
Karsten Hopp |
2116af |
Solution: Add #ifdefs.
|
|
Karsten Hopp |
2116af |
Files: src/mbyte.c, src/window.c
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
*** ../vim-7.3.1255/src/mbyte.c 2013-06-26 19:17:58.000000000 +0200
|
|
Karsten Hopp |
2116af |
--- src/mbyte.c 2013-06-28 19:53:43.000000000 +0200
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 5079,5084 ****
|
|
Karsten Hopp |
2116af |
--- 5079,5085 ----
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
xim_set_focus(gui.in_focus);
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
+ # ifdef FEAT_EVAL
|
|
Karsten Hopp |
2116af |
if (p_imaf[0] != NUL)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
char_u *argv[1];
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 5089,5095 ****
|
|
Karsten Hopp |
2116af |
argv[0] = (char_u *)"0";
|
|
Karsten Hopp |
2116af |
(void)call_func_retnr(p_imaf, 1, argv, FALSE);
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
! else if (im_activatekey_keyval != GDK_VoidSymbol)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
if (im_is_active)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
--- 5090,5098 ----
|
|
Karsten Hopp |
2116af |
argv[0] = (char_u *)"0";
|
|
Karsten Hopp |
2116af |
(void)call_func_retnr(p_imaf, 1, argv, FALSE);
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
! else
|
|
Karsten Hopp |
2116af |
! # endif
|
|
Karsten Hopp |
2116af |
! if (im_activatekey_keyval != GDK_VoidSymbol)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
if (im_is_active)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 5249,5260 ****
|
|
Karsten Hopp |
2116af |
int
|
|
Karsten Hopp |
2116af |
im_get_status(void)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
if (p_imsf[0] != NUL)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
int is_active;
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
/* FIXME: Don't execute user function in unsafe situation. */
|
|
Karsten Hopp |
2116af |
! if (exiting || is_autocmd_blocked())
|
|
Karsten Hopp |
2116af |
return FALSE;
|
|
Karsten Hopp |
2116af |
/* FIXME: :py print 'xxx' is shown duplicate result.
|
|
Karsten Hopp |
2116af |
* Use silent to avoid it. */
|
|
Karsten Hopp |
2116af |
--- 5252,5268 ----
|
|
Karsten Hopp |
2116af |
int
|
|
Karsten Hopp |
2116af |
im_get_status(void)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
+ # ifdef FEAT_EVAL
|
|
Karsten Hopp |
2116af |
if (p_imsf[0] != NUL)
|
|
Karsten Hopp |
2116af |
{
|
|
Karsten Hopp |
2116af |
int is_active;
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
/* FIXME: Don't execute user function in unsafe situation. */
|
|
Karsten Hopp |
2116af |
! if (exiting
|
|
Karsten Hopp |
2116af |
! # ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
2116af |
! || is_autocmd_blocked()
|
|
Karsten Hopp |
2116af |
! # endif
|
|
Karsten Hopp |
2116af |
! )
|
|
Karsten Hopp |
2116af |
return FALSE;
|
|
Karsten Hopp |
2116af |
/* FIXME: :py print 'xxx' is shown duplicate result.
|
|
Karsten Hopp |
2116af |
* Use silent to avoid it. */
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 5263,5268 ****
|
|
Karsten Hopp |
2116af |
--- 5271,5277 ----
|
|
Karsten Hopp |
2116af |
--msg_silent;
|
|
Karsten Hopp |
2116af |
return (is_active > 0);
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
+ # endif
|
|
Karsten Hopp |
2116af |
return im_is_active;
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
*** ../vim-7.3.1255/src/window.c 2013-06-26 14:04:37.000000000 +0200
|
|
Karsten Hopp |
2116af |
--- src/window.c 2013-06-28 19:50:44.000000000 +0200
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 53,62 ****
|
|
Karsten Hopp |
2116af |
static void frame_append __ARGS((frame_T *after, frame_T *frp));
|
|
Karsten Hopp |
2116af |
static void frame_insert __ARGS((frame_T *before, frame_T *frp));
|
|
Karsten Hopp |
2116af |
static void frame_remove __ARGS((frame_T *frp));
|
|
Karsten Hopp |
2116af |
! #ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
2116af |
static void win_goto_ver __ARGS((int up, long count));
|
|
Karsten Hopp |
2116af |
static void win_goto_hor __ARGS((int left, long count));
|
|
Karsten Hopp |
2116af |
! #endif
|
|
Karsten Hopp |
2116af |
static void frame_add_height __ARGS((frame_T *frp, int n));
|
|
Karsten Hopp |
2116af |
static void last_status_rec __ARGS((frame_T *fr, int statusline));
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
--- 53,62 ----
|
|
Karsten Hopp |
2116af |
static void frame_append __ARGS((frame_T *after, frame_T *frp));
|
|
Karsten Hopp |
2116af |
static void frame_insert __ARGS((frame_T *before, frame_T *frp));
|
|
Karsten Hopp |
2116af |
static void frame_remove __ARGS((frame_T *frp));
|
|
Karsten Hopp |
2116af |
! # ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
2116af |
static void win_goto_ver __ARGS((int up, long count));
|
|
Karsten Hopp |
2116af |
static void win_goto_hor __ARGS((int left, long count));
|
|
Karsten Hopp |
2116af |
! # endif
|
|
Karsten Hopp |
2116af |
static void frame_add_height __ARGS((frame_T *frp, int n));
|
|
Karsten Hopp |
2116af |
static void last_status_rec __ARGS((frame_T *fr, int statusline));
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 6928,6933 ****
|
|
Karsten Hopp |
2116af |
--- 6928,6934 ----
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
#endif
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
2116af |
/*
|
|
Karsten Hopp |
2116af |
* Return TRUE if "topfrp" and its children are at the right height.
|
|
Karsten Hopp |
2116af |
*/
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 6948,6953 ****
|
|
Karsten Hopp |
2116af |
--- 6949,6955 ----
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
return TRUE;
|
|
Karsten Hopp |
2116af |
}
|
|
Karsten Hopp |
2116af |
+ #endif
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
#ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
2116af |
/*
|
|
Karsten Hopp |
2116af |
*** ../vim-7.3.1255/src/version.c 2013-06-27 22:35:58.000000000 +0200
|
|
Karsten Hopp |
2116af |
--- src/version.c 2013-06-28 19:54:22.000000000 +0200
|
|
Karsten Hopp |
2116af |
***************
|
|
Karsten Hopp |
2116af |
*** 730,731 ****
|
|
Karsten Hopp |
2116af |
--- 730,733 ----
|
|
Karsten Hopp |
2116af |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2116af |
+ /**/
|
|
Karsten Hopp |
2116af |
+ 1256,
|
|
Karsten Hopp |
2116af |
/**/
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
--
|
|
Karsten Hopp |
2116af |
Q: How does a UNIX Guru do Sex ?
|
|
Karsten Hopp |
2116af |
A: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
|
|
Karsten Hopp |
2116af |
|
|
Karsten Hopp |
2116af |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2116af |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2116af |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2116af |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|