From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer does not change input focus Date: Fri, 21 Apr 2006 22:57:29 +0200 Message-ID: <44494739.9010302@soem.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145653113 10240 80.91.229.2 (21 Apr 2006 20:58:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2006 20:58:33 +0000 (UTC) Cc: Emacs-Devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 21 22:58:26 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 1FX2hs-00083x-F7 for ged-emacs-devel@m.gmane.org; Fri, 21 Apr 2006 22:58:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FX2hs-0005UD-4s for ged-emacs-devel@m.gmane.org; Fri, 21 Apr 2006 16:58:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FX2h5-0004gc-Pl for emacs-devel@gnu.org; Fri, 21 Apr 2006 16:57:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FX2h3-0004fT-IF for emacs-devel@gnu.org; Fri, 21 Apr 2006 16:57:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FX2h3-0004fG-8o for emacs-devel@gnu.org; Fri, 21 Apr 2006 16:57:33 -0400 Original-Received: from [212.99.225.245] (helo=odin.broadcom.dk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FX2ig-0003YY-Ca for emacs-devel@gnu.org; Fri, 21 Apr 2006 16:59:14 -0400 Original-Received: from pppoe3-ves.broadcom.dk ([212.99.255.42] helo=[10.17.0.131]) by odin.broadcom.dk with esmtp (Exim 4.24; FreeBSD) id 1FX2gH-000LqU-Qg; Fri, 21 Apr 2006 22:56:45 +0200 User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en Original-To: David Reitter In-Reply-To: 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:53209 Archived-At: David Reitter wrote: > With `pop-up-frames' set to t, `pop-to-buffer' will show a new frame > with the buffer given. But if a frame showing that buffer already > exists, this buffer is selected, the frame is raised, but it does not > get input focus. I can confirm it, on Debian stable with Gnome and with an Emacs checked out and compiled a couple of hours ago started with -Q. And display-buffer has the same problem. Reading the code of Fdisplay_buffer, it seem to me that it ends up calling Fraise_frame which calls Fmake_frame_visible. So maybe theses functions has a problem. This is what I see: 1. If a frame is hidden (partly or completely) behind the selected frame, raise-frame brings it to the top but it does not get input focus. 2. If a frame is hidden (partly or completely) behind the selected frame, make-frame-visible does nothing! 3. If a frame is iconified, raise-frame as well as make-frame-visible deiconifies it but it ends up behind the selected frame and it does not get input focus. BTW, are raise-frame and make-frame-visible supposed to give input focus to the frame? The doc strings say nothing. And what is really the difference between these two functions?