From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [simon.marshall@misys.com: mouse-autoselect-window needs a de lay] Date: Wed, 19 Jul 2006 13:00:03 +0200 Message-ID: References: <81CCA6588E60BB42BE68BD029ED4826008837542@wimex2.wim.midas-kapiti.com> <44BE01C3.70801@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153306949 21847 80.91.229.2 (19 Jul 2006 11:02:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jul 2006 11:02:29 +0000 (UTC) Cc: "Marshall, Simon" , "'emacs-devel@gnu.org'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 19 13:02:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G39ol-0003yC-LC for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2006 13:02:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G39ol-0006PH-B9 for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2006 07:02:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G39oZ-0006PC-99 for emacs-devel@gnu.org; Wed, 19 Jul 2006 07:02:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G39oV-0006OX-JY for emacs-devel@gnu.org; Wed, 19 Jul 2006 07:02:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G39oV-0006OU-E4 for emacs-devel@gnu.org; Wed, 19 Jul 2006 07:01:59 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G39rb-0000Tr-9M for emacs-devel@gnu.org; Wed, 19 Jul 2006 07:05:11 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 9020BA50025; Wed, 19 Jul 2006 13:01:46 +0200 (CEST) Original-To: martin rudalics In-Reply-To: <44BE01C3.70801@gmx.at> (martin rudalics's message of "Wed, 19 Jul 2006 11:56:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57332 Archived-At: martin rudalics writes: >> Maybe the only fix is to be tolerant of nil for X and Y from mouse-position. > > The only thing I can offer is to wrap this in a `condition-case' and > have `handle-select-window' do it's usual stuff when > `mouse-autoselect-window-start' fails. I haven't studied the details of the patch, so just a general comment: Lisp vars exported from C are normally named with a V prefix, like this: extern Lisp_Object Vmouse_autoselect_window; Since you seem to touch on all occurrences of mouse_autoselect_window, could you please make it use the "proper" name. -- Kim F. Storm http://www.cua.dk