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 13:33:28 -0400 Message-ID: <5071BCE8.2060107@cornell.edu> References: <5070E131.6020402@cornell.edu> <83zk3y6aox.fsf@gnu.org> <50717310.1030906@cornell.edu> <83k3v25pwa.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 1349631249 27974 80.91.229.3 (7 Oct 2012 17:34:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 17:34:09 +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 19:34:15 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 1TKuk2-0003Ac-7i for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 19:34:14 +0200 Original-Received: from localhost ([::1]:55502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKujw-0005Pd-9N for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 13:34:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKujt-0005PR-BQ for emacs-devel@gnu.org; Sun, 07 Oct 2012 13:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKujr-0006hq-VQ for emacs-devel@gnu.org; Sun, 07 Oct 2012 13:34:05 -0400 Original-Received: from limestone4.mail.cornell.edu ([128.253.83.164]:43491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKujr-0006hh-RI; Sun, 07 Oct 2012 13:34:03 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from orchid.mail.cornell.edu (orchid.mail.cornell.edu [132.236.56.61]) by limestone4.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q97HXshw024735; Sun, 7 Oct 2012 13:33:55 -0400 (EDT) Original-Received: from authusersmtp.mail.cornell.edu (granite2.mail.cornell.edu [128.253.83.142]) by orchid.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q97HY1iT009928; Sun, 7 Oct 2012 13:34:01 -0400 (EDT) Original-Received: from [172.17.70.11] ([63.149.67.2]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id q97HY1dX028365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 7 Oct 2012 13:34:01 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <83k3v25pwa.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.172128 X-Original-Sender: kbrown@cornell.edu - Sun Oct 7 13:34:02 2012 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 128.253.83.164 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:154197 Archived-At: On 10/7/2012 10:16 AM, Eli Zaretskii wrote: >> 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? Surprisingly, it actually seems to work when invoked from the cmd window (in limited testing). I don't have a terminal that doesn't support xterm-mouse sequences, so I can't test that. > 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. You're right. If it doesn't work in all Posix builds, then I'm not interested in making Cygwin a special case. I withdraw my original proposal. > P.S. Any idea why that user couldn't run Emacs compiled with X using > the -nw switch? He can do this (and is doing it currently). He was looking for a more "lightweight" solution, that doesn't require installing X. Ken