X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.8 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <5069ECE7.1030704@cornell.edu>
Date: Mon, 01 Oct 2012 15:20:07 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: RFE: make non-x11 emacs mouse-aware
References: <5069E59E.606@cs.utoronto.ca>
In-Reply-To: <5069E59E.606@cs.utoronto.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown@cornell.edu - Mon Oct  1 15:20:04 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 10/1/2012 2:49 PM, Ryan Johnson wrote:
> Hi all, esp. emacs maintainer(s),
>
> I'd like to request that the non-x11 emacs be made mouse aware. Right
> now, terminal mouse mode is broken in normal emacs because the emacs
> core doesn't recognize the resulting mouse events. You can use emacs-x11
> in terminal mode as a heavyweight workaround, but it turns out that
> mouse awareness is controlled by the src/config.h file created by
> ./configure:
>> /* Define if you have mouse support. */
>> /* #undef HAVE_MOUSE */
>
> There doesn't seem to be an explicit configure switch for it (it's
> enabled indirectly by --with-x11 or --with-ns), but editing directly
> produced the desired results on a headless linux machine, with no
> undesirable side effects so far. I see no reason it shouldn't also work
> under cygwin.

I'd be happy to do it if I could be sure there were no bad side effects. 
  But I never use emacs-nox, so it isn't easy for me to test it on a 
long-term basis.  Maybe you should build it yourself and report back.

And can you be more specific about what you expect emacs to do with 
mouse events when it's running in a terminal?  I thought mintty captured 
mouse events.  In particular, when I run emacs-x11 under mintty, C-h k 
<mouse-click> produces no response; the cursor stays in the minibuffer, 
and emacs continues to wait for me to press a key.  Running under X, 
however, emacs does see the mouse click in that same situation.  For 
another example, if I run emacs-x11 under mintty, I can highlight text 
with the mouse and then paste it with shift-insert.  But again it's 
mintty doing the work, not emacs.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

