From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69093: window-state-put doesn't update current buffer Date: Wed, 14 Feb 2024 10:12:04 +0100 Message-ID: <2387160a-717f-4164-a0ad-cd831cabd60f@gmx.at> References: <86il2s6cva.fsf@mail.linkov.net> Reply-To: martin rudalics 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="36948"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Juri Linkov , 69093@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 14 10:13:00 2024 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 1raBK7-0009Qx-7S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Feb 2024 10:12:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raBJu-0005aw-U7; Wed, 14 Feb 2024 04:12:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raBJt-0005ag-2V for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 04:12:45 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raBJs-0003YU-RX for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 04:12:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raBKA-0003kU-6S for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 04:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Feb 2024 09:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69093 X-GNU-PR-Package: emacs Original-Received: via spool by 69093-submit@debbugs.gnu.org id=B69093.170790195314361 (code B ref 69093); Wed, 14 Feb 2024 09:13:02 +0000 Original-Received: (at 69093) by debbugs.gnu.org; 14 Feb 2024 09:12:33 +0000 Original-Received: from localhost ([127.0.0.1]:50397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raBJg-0003jZ-PI for submit@debbugs.gnu.org; Wed, 14 Feb 2024 04:12:33 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:43177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raBJe-0003jF-Bo for 69093@debbugs.gnu.org; Wed, 14 Feb 2024 04:12:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1707901925; x=1708506725; i=rudalics@gmx.at; bh=HCudOsX7T76S68OZyHF+GjmyE8rCVLb8SgQYgPrH4s4=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=kv4z0AbtdpWVdG4Zg1QezkilXn5FMYzm3ALxqIMhM1484Fcpo0YEUZ1rNamF8EVh jn/Xeq5pP1x3kVEVPVutWcqUM22VlV7l+KBfOE4gZGVSH8En+qy0VH/zfS7r2pD/B UP1jJ4ROR2tkZWAnpbmU0Jc8WipapmTYCIZHSA0zfeE3zezW/xmzcuV0sCgQJpABJ nEbEs11NkRbi0D/6XDEPk4M8wm0HdqiYFEROo9VM78jU0qf3x7SJp+JmvEM1b4ySF o/EX6PX7XAgtGMC8CWUEIWVFe6lk/vaU11FUhfmi7vaVAQcfN7n6HGekkRDPmh1Kt q8tK7DVxYdS/7kmAzg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.187]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOiDX-1rKbRC2N8Z-00QBpz; Wed, 14 Feb 2024 10:12:05 +0100 Content-Language: en-US In-Reply-To: <86il2s6cva.fsf@mail.linkov.net> X-Provags-ID: V03:K1:o1bTYK1QPQquh9uRhwqqokMQbAW/f44W1FAj9X3ABB/D0/Fa3T8 3ct7Wso58ueM/s8w56oG5RDjTbdyVZhBWZzL5wmxhVna7GolsZ7oR6UO0tc/ytRTCFbyeM8 dc5WtkrvneRzpTj+fs6izxLuL/neDKK9eMhQmWJbbRnspMVwflAILaO+ht+zzcoBLPW6DIh 8c4y6g/0TLNH254/ZlrzA== UI-OutboundReport: notjunk:1;M01:P0:6Xe0LvYepKs=;FVNTcuK+e06Nw8YAikGIsF2MlJ6 eAVcJhFJkcS/ck00UZEtDD8lkBRCnNSNrZiJOquNxDa+MdlYJjeNmmmRSZuNrjCBanmN0jkPT YgtpZlWTeEdwB5bobS5vdp7S4LGX52ClipR4BRKbqEddca1BlMAMYSI04/jWimSG0NNUUgpJv NfPxIlsHyxt3xZ8/efKG0IuJ6tc+Xub1/w9kd6+g4OmfWKF45PUVWPBhV61pXmMgZyKme4l42 ThAKzK1wfDXhRgp6hajqMb1CV+baBmMgssXvpnrWuxPdLAdCNvZfl+3j1jEQQurJFd9QzxEel P9gWgLfwutv7EDqd9hEsudLnJdPVF/iFhZOIeUDkigDdebPtA+TVWT5T4GbRSFwraxGARP/Tq rxJsAzmKk6rOBpYX59GKfTzcSvJWjTdb7Bv5Dpw73pUyFukzsm2OWHddMSQTbVn97rZXdA5GN MviK1MOtqhdnqYGI3y7INguiPtd62RArJ6j0raotxngnWQ+15x9snb6H63ksMbseIYdskarD3 j5ZdcKcwqsBCC/ECmT8lTBHmyL17dKs72+45tU6s9ror/yp49QPztJG5ywnItVRxr9xyQK8h2 TJWGPXyUqYfmepVNXKohug0Aaoc9nU8AKEu729nEQ1VYy7I/I6p8RP0fXGgz2YP2LrWfPIpTW RDwdXzatSHb8KUHfhNhK6Z/1rhjKb9pC/GrlRjEBpAJK+D5pPb9U+L4+yX+CQVHnz7z/cT4Ik MPsOk5SitdY5ynn4Pyit1CAohZObPZJ4PyDbFXOx0TOhSVx9+9fErzgJqWMIKq3SNRIiHcZW 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279999 Archived-At: > Martin, could you help to understand what is missing in > 'window-state-put' that it doesn't set the current buffer > correctly like 'set-window-configuration' does. The "current buffer" is not part of the state of a window. It is part of a more global state. Have a look at frameset.el which does at some time "Restore selected frame, buffer and point." As for what 'set-window-configuration' additionally does, have a look at 'current-window-configuration' where you can see that besides XSETBUFFER (data->f_current_buffer, current_buffer); it also saves the selected frame, scroll and selected windows of that frame's minibuffer or the frame that should receive input focus. martin