From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#1261: 23.0.60; diary-insert-entry and mouse-autoselect-window Date: Tue, 04 Nov 2008 13:51:27 -0500 Message-ID: References: <87zlkq3tc1.fsf@escher.local.home> <4905F9A4.3010403@gmx.at> <87tzax4vn4.fsf@escher.local.home> <4906C864.9020103@gmx.at> <98prlcihem.fsf@fencepost.gnu.org> <490FFB60.6030600@gmx.at> Reply-To: Glenn Morris , 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 1225826049 22217 80.91.229.12 (4 Nov 2008 19:14:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 19:14:09 +0000 (UTC) Cc: 1261@emacsbugs.donarmstrong.com, Stephen Berman To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 20:15:11 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 1KxRMq-0007dB-Eo for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 20:15:08 +0100 Original-Received: from localhost ([127.0.0.1]:45474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxRLj-0004bC-4l for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 14:13:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxRI5-0002Sa-2Z for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 14:10:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxRI4-0002Rr-7T for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 14:10:12 -0500 Original-Received: from [199.232.76.173] (port=36019 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxRI4-0002Rj-1r for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 14:10:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59167) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxRI4-0007ae-7F for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 14:10:12 -0500 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 mA4JA5kt009230; Tue, 4 Nov 2008 11:10:05 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA4J04pf006065; Tue, 4 Nov 2008 11:00:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Nov 2008 19:00: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.12258248704749 (code B ref 1261); Tue, 04 Nov 2008 19:00:03 +0000 Original-Received: (at 1261) by emacsbugs.donarmstrong.com; 4 Nov 2008 18:54:30 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA4IsR4C004743 for <1261@emacsbugs.donarmstrong.com>; Tue, 4 Nov 2008 10:54:29 -0800 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KxQzv-0007Os-Uq; Tue, 04 Nov 2008 13:51:27 -0500 X-Spook: Vickie Weaver electronic surveillance Fedayeen bce X-Ran: M>`npVZ"'Iw})v>xs,m3Y7o6i*"mk/mt@7zl3i=x^h,i;!"juOLFAb0d_N$c2HZU7BBCwA X-Hue: red X-Attribution: GM In-Reply-To: <490FFB60.6030600@gmx.at> (martin rudalics's message of "Tue, 04 Nov 2008 08:36:00 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 04 Nov 2008 14:10:12 -0500 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:22163 Archived-At: martin rudalics wrote: > Would it help to check popup_activated, like > > if (WINDOWP (window) > && !popup_activated () > && !EQ (window, last_window) > && !EQ (window, selected_window) > > in handle_one_xevent? Not exactly like that, but with a tweak it seems to work (see below). It feels a bit like covering up the real problem (gtk associating popup with funny window), but I have no better solution; and indeed one probably does not want to switch windows when popups are active. I don't use mouse-autoselect-window, so Stephen please could you check this works ok? *** xterm.c 4 Nov 2008 16:47:34 -0000 1.1010 --- xterm.c 4 Nov 2008 18:49:39 -0000 *************** *** 6723,6729 **** { /* Generate SELECT_WINDOW_EVENTs when needed. */ ! if (!NILP (Vmouse_autoselect_window)) { Lisp_Object window; --- 6723,6729 ---- { /* Generate SELECT_WINDOW_EVENTs when needed. */ ! if (!NILP (Vmouse_autoselect_window) && !popup_activated ()) { Lisp_Object window;