Karsten Hopp 26f9a8
To: vim_dev@googlegroups.com
Karsten Hopp 26f9a8
Subject: Patch 7.4.307
Karsten Hopp 26f9a8
Fcc: outbox
Karsten Hopp 26f9a8
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 26f9a8
Mime-Version: 1.0
Karsten Hopp 26f9a8
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 26f9a8
Content-Transfer-Encoding: 8bit
Karsten Hopp 26f9a8
------------
Karsten Hopp 26f9a8
Karsten Hopp 26f9a8
Patch 7.4.307 (after 7.4.305)
Karsten Hopp 26f9a8
Problem:    Can't build without the +termresponse feature.
Karsten Hopp 26f9a8
Solution:   Add proper #ifdefs.
Karsten Hopp 26f9a8
Files:	    src/os_unix.c, src/term.c
Karsten Hopp 26f9a8
Karsten Hopp 26f9a8
Karsten Hopp 26f9a8
*** ../vim-7.4.306/src/os_unix.c	2014-05-22 18:14:27.570224664 +0200
Karsten Hopp 26f9a8
--- src/os_unix.c	2014-05-22 20:29:36.930059845 +0200
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 3743,3749 ****
Karsten Hopp 26f9a8
      /* Conflicts with xterm mouse: "\033[" and "\033[M".
Karsten Hopp 26f9a8
       * Also conflicts with the xterm termresponse, skip this if it was
Karsten Hopp 26f9a8
       * requested already. */
