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#33871: 27.0.50; Revert Dired window saved in window configuration Date: Mon, 25 Mar 2024 10:41:08 +0100 Message-ID: <128b074a-b766-47eb-92ff-79814c900a06@gmx.at> References: <87bm59mglk.fsf@mail.linkov.net> <86sfsewvxr.fsf@mail.linkov.net> <9d741b43-e3bb-669b-b345-6b877c902b33@gmx.at> <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> 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="25536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 33871@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 25 16:59:12 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 1romjA-0006Pg-1f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Mar 2024 16:59:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1romj3-0002iH-7y; Mon, 25 Mar 2024 11:59: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 1romj1-0002i2-Fg for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 11:59:03 -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 1romj1-0005BF-65 for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 11:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1romj0-0003hi-9t for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2024 15:59: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.171138232314213 (code B ref 33871); Mon, 25 Mar 2024 15:59:02 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 25 Mar 2024 15:58:43 +0000 Original-Received: from localhost ([127.0.0.1]:35762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1romih-0003hB-85 for submit@debbugs.gnu.org; Mon, 25 Mar 2024 11:58:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1romif-0003gx-Cf for 33871@debbugs.gnu.org; Mon, 25 Mar 2024 11:58:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1711382316; x=1711987116; i=rudalics@gmx.at; bh=ZRFgNBWq8Qk3xzMkT21ss6vnC88FOB50NvD/aq5Twp4=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=h/rNrxT9D2T5477JXilvn66yba4lqH1mnhHEdnoqXOdhbu3Tl8xgij3I0008AAZA RV4W5oIrOaYZvypKKrJx5JbIvPLEp4vjEUANbJ4OgaaJHMdhnR6K14yZ4b44b0eRO 1hJ3j1AlTq7LSMPt29k1nQd9jkRWS8cm+dOju3qxVBIcWf3cmCIS5cJC8ksYlSEqm 34mGvSi2Poczr7MZbkRRK+pPmFky1nkTymdcO6ydgdmciJMpRJM7HyzQWxo9yOkLl O6FhTbCHRXfOd/Ofm6p/rFfY5KSoK1I7TObmQoIKvBcChleqzl0yuJLFJGztvEHcL 8aB96+0fA2Sq02f+qA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.240]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mr9G2-1scv0F32aE-00oEE9; Mon, 25 Mar 2024 10:41:09 +0100 Content-Language: en-US In-Reply-To: <86frwf8w4q.fsf@mail.linkov.net> X-Provags-ID: V03:K1:tX3gT63GbmqK1zn/TAZ7i/0of6458QsDQGxBDBnB1ZuuG+Ym4+v W2PQW7WfQtjmuSlUT3cqHswvDYdNSfLnnU5iMz+PvyUYSyotuApXU1XqNM4fcZGIW1VNgiG MEJOTeYmyDFsglBPtrN5QfxpOpEMcp9d3M9xyJOU0zhuKgAYMS/OQo33QKNkGiCNSXUZ0on Ceh2bmmzADzGVuLEvKcbQ== UI-OutboundReport: notjunk:1;M01:P0:AP/tUEdbAuk=;HvSq8K1kOkiwN6rArGIpya2imks /8cQyrLJ9Uv8j1RC9zMcpXc3HS19/Y8JY4EtoArSh4WfMp/UBKXmLqUFPQQOSZl0YeSYGgWbt aftrK7W/G/E0Os2KbotgR/lsDILgoLJ9DtXn0leCz92ocWHB+gUjUKS1/fswLFbAYIH1Avj8P xxhS02eZdq7JxymHvZ6NYYQ1Rp8+Wb/XAQK+472wfdPHVga/AT4roRTlg+zIeA7BJO/+kdpty T9ciW5uloYCBdiXca8RwqJR60+GHS2DSMbZFL5To8dfaQqLoQiHIYDcTutM1yS+uoYaQf8B7w jLLGuW5P0ZS067IZddfAscIRe5rxo8AgWvmRqXu/iaymmySe5IJ0w20yLlVMg82w91baOIX/k xV3JJR8xGh8dN34nfVBiW17yiyC0dmc0pKnV6ZWE98WpJGKEn9Ig4NeOgfabLbDEH7sBq+nyD vJ9hb2XCB6TqKgZ3s1MNi2UrBb2bpi86wEHAzgyOVu0+nseV67VwSxBK6FgiZ9IDulCsExNFf pv9NiGU9qiiBQ307eGXHYMquT8WKAiY7k7KDF+aBxOOtcz33fNH/EImrkdiZacKvtVDAFX0CE 9jkZGqfImaJuhw8x8I3EhuOLExUGm0ZBcO3iBfSo742V6E0XjBjZPY6ZbaW/4+GN6exweyySR sI4l4On9O/Xc7ucfYZjitOJIH4BNmnZi+vO/a2WzULEve7oEgDPhbiU0OGzMlsVdha6vS6ZC4 nDwVysmxLtyOUPw/HID12lv1MLcen/y7nUFaTShycx6kr9iRry1Sa4OxyboUmwjPPqMvS5iq 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:282050 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? >> 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? > 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'? martin