From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration Date: Mon, 25 Mar 2024 19:10:50 +0200 Organization: LINKOV.NET Message-ID: <86v85adzmd.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <86fsoaq4lo.fsf@mail.linkov.net> <86tucp7dbp.fsf@mail.linkov.net> <37e2129c-464f-7f0a-0870-f7360ca21dc3@gmx.at> <86zfw07tbw.fsf@mail.linkov.net> <96fd3170-e5d2-4d16-93ec-c6fff3efb787@gmx.at> <86wmr2w7to.fsf@mail.linkov.net> <3808f9f8-624a-449c-8572-085582395859@gmx.at> <86y1bffvya.fsf@mail.linkov.net> <8634skstio.fsf@mail.linkov.net> <86msqr79n8.fsf@mail.linkov.net> <532c59dc-59af-4454-b926-2f80fe711fe9@gmx.at> <86zfuq5jxj.fsf@mail.linkov.net> <5cf2b85e-9e24-4a7d-b175-ce140580df32@gmx.at> <86plvksv1e.fsf@mail.linkov.net> <578de52d-364b-4961-b4e2-7f91cdcaa0b9@gmx.at> <86frwf8w4q.fsf@mail.linkov.net> <128b074a-b766-47eb-92ff-79814c900a06@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40958"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 33871@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 25 18:21:27 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 1roo0l-000AUq-Ey for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Mar 2024 18:21:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roo0P-0001lA-LX; Mon, 25 Mar 2024 13:21:05 -0400 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 1roo0N-0001kz-HE for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 13:21:04 -0400 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 1roo0N-00031T-5J for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 13:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1roo0M-0006FE-2B for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2024 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33871 X-GNU-PR-Package: emacs Original-Received: via spool by 33871-submit@debbugs.gnu.org id=B33871.171138726023989 (code B ref 33871); Mon, 25 Mar 2024 17:21:02 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 25 Mar 2024 17:21:00 +0000 Original-Received: from localhost ([127.0.0.1]:36116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roo0K-0006Em-Ft for submit@debbugs.gnu.org; Mon, 25 Mar 2024 13:21:00 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:55751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roo0J-0006ES-Cg for 33871@debbugs.gnu.org; Mon, 25 Mar 2024 13:21:00 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 3D350240006; Mon, 25 Mar 2024 17:20:52 +0000 (UTC) In-Reply-To: <128b074a-b766-47eb-92ff-79814c900a06@gmx.at> (martin rudalics's message of "Mon, 25 Mar 2024 10:41:08 +0100") X-GND-Sasl: juri@linkov.net 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:282063 Archived-At: >> This was meant to denote a context inside a window. >> Then maybe a better prefix would be 'window-point-context'? > > Do we want to restrict this to 'point'? What about start or end > positions? It's impossible to keep window-start and window-end intact when text in the buffer changes. >>> IIUC the context is stored but not the function to restore the position >>> from the context. >> >> Indeed, there was an idea to store a function that restores point, but >> this might be problematic when saving such a function to the desktop file. > > How comes? Because a function is not writable. >> Therefore, the patch has two separate functions to save and restore context >> as mere strings and numbers. > >>>> And when the buffer is killed, there is no need >>>> to restore a context in the killed buffer. >>> >>> If you don't intend to restore the context from the file the buffer was >>> visiting. Are you sure you don't want to do that? >> >> After the buffer was killed? This doesn't seems necessary. > > Then why did we provide a facility to restore the point and start of a > window via 'window-restore-killed-buffer-windows'? 'window-restore-killed-buffer-windows' already restores point and start of a window, so there is no problem.