From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Add discussion of input focus handling to select-window; add select-frame-window Date: Sat, 16 Dec 2017 19:26:30 +0200 Message-ID: <83wp1mr3cp.fsf@gnu.org> References: <5A30E9AF.2060105@gmx.at> <5A317FAA.3090209@gmx.at> <83d13iv095.fsf@gnu.org> <83bmj2ugok.fsf@gnu.org> <834loqskkw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513445244 5548 195.159.176.226 (16 Dec 2017 17:27:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2017 17:27:24 +0000 (UTC) Cc: rudalics@gmx.at, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rswgnu@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 18:27:19 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 1eQGF4-0000vL-UF for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2017 18:27:19 +0100 Original-Received: from localhost ([::1]:51456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQGFC-0002ZN-3q for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2017 12:27:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQGEV-0002Yy-HG for emacs-devel@gnu.org; Sat, 16 Dec 2017 12:26:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQGER-0007xc-Cs for emacs-devel@gnu.org; Sat, 16 Dec 2017 12:26:43 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQGER-0007xY-95; Sat, 16 Dec 2017 12:26:39 -0500 Original-Received: from [176.228.60.248] (port=3576 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eQGEP-0007gu-CA; Sat, 16 Dec 2017 12:26:39 -0500 In-reply-to: (message from Robert Weiner on Sat, 16 Dec 2017 12:04:03 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:221139 Archived-At: > From: Robert Weiner > Date: Sat, 16 Dec 2017 12:04:03 -0500 > Cc: Stefan Monnier , martin rudalics , > emacs-devel > > ​The main question I am trying to address is how to tell an Elisp programmer > how to redirect user input to an arbitrary window. Whether or not we have > a specific name for this redirection, where user input goes changes when > select-window is called within the selected frame. So there is input focus > which is frame-related but there is also window-related input redirection. > My argument is that there needs to be one place to look to understand > that. > > Maybe select-window is not the place, it just seems that programmers focused on > handling windows would naturally look there. > > How and where would you explain this? There's a node "Input Focus" in the ELisp manual. What is missing from it to cover what you want? In my scheme of Emacs-ware, there's no such thing as "redirecting input to a window". Input is redirected to a frame, and then the selected window on that frame is usually the one that reacts to user input (I say "usually' because some input, like mouse gestures, can operate on n on-selected windows). > I read through parts of the Elisp manual. The section on Windows does not explain > how to redirect user input ot an arbitrary window. The top-level on Frames does > not either. It is not until I get to the section on Input Focus that I get any > helpful information on this and that section refers only to frames, not selected > windows. Then perhaps the only stuff that's missing is some appropriately worded index entries that lead to "Input Focus", and maybe also short notes with cross-references elsewhere in the manual.