emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining HAVE_MOUSE on Cygwin


From: Ken Brown
Subject: Re: Defining HAVE_MOUSE on Cygwin
Date: Sun, 07 Oct 2012 08:18:24 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0

On 10/7/2012 2:46 AM, Eli Zaretskii wrote:
Date: Sat, 06 Oct 2012 21:56:01 -0400
From: Ken Brown <address@hidden>

A Cygwin user has requested that emacs have mouse support on Cygwin even
if it is built --with-x=no.  Does anyone see a problem with this?  If
not, what's the best way to do it?  Here's one possibility:

=== modified file 'configure.ac'
--- configure.ac        2012-10-06 00:44:36 +0000
+++ configure.ac        2012-10-07 01:53:21 +0000
@@ -4358,6 +4358,11 @@

   AC_SUBST(WINDOW_SYSTEM_OBJ)

+## Always build with mouse support on Cygwin
+if test "$opsys" = "cygwin" && test "$window_system" = "none"; then
+  AC_DEFINE(HAVE_MOUSE, 1, [Define if you have mouse support.])
+fi
+
   AH_TOP([/* GNU Emacs site configuration template file.

   Copyright (C) 1988, 1993-1994, 1999-2002, 2004-2012

How will this work?  HAVE_MOUSE on a console requires mouse-support
infrastructure.  AFAIK, we only have one such infrastructure: GPM.  Is
that available on Cygwin?  If not, how will the mouse gestures be made
known to Emacs in this build?

No, GPM is not available on Cygwin. But one can still get rudimentary mouse support in Emacs by turning on xterm-mouse-mode, provided the terminal is xterm compatible. And the standard Cygwin terminal is xterm compatible, i.e., it sends the standard xterm mouse escape sequences.

Ken




reply via email to

[Prev in Thread] Current Thread [Next in Thread]