From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#47300: delete-window to select window with same position Date: Wed, 19 May 2021 19:41:02 +0200 Message-ID: <0c239adb-e9d5-1fe9-4c4c-2da1603002f7@gmx.at> References: <87a6qw43gg.fsf@mail.linkov.net> <87pmxodrmq.fsf@gnus.org> <7f870f9b-95ad-6b5d-82aa-1bcfe5cc880a@gmx.at> <87fsyk0w92.fsf@mail.linkov.net> <2ec3b911-4fb1-4b13-a5b8-28278a5c43ba@gmx.at> <87h7iyzvh5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 47300@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 19:42:30 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljQDG-0008Ci-He for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 19:42:30 +0200 Original-Received: from localhost ([::1]:34996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljQDF-0006Hu-KI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 13:42:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljQCv-0006H7-PH for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 13:42:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljQCn-0003ip-Nf for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 13:42:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljQCn-0002BZ-Ko for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 13:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47300-submit@debbugs.gnu.org id=B47300.16214460738334 (code B ref 47300); Wed, 19 May 2021 17:42:01 +0000 Original-Received: (at 47300) by debbugs.gnu.org; 19 May 2021 17:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:60633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljQC1-0002AM-Da for submit@debbugs.gnu.org; Wed, 19 May 2021 13:41:13 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:43979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljQBz-0002A8-OQ for 47300@debbugs.gnu.org; Wed, 19 May 2021 13:41:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621446065; bh=y9PSFNR3iRWute1GO64Wm0IY06ZO+wwggjxEQUUulZ4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=SYjD8b/RkgflakAfvPkk/47DjgV8QOL2QkfqKvUhURRuhOdKdd2Qi9FcpMTy+4iZT RClUI5tGJrti4eIOmOrYLqGp1MluaYKLRokTxq50aF+J8dRpTAaljwogK2Ofr26Syi 4LAzRMH3hgYi7tqqr1cscVrxBf2QcyI3oEPB3jXM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.159]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MmlXK-1l12kZ0UPW-00jpWM; Wed, 19 May 2021 19:41:05 +0200 In-Reply-To: <87h7iyzvh5.fsf@mail.linkov.net> Content-Language: en-US X-Provags-ID: V03:K1:kwwraGhavdgZCw3UkAf4toHhr/cfeibaFbrE26Gemlr6hojqwZ9 BPIBEMmKBc1FHXUPhAYvXP2BgCcDYPyA6kdMZduVL0kwY+dpuacNApK5FnRd4J0oJAz4g+Y pKINZRJdSDTex2F5qCNxZnHVX3mwx5czPzeGvVBsMAiA6rBfMrwzlQ6Ys51fQx/S5hMsz8j J+VzMwX3gwidfthY3FW1w== X-UI-Out-Filterresults: notjunk:1;V03:K0:zKgnA3Ffzec=:kQ3hqTXyWQi2xIXco8hdPZ OUtvnn2zlMnqeEs0EKpxdVTVpTRuOzqcyKLUx3FTzKly3ZfgsSsGsiLiySFaFKPOILzzPb0cO AIcS1Ho7lk1Ntq0qt2H7Ui7LtwZ/+VgwHlxfHbJ61IH2v5VsTd9j7xbvP4EcPzzHX39ACj+AV 1s+9p/lRNowriOUN0kZcTAEMuFNEZtGnJU/DmgEUVhJShC/Q0FozP53hIWhqFyKUi2yhwW/wN 4kfOJaFh+shTvAl5wuDuomQjO4f0oSBiwVZiRR91RL5NrI5pHFy3vD2jHp+K6+vMUxI6t28BX +HPEH09KKSIwGbwu9Uwhhspkh89BXA9CJWIt0kNQX5xcOl1zuIEswwwFET0R/3oPyHe5EeJHa YW0JIf73IKibQ4aJlADAkkcwB4QRylFvLcalAkP4d9TbYvugxiwOJW6TmzxrUlO/7A5vHOK2j OaP9hgdbf+KgHJzVftgG6fVHsf8oQRTrQYcerMomoIs1SCiHDDtOat1SOxOaSfS3tW+VdDrMA Ghm7sSF7DcV8llfDOpTwDZ5CcRkCAX6wkjcuOO8BY+AIB+hIWf70WFa7hj03D/RGWqB9er9Ga Qh3/4xeaAedoeqo9Nw6cs2sOhUUxtDu8Gdm3hNxLZ9INryLrPvDUTExXupT2wz7o2pCWBkrxw FZjmD+M6CmndgQzsmcmJtWClTblm7koh7uLGq2smkhXAVVwd8BgaWyUzq1YMYzPoBNZoe/aa/ C5yxhDLcJh1m4BBbsefncMwqlcac55ScrgttAMgyrzY+ZoeK2dqy/B4dXhiIJFAm3axCGSZB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206911 Archived-At: > It's fine to call it with a FRAME argument. The problem is > how to write such a function that will find the window that > gets the screen space previously owned by the deleted window. > Could you recommend the right direction? Maybe this window that > gets the screen space is just the parent of the deleted window? No. You probably have to save the old position of the deleted window's point in frame coordinates and have the function that selects the new window use the window that is now at that frame position. The function would be called instead of the currently hard-coded mru_window = call1 (Qget_mru_window, frame); and the call is fairly safe because the frame's first window has been already selected at that time. martin