Karsten Hopp 26f9a8
!     if (!use_xterm_mouse() && !did_request_esc_sequence()
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
--- 3743,3752 ----
Karsten Hopp 26f9a8
      /* Conflicts with xterm mouse: "\033[" and "\033[M".
Karsten Hopp 26f9a8
       * Also conflicts with the xterm termresponse, skip this if it was
Karsten Hopp 26f9a8
       * requested already. */
Karsten Hopp 26f9a8
!     if (!use_xterm_mouse()
Karsten Hopp 26f9a8
! #  ifdef FEAT_TERMRESPONSE
Karsten Hopp 26f9a8
! 	    && !did_request_esc_sequence()
Karsten Hopp 26f9a8
! #  endif
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 3758,3764 ****
Karsten Hopp 26f9a8
  # endif
Karsten Hopp 26f9a8
  # ifdef FEAT_MOUSE_PTERM
Karsten Hopp 26f9a8
      /* same as the dec mouse */
Karsten Hopp 26f9a8
!     if (!use_xterm_mouse() && !did_request_esc_sequence()
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
--- 3761,3770 ----
Karsten Hopp 26f9a8
  # endif
Karsten Hopp 26f9a8
  # ifdef FEAT_MOUSE_PTERM
Karsten Hopp 26f9a8
      /* same as the dec mouse */
Karsten Hopp 26f9a8
!     if (!use_xterm_mouse()
Karsten Hopp 26f9a8
! #  ifdef FEAT_TERMRESPONSE
Karsten Hopp 26f9a8
! 	    && !did_request_esc_sequence()
Karsten Hopp 26f9a8
! #  endif
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 3773,3779 ****
Karsten Hopp 26f9a8
  # endif
Karsten Hopp 26f9a8
  # ifdef FEAT_MOUSE_URXVT
Karsten Hopp 26f9a8
      /* same as the dec mouse */
Karsten Hopp 26f9a8
!     if (use_xterm_mouse() == 3 && !did_request_esc_sequence()
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
--- 3779,3788 ----
Karsten Hopp 26f9a8
  # endif
Karsten Hopp 26f9a8
  # ifdef FEAT_MOUSE_URXVT
Karsten Hopp 26f9a8
      /* same as the dec mouse */
Karsten Hopp 26f9a8
!     if (use_xterm_mouse() == 3
Karsten Hopp 26f9a8
! #  ifdef FEAT_TERMRESPONSE
Karsten Hopp 26f9a8
! 	    && !did_request_esc_sequence()
Karsten Hopp 26f9a8
! #  endif
Karsten Hopp 26f9a8
  #  ifdef FEAT_GUI
Karsten Hopp 26f9a8
  	    && !gui.in_use
Karsten Hopp 26f9a8
  #  endif
Karsten Hopp 26f9a8
*** ../vim-7.4.306/src/term.c	2014-05-22 18:14:27.570224664 +0200
Karsten Hopp 26f9a8
--- src/term.c	2014-05-22 20:28:34.922061106 +0200
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 3311,3317 ****
Karsten Hopp 26f9a8
      }
Karsten Hopp 26f9a8
  }
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
! #if defined(UNIX) || defined(PROTO)
Karsten Hopp 26f9a8
  /*
Karsten Hopp 26f9a8
   * Return TRUE when the xterm version was requested or anything else that
Karsten Hopp 26f9a8
   * would send an ESC sequence back to Vim.
Karsten Hopp 26f9a8
--- 3311,3318 ----
Karsten Hopp 26f9a8
      }
Karsten Hopp 26f9a8
  }
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
! #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
Karsten Hopp 26f9a8
! # if defined(UNIX) || defined(PROTO)
Karsten Hopp 26f9a8
  /*
Karsten Hopp 26f9a8
   * Return TRUE when the xterm version was requested or anything else that
Karsten Hopp 26f9a8
   * would send an ESC sequence back to Vim.
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 3327,3341 ****
Karsten Hopp 26f9a8
      if (u7_status == U7_GET)
Karsten Hopp 26f9a8
  	u7_status = 0;
Karsten Hopp 26f9a8
      return crv_status == CRV_SENT || u7_status == U7_SENT
Karsten Hopp 26f9a8
! # if defined(FEAT_TERMRESPONSE)
Karsten Hopp 26f9a8
! 	|| xt_index_out > xt_index_in
Karsten Hopp 26f9a8
! # endif
Karsten Hopp 26f9a8
! 	;
Karsten Hopp 26f9a8
  }
Karsten Hopp 26f9a8
! #endif
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
- #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
Karsten Hopp 26f9a8
  /*
Karsten Hopp 26f9a8
   * Request version string (for xterm) when needed.
Karsten Hopp 26f9a8
   * Only do this after switching to raw mode, otherwise the result will be
Karsten Hopp 26f9a8
--- 3328,3338 ----
Karsten Hopp 26f9a8
      if (u7_status == U7_GET)
Karsten Hopp 26f9a8
  	u7_status = 0;
Karsten Hopp 26f9a8
      return crv_status == CRV_SENT || u7_status == U7_SENT
Karsten Hopp 26f9a8
! 						|| xt_index_out > xt_index_in;
Karsten Hopp 26f9a8
  }
Karsten Hopp 26f9a8
! # endif
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
  
Karsten Hopp 26f9a8
  /*
Karsten Hopp 26f9a8
   * Request version string (for xterm) when needed.
Karsten Hopp 26f9a8
   * Only do this after switching to raw mode, otherwise the result will be
Karsten Hopp 26f9a8
*** ../vim-7.4.306/src/version.c	2014-05-22 18:59:54.510169240 +0200
Karsten Hopp 26f9a8
--- src/version.c	2014-05-22 21:20:36.665997658 +0200
Karsten Hopp 26f9a8
***************
Karsten Hopp 26f9a8
*** 736,737 ****
Karsten Hopp 26f9a8
--- 736,739 ----
Karsten Hopp 26f9a8
  {   /* Add new patch number below this line */
Karsten Hopp 26f9a8
+ /**/
Karsten Hopp 26f9a8
+     307,
Karsten Hopp 26f9a8
  /**/
Karsten Hopp 26f9a8
Karsten Hopp 26f9a8
-- 
Karsten Hopp 26f9a8
Some of the well known MS-Windows errors:
Karsten Hopp 26f9a8
	ESLEEP		Operator fell asleep
Karsten Hopp 26f9a8
	ENOERR		No error yet
Karsten Hopp 26f9a8
	EDOLLAR		OS too expensive
Karsten Hopp 26f9a8
	EWINDOWS	MS-Windows loaded, system in danger
Karsten Hopp 26f9a8
Karsten Hopp 26f9a8
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 26f9a8
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 26f9a8
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 26f9a8
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///