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