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