From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Defining HAVE_MOUSE on Cygwin Date: Sun, 07 Oct 2012 16:16:05 +0200 Message-ID: <83k3v25pwa.fsf@gnu.org> References: <5070E131.6020402@cornell.edu> <83zk3y6aox.fsf@gnu.org> <50717310.1030906@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1349619387 32327 80.91.229.3 (7 Oct 2012 14:16:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 14:16:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 16:16:33 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TKrec-0002BN-PQ for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 16:16:26 +0200 Original-Received: from localhost ([::1]:49839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKreW-0006D7-Pw for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 10:16:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKreT-0006D0-Pp for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKreS-0001iC-BU for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:16:17 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKreS-0001hz-3a for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:16:16 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MBJ005000JESL00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 07 Oct 2012 16:16:14 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBJ005N10Z1HT70@a-mtaout22.012.net.il>; Sun, 07 Oct 2012 16:16:14 +0200 (IST) In-reply-to: <50717310.1030906@cornell.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154183 Archived-At: > Date: Sun, 07 Oct 2012 08:18:24 -0400 > From: Ken Brown > CC: emacs-devel@gnu.org > > >> +## 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. Cannot Cygwin Emacs be invoked from the cmd window, or from a terminal that does not support xterm-mouse sequences? If it can, what happens then if you build emacs-nox that way? To tell the truth, I'm a bit nervous about this change. Code conditioned by HAVE_MOUSE makes all kinds of assumptions, which I'm not sure are true when xterm-mouse is the agent. I will have to review that code to have an pinion I can defend. But if that works, my fears notwithstanding, why confine this to Cygwin? If we believe that emacs-nox will always run on a mouse-capable terminal, let's turn on HAVE_MOUSE in all Posix builds. P.S. Any idea why that user couldn't run Emacs compiled with X using the -nw switch?