From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#745: pop-to-buffer, frames, and input focus Date: Thu, 28 Aug 2008 23:26:51 +0200 Message-ID: <48B7181B.7080706@gmx.at> References: <48AC2F4A.1000507@gmx.at> <48AC851A.3020906@gmx.at> <48AD2FB5.3000204@gmx.at> <48ADD085.50505@gmx.at> <48AEEBB8.50201@gmx.at> <48AFFD26.3040204@gmx.at> <48B2B78C.9090407@gmx.at> <48B50C63.8010402@gmx.at> <48B69007.20604@gmx.at> Reply-To: martin rudalics , 745@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.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 1219960079 11232 80.91.229.12 (28 Aug 2008 21:47:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 21:47:59 +0000 (UTC) Cc: 745@emacsbugs.donarmstrong.com, Chong Yidong , Stefan Monnier To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 23:48:52 2008 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 1KYpMK-0000qK-1b for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 23:48:52 +0200 Original-Received: from localhost ([127.0.0.1]:59324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYpLK-0004yx-Ux for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 17:47:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYpL8-0004tj-Cb for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYpL6-0004sX-Tj for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:38 -0400 Original-Received: from [199.232.76.173] (port=59798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYpL6-0004sN-Jf for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47696) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYpL5-00072y-PE for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:36 -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 m7SLlTA7030534; Thu, 28 Aug 2008 14:47:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7SLZ386026086; Thu, 28 Aug 2008 14:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 Aug 2008 21:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 745 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 745-submit@emacsbugs.donarmstrong.com id=B745.121995895024339 (code B ref 745); Thu, 28 Aug 2008 21:35:03 +0000 Original-Received: (at 745) by emacsbugs.donarmstrong.com; 28 Aug 2008 21:29:10 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7SLT5bQ024314 for <745@emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 14:29:07 -0700 Original-Received: (qmail invoked by alias); 28 Aug 2008 21:28:59 -0000 Original-Received: from 62-47-54-252.adsl.highway.telekom.at (EHLO [62.47.54.252]) [62.47.54.252] by mail.gmx.net (mp052) with SMTP; 28 Aug 2008 23:28:59 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX185Ym8ldmE5CsD5dciXWijwsk0QWK0gjQG8Z+EcGH CuHQTIePf5kIJ1 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 28 Aug 2008 17:47:38 -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:19838 Archived-At: > I know about the following problems: > > 1. pop-to-buffer doesn't switch input focus > 2. select-window doesn't switch input focus > 3. x-create-frame does switch input focus (with most WMs) > > Is there something else? The XSetInputFocus vs x_ewmh_activate_frame dichotomy in `x-focus-frame'. > We agreed that we wont fix 3. Yes. > 1 would be fixed by calling select-frame-set-input-focus in > pop-to-buffer (either customizable or not). Do we need to test > something? Let's try without an option. Stefan, Chong, any objections? *** window.el.~1.146.~ 2008-08-23 09:41:38.156250000 +0200 --- window.el 2008-08-28 19:32:50.765625000 +0200 *************** *** 1061,1066 **** --- 1061,1067 ---- buf))))) (set-buffer buffer) (select-window (display-buffer buffer other-window) norecord) + (select-frame-set-input-focus (selected-frame)) buffer)) ;; I think this should be the default; I think people will prefer it--rms. > Fixing 2 isn't so clear. This was shortly discussed on the mailing list > but RMS said, at that time, that more important things should be done. You mean we could solve this with your update-focus-lazily approach? martin