From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: Defining HAVE_MOUSE on Cygwin Date: Sun, 07 Oct 2012 08:18:24 -0400 Message-ID: <50717310.1030906@cornell.edu> References: <5070E131.6020402@cornell.edu> <83zk3y6aox.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349612345 11662 80.91.229.3 (7 Oct 2012 12:19:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 12:19:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 14:19:11 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 1TKpp9-0006FP-7e for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 14:19:11 +0200 Original-Received: from localhost ([::1]:55213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpp3-0003wa-3X for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 08:19:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpp0-0003wT-DZ for emacs-devel@gnu.org; Sun, 07 Oct 2012 08:19:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKpoz-0004hL-5N for emacs-devel@gnu.org; Sun, 07 Oct 2012 08:19:02 -0400 Original-Received: from limestone8.mail.cornell.edu ([128.253.83.168]:40690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpoz-0004hG-1H; Sun, 07 Oct 2012 08:19:01 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from soapstone1.mail.cornell.edu (soapstone1.mail.cornell.edu [128.253.83.143]) by limestone8.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q97CJ0fT013571; Sun, 7 Oct 2012 08:19:00 -0400 (EDT) Original-Received: from authusersmtp.mail.cornell.edu (granite2.mail.cornell.edu [128.253.83.142]) by soapstone1.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q97CJ6Pa010730; Sun, 7 Oct 2012 08:19:06 -0400 (EDT) Original-Received: from [172.17.21.118] ([63.149.67.2]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id q97CIt7o009863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 7 Oct 2012 08:18:55 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <83zk3y6aox.fsf@gnu.org> X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.10.7.120332 X-Original-Sender: kbrown@cornell.edu - Sun Oct 7 08:18:55 2012 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 128.253.83.168 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:154172 Archived-At: On 10/7/2012 2:46 AM, Eli Zaretskii wrote: >> Date: Sat, 06 Oct 2012 21:56:01 -0400 >> From: Ken Brown >> >> 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