From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Let mode-line packages distinguish the selected-window Date: Sun, 27 Oct 2019 08:48:17 +0100 Message-ID: <87879675-7cf6-9daa-12b0-d5b9cb4c3813@gmx.at> References: <87blu3pqyc.fsf@bernoul.li> <83wocrtxl3.fsf@gnu.org> <9a34b0c1-149b-a850-db88-b9d7cb5c751e@gmx.at> <837e4qu6hj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="229643"; mail-complaints-to="usenet@blaine.gmane.org" Cc: jonas@bernoul.li, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 27 08:49:53 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iOdJB-000xYd-G1 for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2019 08:49:53 +0100 Original-Received: from localhost ([::1]:44388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOdJ3-0007A3-6O for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2019 03:49:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37288) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOdHg-00078h-M4 for emacs-devel@gnu.org; Sun, 27 Oct 2019 03:48:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOdHe-0004OO-Mf for emacs-devel@gnu.org; Sun, 27 Oct 2019 03:48:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:40415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOdHe-0004Nu-DW; Sun, 27 Oct 2019 03:48:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572162496; bh=qmqmrAJWonlMV49XynuUrryjlKGqvNfePQaiaJOr7qU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Y0JJN5pBYTEL8CW/UZoMQr8zACW3NXgnN2min5ipF9+Vl45mkRVKj/PYfptt0sXqg o4QGAcRJwjzVZ5TUMvWJC0zAsnGce/E3IQruu7IxtC0Z2csjrnYA2Kqwql71lQIQjc CFu+D6pfcc48ms9Vn/7j7z9QpGgM1XgmdvA8nQTo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.48]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MKbgE-1ihG4C09TY-00Ktva; Sun, 27 Oct 2019 08:48:16 +0100 In-Reply-To: <837e4qu6hj.fsf@gnu.org> Content-Language: de-AT X-Provags-ID: V03:K1:WAfMAzxn7QQzedhAb6sZVKhRYv4BL17zXqgS9J5CoY1onPWdjiE 6Iv+KxYoILGDtizTY6CxE0EzThHDto6XNue2EkBr3VWfbjHktnnPGuDttpxGxf0mgdOv7pZ 7pFcVGmHX1vFtvLMi/nBPAlekbYHikihrkculWtHDipDsfmRPTm0ZkP6JeJjUb+R76Gw66Z aOodb0HFg3wZb5fpmE/ww== X-UI-Out-Filterresults: notjunk:1;V03:K0:ElQMO2RU/r4=:3Wv0Z7FObti+39iGVkM0Fx gInW6Ep4bsGqOUW/4qfeRbPH3Y/1aDviYm9iGO9XOIJJXiYXQ0+6/1pDawJSFwjXV0Y1wnITI tEMbMsgQV89YG+sOsZSrQrwMpK3wRaRU8mk59qgqSq086uUIHBHiOOqmdCRjZJIQAdFZ0Eobn 7qrlwF5rRmDUUS93nU3jVCb433lhJdE0sNwOmxoNFU41rb1voGEylfMZn2EIlfv/Edq7fp78r 8dA6klfTtynwt3hT99hzzKZ2lZKlCHgwOtrCHQQZ6UAeIORNYmuvMfvPmUfhGMFocV5JWA+ve Y2L8rMSm+QLvyKbhlNk7yV3ZRvdtpH8t1dajPE9u9iFOudqR+f2hDQvn7N/pNxmsgyK8NcRVh sKKN+hMIxQ64wO9+UALNFt4mtPcueylF/vETYvQg3Yd9W2n3BMoIhcfQYTUCZoV+Bpfv/UhwY leHT+eQTCuyR7weteb5e2+dknR01Uhj8ByQMaWNDiRPwZUeGQdOy/+1Ss2fVjkAY+xI/PK22a bovR5yagrZAO/tpLe/ZVtsJW7sJUBlvBwlk/hSQ1dw50+F26KNnCHaEDHRKPhhFfUW4Q4N5oG ME7tZxMHe4tz2WCAr+F4QMsT3zvOgxl669z24aapYUwAiSyb6EdJtUBcrqgqm9Mh1+gwQigpN /7/G+p39FbVojNNLnZplM6Hvx3fY01YvLTVZq0VGT4oOEw++r1SZgRcAMgXh7x79nfIeNB/GP dHRBIZOsRJUZJYSNgsloEWOI8WP1xEOF9yknNAvduwsNamuotS6naxV6kX3m7YO/4WnDqq0V X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:241507 Archived-At: > If we are going to add this feature as a C primitive, it should > ideally free the Lisp programmers from jumping through any additional > hoops, IMO. So the above should be done in C instead, before > returning the value. If some applications may want the minibuffer > window and others won't, This is for applications that want to know the "usually" selected window while the minibuffer window is selected. It's still unclear to me what 'minibuffer-selected-window' should really return in the first place. Its doc-string Return window selected just before minibuffer window was selected. is misleading because, while the minibuffer is active, I always can select a window that is not minibuf_selected_window and then select the minibuffer window again. > we should make the function accept an > optional argument to select between these two alternatives. The current version would be for users to evaluate right now. If it suits their needs, we can always provide it as a primitive. martin