From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Add discussion of input focus handling to select-window; add select-frame-window Date: Wed, 13 Dec 2017 09:49:51 +0100 Message-ID: <5A30E9AF.2060105@gmx.at> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1513155061 19443 195.159.176.226 (13 Dec 2017 08:51:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 08:51:01 +0000 (UTC) To: rswgnu@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 09:50:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP2ke-0004bm-GN for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 09:50:52 +0100 Original-Received: from localhost ([::1]:34376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP2kl-0004oc-M0 for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 03:50:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP2jv-0004jF-OL for emacs-devel@gnu.org; Wed, 13 Dec 2017 03:50:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP2jr-0005nj-R9 for emacs-devel@gnu.org; Wed, 13 Dec 2017 03:50:07 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:57251) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP2jr-0005jY-GZ for emacs-devel@gnu.org; Wed, 13 Dec 2017 03:50:03 -0500 Original-Received: from [192.168.1.100] ([46.125.250.11]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MJWAZ-1eS3oB3Fet-0037uL; Wed, 13 Dec 2017 09:50:00 +0100 In-Reply-To: X-Provags-ID: V03:K0:QFCJl3dyCImwMMmbRKVcAbpWCgfIvSvjIHkgii8U/pVdGXyXnda cvv9GxdLZLZRlZpqHZCofFo3o/QuH3DLA5lcG45ZdrjhTmIJ48XaGTP6pKRs3rfJamChBAz uVeX5LciFDu3YWyyo5ryit/1pezViJ5PfzOeybO0d0tcfcqYxqJ4HHaAolTfggfnRHCamVn ECaflYgQQ7w5fPHeggUOQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:5QLV8RlG3FU=:M5sHxecfbpQFm0ZNMmtcAj JMVR86lMW1Mut86lGUQ7wfVNRYbs3XIp1yr90qHx0lGemlcDMmvz1pu2PYKlFjznGt5zYplbQ ASwKXORH6L0uPn0Kn781xeaycrR+n6OGb2WoA465BGMBeAwqPHteZHOVbpflJ3SuQJNToi+Ii 3xyc/3phwz2P+637PeYn53fTpPsfkP1cGb8UeOhgp8NCV0in0irKTkei93rIn7CuIhS95+eu3 8sT1hQOOZhKNXY08oa2dhJV5h+APGqYgIA/MQzR0rkMiAAlA5K51hI8pWeszlYwdDSahwawOU Qa4jh7rFBNRwJmdc26TYtsCHE71wpmMJ1Gg0A3Rf3lzuz8jKr3wtc1ZZNJgCO34OsdzUPAYpL UNNMSs91fmu9Ehtw5k61GIiwO18cMQ2IIh29T3UgPX6TDYLX8VS+xU9OCdqwCk0q8eddV0lcw 9f6tAH8L7zIyFBu2K/3FX1aQ3QxIzI8P2+s5zGou0OhF1ASJfg6zFdzeu3xxOHYx1gvEDB8fL QImqxDRnISbv323d/V+J3/KMqneG05rF/rK9N6sTmgP56MRgKFx6FsXg0jT527RoVf4vPSnjB P0QbnOHjAbTaDZJoSwWK0z4OgToCYXWfPSWLFjXxa7uT+YPEKJ2D1zzQaySNcALI3YWEg3zOE yIW7ija11QftSfZICJccxBkaZJBqp7y1vWadJ5vOh8+taSMirrlw82D1/PrZi4ecdi3iESKm1 3vk6C8v1iJmpqsd5v/WyQwXLR/akbSXs9Y2Z2efe21vuIiA1cdMfVPK2DjjzGS+UOF70woyq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220986 Archived-At: > The doc string for select-window does not discuss the sometime need to also > set input focus to the selected window's frame when one wants future input > events to go there. I would suggest adding this along with a reference to > select-frame-set-input-focus. `select-window' is a function with immediate effect so we can give it a self-contained doc-string and description. `select-frame-set-input-focus' OTOH lumps together three things: It selects a frame and thus implicitly its selected window and tells the window manager to raise that frame and to give it input focus. The latter two do not have immediate effect, they induce a delay and require a cooperating window manager. (Raising the frame is a bad idea IMHO but admittedly a compromise to accommodate the standard behavior of most existing window managers.) So the reference you suggest would have to be accompanied by an explanation of delays and a reference to the window manager. Such explanation would make the doc-string quite complex (and we're not even talking about redirected frame focus yet). So I think that people who need information about how to raise a frame or giving it input focus should look into the Elisp manual. > Even better might be to add select-frame-window which would combine > select-window and select-frame-set-input-focus for those times where you > want to both select the frame and change its selected window. But `select-window' does select the window's frame. martin