From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Add discussion of input focus handling to select-window; add select-frame-window Date: Tue, 12 Dec 2017 13:13:40 -0500 Message-ID: References: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114058a411f34f0560289e9d" X-Trace: blaine.gmane.org 1513102501 23349 195.159.176.226 (12 Dec 2017 18:15:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 18:15:01 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 19:14:53 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 1eOp4u-0005Y5-9e for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 19:14:53 +0100 Original-Received: from localhost ([::1]:59882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOp4z-0006KW-CO for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 13:14:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOp4J-0006K5-C3 for emacs-devel@gnu.org; Tue, 12 Dec 2017 13:14:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOp4F-00071m-EO for emacs-devel@gnu.org; Tue, 12 Dec 2017 13:14:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOp4F-00071f-AL for emacs-devel@gnu.org; Tue, 12 Dec 2017 13:14:11 -0500 Original-Received: from mail-qt0-f171.google.com ([209.85.216.171]:45171) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eOp4F-000421-3s for emacs-devel@gnu.org; Tue, 12 Dec 2017 13:14:11 -0500 Original-Received: by mail-qt0-f171.google.com with SMTP id g10so49483027qtj.12 for ; Tue, 12 Dec 2017 10:14:11 -0800 (PST) X-Gm-Message-State: AKGB3mIoUXaWKVTXC5/bsLBwYOCmxLDnSvE58NEQDUPvkk5YTT4gNWtB zNmdS98zIWUJa/gceQSL1i2sg2/F2Mv6w6sDUc8= X-Google-Smtp-Source: ACJfBoumifpdBTEfkMHFWAeCilNO5xKeqWBX+AVDOjsxm4H+oeSSuVbZlY2oA7Bv6dn47JFjh+IYGYqCHto/nmdz1f8= X-Received: by 10.200.38.33 with SMTP id u30mr7081102qtu.197.1513102450486; Tue, 12 Dec 2017 10:14:10 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Tue, 12 Dec 2017 10:13:40 -0800 (PST) In-Reply-To: X-Gmail-Original-Message-ID: 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:220937 Archived-At: --001a114058a411f34f0560289e9d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 12, 2017 at 10:39 AM, Robert Weiner wrote: > 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. > > 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. > =E2=80=8BThe same issue exists with save-selected-window except that it app= lies to the start selected window rather than a new one. Another macro, save-selected-frame-window, would keep input from switching to another frame within its scope since this is not part of save-selected-window's behavior. Bob --001a114058a411f34f0560289e9d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Dec 12, 2= 017 at 10:39 AM, Robert Weiner <rs= w@gnu.org> wrote= :
The doc string for select-window does not discuss the sometime n= eed to also set input focus to the selected window's frame when one wan= ts future input events to go there.=C2=A0 I would suggest adding this along= with a reference to=C2=A0select-frame-set-input-focus.

Even better might be to add select-frame-window w= hich 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 wind= ow.

=E2=80=8BThe same issue exist= s with save-selected-window except that it applies to the start selected wi= ndow rather than a new one.=C2=A0 Another macro, save-selected-frame-window= , would keep input from switching to another frame within its scope since t= his is not part of save-selected-window's behavior.

Bob

--001a114058a411f34f0560289e9d--