From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1261: 23.0.60; diary-insert-entry and mouse-autoselect-window Date: Mon, 27 Oct 2008 21:17:55 -0400 Message-ID: References: <87zlkq3tc1.fsf@escher.local.home> <4905F9A4.3010403@gmx.at> <87tzax4vn4.fsf@escher.local.home> Reply-To: Stefan Monnier , 1261@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225157421 12359 80.91.229.12 (28 Oct 2008 01:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 01:30:21 +0000 (UTC) Cc: 1261@emacsbugs.donarmstrong.com To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 02:31:23 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KudQX-0005Sc-4H for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 02:31:21 +0100 Original-Received: from localhost ([127.0.0.1]:43248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KudPQ-0005Qa-V8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 21:30:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KudPN-0005QQ-QP for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 21:30:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KudPN-0005Q2-DI for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 21:30:09 -0400 Original-Received: from [199.232.76.173] (port=41124 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KudPM-0005Pz-Bq for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 21:30:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59931) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KudPL-0001lm-Vy for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 21:30:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9S1U3q9025127; Mon, 27 Oct 2008 18:30:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9S1P3Pv024023; Mon, 27 Oct 2008 18:25:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 28 Oct 2008 01:25:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1261 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1261-submit@emacsbugs.donarmstrong.com id=B1261.122515668422730 (code B ref 1261); Tue, 28 Oct 2008 01:25:03 +0000 Original-Received: (at 1261) by emacsbugs.donarmstrong.com; 28 Oct 2008 01:18:04 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9S1I0bB022724 for <1261@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 18:18:02 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAPsEBklFxIGZ/2dsb2JhbACBdsR8g0+BDQ X-IronPort-AV: E=Sophos;i="4.33,495,1220241600"; d="scan'208";a="28941160" Original-Received: from 69-196-129-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.153]) by ironport2-out.teksavvy.com with ESMTP; 27 Oct 2008 21:17:54 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 32BD38E6F; Mon, 27 Oct 2008 21:17:55 -0400 (EDT) In-Reply-To: <87tzax4vn4.fsf@escher.local.home> (Stephen Berman's message of "Mon, 27 Oct 2008 21:42:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 27 Oct 2008 21:30:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21958 Archived-At: > Using a delay makes the problem worse: after clicking to insert the > diary entry, the diary buffer is selected, but as soon as the time delay > of mouse-autoselect-window (I tested with the default value of 0.5 > seconds) elapses, the Calendar buffer automatically becomes selected, > without my having moved the mouse at all. Again, typing 'i d' or using > the menu bar does not show this behavior (instead the diary buffer > remains selected). I think I see the problem: normally mouse-autoselect-window only kicks into action when moving from one window to another. Whereas in your particular case it kicks in just by having the mouse in another window than the selected one. This is indeed undesirable: the behavior you get with `i d' is done on purpose and required explicit code. Somehow we'll need to improve this code to also catch the case where the mouse was inside a menu. Stefan