Received: (at 33871) by debbugs.gnu.org; 22 Feb 2022 17:28:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 22 12:28:03 2022 Received: from localhost ([127.0.0.1]:42545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nMYxG-0003tb-N7 for submit <at> debbugs.gnu.org; Tue, 22 Feb 2022 12:28:03 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:64369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nMYxD-0003sV-7e for 33871 <at> debbugs.gnu.org; Tue, 22 Feb 2022 12:27:59 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id DB15940009; Tue, 22 Feb 2022 17:27:50 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> <86fsoezsw3.fsf@HIDDEN> <ef43cbf4-7a55-8252-045c-c284a095d3d8@HIDDEN> <86sfsewvxr.fsf@HIDDEN> <9d741b43-e3bb-669b-b345-6b877c902b33@HIDDEN> Date: Tue, 22 Feb 2022 19:14:27 +0200 In-Reply-To: <9d741b43-e3bb-669b-b345-6b877c902b33@HIDDEN> (martin rudalics's message of "Mon, 21 Feb 2022 10:07:15 +0100") Message-ID: <86fsoaq4lo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >>> How would 'save-window-excursion' handle the case of a dired buffer that >>> gets reverted while its FORMS are run? >> >> 'dired-goto-file' will restore dired-positions after 'save-window-excursion'. > > Who calculated those dired-positions and who calls 'dired-goto-file' to > restore them? Like in bug#54038 (about having access to windows in window configurations), the problem is that there is no way to update and even peek inside a window configuration. In bug#54038 the cleanup function can't tell if a window is still live in a window configuration. And here 'dired-revert' can't update windows saved in a window configuration. 'dired-save-positions' goes to great lengths to employ get-buffer-window-list, and walk-windows with window-prev-buffers to update the Dired buffer even in window-prev-buffers. And 'dired-restore-positions' with the same number of lines tries to restore all prev-buffers. But still 'dired-revert' fails to update the Dired buffer in window configurations saved in tabs, or in winner.el, or in 'C-x r w' (window-configuration-to-register), etc. A possible solution would be to add two hooks: 1. hook before finishing 'current-window-configuration' that will add all windows to some variable that the cleanup function could check in bug#54038. This is like 'dired-save-positions'. 2. hook after calling 'set-window-configuration' that will restore previous positions. This is like 'dired-restore-positions' that uses 'dired-goto-file'.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 21 Feb 2022 09:07:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 21 04:07:27 2022 Received: from localhost ([127.0.0.1]:35011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nM4fH-0000xc-6B for submit <at> debbugs.gnu.org; Mon, 21 Feb 2022 04:07:27 -0500 Received: from mout.gmx.net ([212.227.17.20]:51255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nM4fF-0000xM-Pb for 33871 <at> debbugs.gnu.org; Mon, 21 Feb 2022 04:07:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645434438; bh=7r/CbLA8IwkBnX1X9rQz0EhIEps+H0hIhmIY6lYuHks=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Sfj8pyjJZyc1j+i4nu63ctIUXEnymv1e8nPSmEw9VY5K5VEBLrQVOvSSOTWBUQUMr rMM8v9aDLFNrJDDp1rBMKsanAt4dgOp1Eujz6Q//jtz0lPYsNTojxn+XreWPNmnV17 6HFBguOnGEDLKyZRSHMyz8kqA8t0wwUeZcfaFSZo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([212.95.5.226]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M2f5T-1nOYIr2rgV-0049Zi; Mon, 21 Feb 2022 10:07:18 +0100 Message-ID: <9d741b43-e3bb-669b-b345-6b877c902b33@HIDDEN> Date: Mon, 21 Feb 2022 10:07:15 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> <86fsoezsw3.fsf@HIDDEN> <ef43cbf4-7a55-8252-045c-c284a095d3d8@HIDDEN> <86sfsewvxr.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86sfsewvxr.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Hh9PxlE7c6RDaqe/LjDpzkqjUnPJRBbT6lPcY2zIzcnJ5PyE2rO tnu5PCQI5ElTQB2enpJsT8m90KN0TGiBxMKbVLE+pTSsIrXhnFQkwW1rV40sxfjaM7LSTcb WAvxrrj7MYpjzfQ3cWjrd+gUQvp1zXaK2xf0IQOagGvZwbrIRAUhlizjvq7Cszy30+yCdIC BvgBTqJC/WZofVf6RMznw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:lx8/6Qc/Cgs=:LjOEMDoxsv2ojrZWmiQX+A t5jeZkbm0hbdOv1eUJZdBDiBJ/YK4nISnHiFD0UNADso6C2KsKPO5zkoCtbBOSRNwkypyX9rf wtn+wsUtUPotUd/szmOg+nz55jJ+1GW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org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> How would 'save-window-excursion' handle the case of a dired buffer that >> gets reverted while its FORMS are run? > > 'dired-goto-file' will restore dired-positions after 'save-window-excursion'. Who calculated those dired-positions and who calls 'dired-goto-file' to restore them? martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 20 Feb 2022 18:59:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 20 13:59:01 2022 Received: from localhost ([127.0.0.1]:33720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nLrQD-0004nn-2t for submit <at> debbugs.gnu.org; Sun, 20 Feb 2022 13:59:01 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nLrQ6-0004nN-Hg for 33871 <at> debbugs.gnu.org; Sun, 20 Feb 2022 13:58:59 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id 9786CE0009; Sun, 20 Feb 2022 18:58:46 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> <86fsoezsw3.fsf@HIDDEN> <ef43cbf4-7a55-8252-045c-c284a095d3d8@HIDDEN> Date: Sun, 20 Feb 2022 20:40:04 +0200 In-Reply-To: <ef43cbf4-7a55-8252-045c-c284a095d3d8@HIDDEN> (martin rudalics's message of "Sat, 19 Feb 2022 18:22:02 +0100") Message-ID: <86sfsewvxr.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> I don't understand the problem. 'dired-goto-file' can go to the file >> even after a directory gets reverted. > > How would 'save-window-excursion' handle the case of a dired buffer that > gets reverted while its FORMS are run? 'dired-goto-file' will restore dired-positions after 'save-window-excursion'.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 19 Feb 2022 17:22:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 19 12:22:13 2022 Received: from localhost ([127.0.0.1]:58663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nLTQz-00036J-3H for submit <at> debbugs.gnu.org; Sat, 19 Feb 2022 12:22:13 -0500 Received: from mout.gmx.net ([212.227.17.21]:54813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nLTQw-000364-Gb for 33871 <at> debbugs.gnu.org; Sat, 19 Feb 2022 12:22:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645291324; bh=G4oe+eQdGVeU7RwqZk0lZOe+15rhqBiAjXrOLygdYZg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=AIqZIT81ckdy5oSlnO9Z5m0R190esLDhKXIFqDgUSSLGYJ987PUNm95C9eg29ShRq Ef6KTUdEbfNj0B4fEG3bFKZdpFZQwUalNc31fW7mIU1ZspXrz9nFrtWy+5IPzgbUhO Sb3CI8ukaSCejxpLoXjnfMizEAYml6Egq7l+/iB4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([46.125.249.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mg6Zq-1nuHLO04AY-00hcK6; Sat, 19 Feb 2022 18:22:04 +0100 Message-ID: <ef43cbf4-7a55-8252-045c-c284a095d3d8@HIDDEN> Date: Sat, 19 Feb 2022 18:22:02 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> <86fsoezsw3.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86fsoezsw3.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:A/xiwWib/Z545nWD5kwXGE50clhfnbV2pyLed3y1ejnHCFTb64U fHiHeXuB2iGJXqneFdVJtuXDJgbBnJmf/XZqYA9XivwF7/ydPVZt4rcZFGRvcIRez7ULpdT 4JtROrloyeJGi6tBSj1QQf8keX1CGH7twA3cFHgcNQk5M6PEdo/1pvlkSTcZgEOYdnIYMBQ bzC0EzHrZ9LImo2AMM+Xw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4sZ5txCS9rs=:JkOM86CtoJv/b83a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4edxJpmsIfzPGY+1e8+O6BwKnWUZduzT3Oi1xX6J pmb3Vo3RNu0tNM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > I don't understand the problem. 'dired-goto-file' can go to the file > even after a directory gets reverted. How would 'save-window-excursion' handle the case of a dired buffer that gets reverted while its FORMS are run? martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 19 Feb 2022 17:08:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 19 12:08:52 2022 Received: from localhost ([127.0.0.1]:58653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nLTE4-0002lm-Jl for submit <at> debbugs.gnu.org; Sat, 19 Feb 2022 12:08:52 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:46653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nLTE3-0002lZ-1Z for 33871 <at> debbugs.gnu.org; Sat, 19 Feb 2022 12:08:51 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id B8DC5200006; Sat, 19 Feb 2022 17:08:42 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> Date: Sat, 19 Feb 2022 19:08:12 +0200 In-Reply-To: <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> (martin rudalics's message of "Sat, 19 Feb 2022 10:37:40 +0100") Message-ID: <86fsoezsw3.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> (when pos >> (with-selected-window w >> (dired-goto-file (nth 0 pos))) >> (set-window-start w (nth 1 pos)) >> (set-window-point w (nth 2 pos)))))))) > > Shouldn't you call 'dired-goto-file' last here? Otherwise, wouldn't > 'set-window-point' override it? Then probably 'set-window-point' is not needed. > And how would you handle the general case where a directory gets > reverted in between saving and restoring a window configuration? If you > don't want to use timestamps, saving and restoring window configurations > would have to provide some special hooks and data structures for storing > such extra information. I don't understand the problem. 'dired-goto-file' can go to the file even after a directory gets reverted.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 19 Feb 2022 09:37:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 19 04:37:52 2022 Received: from localhost ([127.0.0.1]:56894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nLMBc-0000sX-2x for submit <at> debbugs.gnu.org; Sat, 19 Feb 2022 04:37:52 -0500 Received: from mout.gmx.net ([212.227.17.20]:58717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nLMBZ-0000sK-RA for 33871 <at> debbugs.gnu.org; Sat, 19 Feb 2022 04:37:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645263462; bh=5Za/+PTQI4iy8i52axwxAStBj8a/dUhSFGq9fE1GJsw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=k7fAJGZTQzC8fHmo0hSp8b+lagL9JksEw6Ggs7A7xgGrVdLyxsWrrG+lk9b17QtBY 1IdFtPGvhm9/YMXRXUtQkYQaBoW06fL2CTDWR9PYKrdawzU4vHLuW8HRLBCGOMlRKW t+V5+HxWKgRQ+XdZTE5tguWSl2cjcBnsRWVQax8Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([46.125.249.118]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMGRK-1nefz635gU-00JLBd; Sat, 19 Feb 2022 10:37:42 +0100 Message-ID: <9df28298-fedc-0cfe-7243-c04868115e90@HIDDEN> Date: Sat, 19 Feb 2022 10:37:40 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> <86fsohmqn9.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86fsohmqn9.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:7071T63a70guAY9s+GbnoXKaG4e9bXAdBPSnklxfa2ajDkV1r92 upZYNFE1X2xdwsiw1N1/K1fhuLRiM3b1bg+yFF7k9/3qTgylmN5u9knqfncnWeztlvE9qVA uN3oHmS7veRZzdBR4z7v6SxJSHEQqxEyJKR5MzIWBHEspl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VX8SuXaBBvVjVwP WodwGtIFB7DrDv53INVEs2vQFWT1mPOLN7qa0ETZHNgx97cXs+P20ZtBi05RSi53ZTG9p5rFB s3fhY6TrzHp2c+k/9HV5EIqKFazDOCrSdC3w/9h2bPXDrrN8MlQ0WOyPp2iohKUbvEcc+YiaU 49x43HvYML61iQ= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > (when pos > (with-selected-window w > (dired-goto-file (nth 0 pos))) > (set-window-start w (nth 1 pos)) > (set-window-point w (nth 2 pos)))))))) Shouldn't you call 'dired-goto-file' last here? Otherwise, wouldn't 'set-window-point' override it? And how would you handle the general case where a directory gets reverted in between saving and restoring a window configuration? If you don't want to use timestamps, saving and restoring window configurations would have to provide some special hooks and data structures for storing such extra information. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 17 Feb 2022 17:48:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 17 12:48:27 2022 Received: from localhost ([127.0.0.1]:52636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nKktH-0007TM-9V for submit <at> debbugs.gnu.org; Thu, 17 Feb 2022 12:48:27 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nKktD-0007T4-DP for 33871 <at> debbugs.gnu.org; Thu, 17 Feb 2022 12:48:25 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id AD23AE0006; Thu, 17 Feb 2022 17:48:15 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> Date: Thu, 17 Feb 2022 19:28:18 +0200 In-Reply-To: <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> (martin rudalics's message of "Thu, 17 Feb 2022 11:05:56 +0100") Message-ID: <86fsohmqn9.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> Instead of (goto-char p-m), after (set-window-configuration w-c) >> something like this should be performed: >> >> (dired-goto-file (car (cdr (assoc (current-buffer) >> (window-parameter nil 'dired-positions))))) > > Once more: Your scenario is > > (progn (dired "/tmp") (dired-next-line 1) > (split-window) (other-window 1) > (dired "/tmp") (dired-next-line 2) > (let ((w-c (current-window-configuration)) > (p-m (point-marker))) > (view-emacs-todo) (delete-other-windows) > (with-current-buffer (get-buffer "tmp") > (revert-buffer)) > (set-window-configuration w-c) > (goto-char p-m))) > > But this cannot work with dired buffers because they are reverted in a > special way that does not care about 'window-point' and the like. This > means that the value of 'point-marker' you saved in p-m has become just > meaningless after the 'revert-buffer' call. > > Basically, this is a hard problem we'll probably never be able to solve > satisfactorily. But this works fine: (progn (dired "/tmp") (dired-next-line 1) (split-window) (other-window 1) (dired "/tmp") (dired-next-line 2) (walk-windows (lambda (w) (set-window-parameter w 'dired-positions (list (with-selected-window w (dired-get-filename nil t)) (window-start w) (window-point w))))) (let ((w-c (current-window-configuration))) (view-emacs-todo) (delete-other-windows) (with-current-buffer (get-buffer "tmp") (revert-buffer)) (set-window-configuration w-c) (walk-windows (lambda (w) (let ((pos (window-parameter w 'dired-positions))) (when pos (with-selected-window w (dired-goto-file (nth 0 pos))) (set-window-start w (nth 1 pos)) (set-window-point w (nth 2 pos)))))))) > We could handle 'window-point' separately when saving and restoring > window configurations and the window's buffer is a dired buffer. For > example, 'dired-revert' could call a function 'window-revert-timestamp' > to store the current time of the revert operation for this window and > 'current-window-configuration' (and 'window-state-get') would store > their current time stamp in the configuration (or state). Then > 'set-window-configuration' (and 'window-state-put') could check whether > a window's revert time stamp is larger than the time stamp stored in the > configuration and not set point for that window when the revert time > stamp is later. Is it worth the hassle? I think it's not worth the hassle. The above solution is simpler.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 17 Feb 2022 10:06:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 17 05:06:07 2022 Received: from localhost ([127.0.0.1]:50210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nKdfr-0002gI-AK for submit <at> debbugs.gnu.org; Thu, 17 Feb 2022 05:06:07 -0500 Received: from mout.gmx.net ([212.227.17.22]:53643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nKdfp-0002fn-3X for 33871 <at> debbugs.gnu.org; Thu, 17 Feb 2022 05:06:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645092358; bh=2oJBv9JX9cprdscp80hcmFJoE7vWWkjFfFFKW05pANU=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=AbfeQqZMIviLCY28Ir331IhaDFbVDrH3Daht1lOFHcHAahv4KUvYSm5jA+hzWuhd8 5El16LuewIbmE82GUoGYM8FliSbu94CEcLr9DLcXPG4wIq4vLYkQ63u/nh7vLGihQt QZNWbn0TuHaag6dK07ikjKon1/7e/aCknHoXRMvw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([213.142.96.55]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXXyJ-1nlw0P0oNb-00YvFY; Thu, 17 Feb 2022 11:05:58 +0100 Message-ID: <1830e7af-27a8-ac7f-ba6f-fa2006139208@HIDDEN> Date: Thu, 17 Feb 2022 11:05:56 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> <86sfsi29yc.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86sfsi29yc.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:hRgxKdYGonuWLOeiHzzPBluYobKNZz19I4ZsnqcnzR6CjiK92wY FkxPuh6vDe9ThdX1lVwyEGZHLtHGcsDVhLdJjfT4g6EhfWv3S+C0H7D3kbqYYA6gHoVwlzB 0tjEyH5r+w9LPaMPQ12fcA9w7hnm1WHJ3sHMLxCqTRlyL0poT2HpIHKOea3H90cl6AoCA66 lggnvMFPJmq5YiFupe8MA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:kB719ISav2o=:HYD9LKnK/lPh0RivuKa71l sGyQ6BHsGh8HwRQz9NILmEJ5zi1JKQPFX44409XibuIgcpdO5UVcopcwp3O7QDdGtOkXx3Ssd 34j6MS67ODqptdj244LWlPGBYLSh8kBas+pUEIeVdzO3PLB9bOg36mDMzuoKdbtGjuj7SXq86 x66D101sJeZFCqacYKdOc8+z1iQq6VpMtdAlea9RHqyNZy0PmXd4kw1ytfuInScHtQXNCmKaY EGArt/KY0rQM/ql85DrTarvWt0vlw98Cy97bFWisCv+RCBaDnXb38KcVvERZZ08mGuo+ig09H sm5nXJgV7648I5sq6W6UnqXv4eXrYtfcH6NmLhkE98hQdmX3QLh9RuyJ5Nkf2r+62tOYp0INO +dJ/6vNr3CmzyZfA9SfJh7DuOOdY1oASRwdTteM0EkzsXWKEo194JxlM7oMI3BH/WxPLzRAL2 TvaF2IkabnHOtb7Hph8HKCXPu7z6Xb3u/n1nHpGUp2oH4h7SQiS8HnQNtKs9vH7kICWts2IQx naKrqEGFQ/W7iy29afiBkhXGw4OFtMIAwYLYgL5ld8zG6s8KlwLueld7bKxp2nblcxmWCFISv qtkEh8IOhmc3PCHiSb64TsQKIlcqxTFlF9mm6YMpZ1krgYr8447Erw+LKSnz3YpGti1jZ3LRc pTdacPf7/ewUkH/Ov2potG1Qd1jhq16Emz59iQ50qJSe3gCAhcvCjCyf3sy/8cIG4YU2a3Ppf UDmhcwRKRWTDV/FNDA7AUM32XRoTmNIJjHVaCZB0cGmbC+fEbFY/+IgF6ZlenodPPbEEYd4Ci jkHbevm/r8ZArAmjCWAIYwJYgk/fxDg7gsfjiqTKcFcAzEgltqgW4HIGrBuf5tA8zbCCkI82R 5jKhiGxio6ws7Dh+aUK9l8dsC0KrWk9BXXHlS6Dl1I32c+MBH3we6RvhqIhtWlKKJqU1iEAsr Qiz/eHv4YjeZ2cS4y1INqL4/WbVdpxdA5BadsaDR1+4N3hHVxkA5zw7inP9nkWht6bWf6Euz9 R9AG14nG298dSUfJVyNPXfhhfIbiqxuJ3glgP6vrzMYnMk5x21xCTB/8EFF/A2tYM+HJ/tgeE 1A2Vxatqlwji3U= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Instead of (goto-char p-m), after (set-window-configuration w-c) > something like this should be performed: > > (dired-goto-file (car (cdr (assoc (current-buffer) > (window-parameter nil 'dired-positions))))) Once more: Your scenario is (progn (dired "/tmp") (dired-next-line 1) (split-window) (other-window 1) (dired "/tmp") (dired-next-line 2) (let ((w-c (current-window-configuration)) (p-m (point-marker))) (view-emacs-todo) (delete-other-windows) (with-current-buffer (get-buffer "tmp") (revert-buffer)) (set-window-configuration w-c) (goto-char p-m))) But this cannot work with dired buffers because they are reverted in a special way that does not care about 'window-point' and the like. This means that the value of 'point-marker' you saved in p-m has become just meaningless after the 'revert-buffer' call. Basically, this is a hard problem we'll probably never be able to solve satisfactorily. We could handle 'window-point' separately when saving and restoring window configurations and the window's buffer is a dired buffer. For example, 'dired-revert' could call a function 'window-revert-timestamp' to store the current time of the revert operation for this window and 'current-window-configuration' (and 'window-state-get') would store their current time stamp in the configuration (or state). Then 'set-window-configuration' (and 'window-state-put') could check whether a window's revert time stamp is larger than the time stamp stored in the configuration and not set point for that window when the revert time stamp is later. Is it worth the hassle? martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 16 Feb 2022 18:44:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 16 13:44:51 2022 Received: from localhost ([127.0.0.1]:49434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nKPII-00063O-Q6 for submit <at> debbugs.gnu.org; Wed, 16 Feb 2022 13:44:50 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:52195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nKPIH-00062k-2P for 33871 <at> debbugs.gnu.org; Wed, 16 Feb 2022 13:44:49 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id 80F611BF206; Wed, 16 Feb 2022 18:44:41 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> Date: Wed, 16 Feb 2022 20:34:35 +0200 In-Reply-To: <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> (martin rudalics's message of "Wed, 16 Feb 2022 09:50:31 +0100") Message-ID: <86sfsi29yc.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> (set-window-parameter window 'dired-positions >> '((#<buffer *dired-1*> dired-file-1 window-point-1) >> (#<buffer *dired-2*> dired-file-2 window-point-2) >> ...)) > > Something like that. But I still fail to see what these lines are > supposed to accomplish in your scenario: > > (set-window-configuration w-c) > (goto-char p-m))) > > What is it 'dired-restore-positions' does not handle here? IIUC your > lines mangle everything it has done. Instead of (goto-char p-m), after (set-window-configuration w-c) something like this should be performed: (dired-goto-file (car (cdr (assoc (current-buffer) (window-parameter nil 'dired-positions)))))
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 16 Feb 2022 08:50:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 16 03:50:42 2022 Received: from localhost ([127.0.0.1]:47348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nKG1J-00061Y-Rs for submit <at> debbugs.gnu.org; Wed, 16 Feb 2022 03:50:42 -0500 Received: from mout.gmx.net ([212.227.17.20]:48563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nKG1H-00061H-Mn for 33871 <at> debbugs.gnu.org; Wed, 16 Feb 2022 03:50:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645001433; bh=0Jb6GfnNeNM+M7RchI2f8OZtFPUwHOsuiaUqKiUWUmY=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=YQOuATuS63mhecFXOdG76hnjaGutFBJCcCAexGkbofOJN4Ijo6ev9qShe0PErhqMZ Ze3ensu6QH+0GJmPOUTE9kwbR3iwScsSp/zeI0Owf9bKhTvCNxSseJnkF12zPEbYqK R5QArrw+2KbgbWSTZv2ZRrz7TrfvUv1WJLbrE5bI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([213.142.97.210]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvsEx-1oAiFS0DdX-00swvJ; Wed, 16 Feb 2022 09:50:33 +0100 Message-ID: <a6971c90-bb5a-4492-395b-69f07925b2e7@HIDDEN> Date: Wed, 16 Feb 2022 09:50:31 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> <86zgmsne32.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86zgmsne32.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:4afEsotowDd2wDdVAZ1niOjNQrbWDTN9nQDPylElOAnwZnCRQ+H j9JrE4HGXvTMTxjXGNzM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FDzLmPXsZj51YNLW1Gkg7PmRSEeuQN6Zc1AsHHy 6uR2Uo6ZtHP35TjjILuR8p0izHHv0vy/m4o0kSUtiYaga0jnszeXgVz9vmYukg3c4C+xRfHwG 34P06lF+DDxeOu9wignV4vcPmpg81kZ8LNytRpE7fdgLFrgCHfIuI2vqzOvn2j4EkfEFG+KvY K2Ncp62dz5zsx4RBDhK0Nt1GkzUxaPM6PZCU6lJxl71CF9ZmJGJGe2YD8Z8cPZwBm2JHzNS8/ c557zq4bcGtLRg= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > In case of a window parameter wouldn't the situation be inverted, > so it will use an alist too, but where keys are all dired buffers > displayed in that window from the prev-buffers list: > > (set-window-parameter window 'dired-positions > '((#<buffer *dired-1*> dired-file-1 window-point-1) > (#<buffer *dired-2*> dired-file-2 window-point-2) > ...)) Something like that. But I still fail to see what these lines are supposed to accomplish in your scenario: (set-window-configuration w-c) (goto-char p-m))) What is it 'dired-restore-positions' does not handle here? IIUC your lines mangle everything it has done. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 15 Feb 2022 19:30:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 15 14:30:58 2022 Received: from localhost ([127.0.0.1]:46493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nK3XO-0004Tc-Dv for submit <at> debbugs.gnu.org; Tue, 15 Feb 2022 14:30:58 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:47101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nK3XL-0004T9-MD for 33871 <at> debbugs.gnu.org; Tue, 15 Feb 2022 14:30:56 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id ED3E324000A; Tue, 15 Feb 2022 19:30:47 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> Date: Tue, 15 Feb 2022 21:30:29 +0200 In-Reply-To: <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> (martin rudalics's message of "Mon, 14 Feb 2022 19:36:14 +0100") Message-ID: <86zgmsne32.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> You meant remembering the file name and window-point in a buffer-local variable? >> Then it should be an alist with all windows of the same Dired buffer, e.g. >> >> (setq-local dired-positions >> '((#<window 1 on dired> dired-file-1 window-point-1) >> (#<window 2 on dired> dired-file-2 window-point-2) >> ...)) > > Or a window parameter of each dired window. In case of a window parameter wouldn't the situation be inverted, so it will use an alist too, but where keys are all dired buffers displayed in that window from the prev-buffers list: (set-window-parameter window 'dired-positions '((#<buffer *dired-1*> dired-file-1 window-point-1) (#<buffer *dired-2*> dired-file-2 window-point-2) ...)) > Note that the third item > would be just the offset of 'window-point' from its line beginning > position. 'window-point' itself is completely useless here. Maybe 'window-start' would be more useful?
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 14 Feb 2022 18:36:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 14 13:36:25 2022 Received: from localhost ([127.0.0.1]:42530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nJgD3-0002co-6L for submit <at> debbugs.gnu.org; Mon, 14 Feb 2022 13:36:25 -0500 Received: from mout.gmx.net ([212.227.17.20]:46299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nJgD1-0002cb-GG for 33871 <at> debbugs.gnu.org; Mon, 14 Feb 2022 13:36:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644863777; bh=WMt1GpFxTQ0wAl8cSerVUgnPJ3gJdOu2ewKB0yRXU4A=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=AhWWi52YW1v7XB43v4UK0xpvH5euACPUrpHpUTi1hEoq6yOCabif+EZiXpxg/rHC3 w8jGEHGtNT6+dmCcZIU37OCXB3BF3+XZiiQKPYWQo6JNh4sfas6mxEDuZ25MaENjMf bVCyEjGbc+DN0w6CO9s68cyWLf9B2INZaY5QkS+0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([213.142.96.169]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLiCu-1nbLcG2fmC-00Hgr9; Mon, 14 Feb 2022 19:36:16 +0100 Message-ID: <ff97e738-66f7-746f-e233-20b0c1409b55@HIDDEN> Date: Mon, 14 Feb 2022 19:36:14 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> <861r05co9l.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <861r05co9l.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:8jbuNs+7EN+CtKiJsBdQYdBk3JZSZP5hncA6V+AGYe3kL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gjaYRyYaNS0ji5+ClQmXnrg53OOiyUXa+6fInQU0Xq3tXAzJd9i0dIcMkM a5FY5k5ZTaIKYPoP/SsYDPsxjytV8d1s6jz3VGi7aOkRKysEczJIH0ONccsAaQeKknKiGzUUA l3xZKqhoIlJ0gpDZN6OLa3p7Gin8A2IHVEds2YtPHNnPSoSqvEMXkVqzbCvqrrF+BU78KYNL0 YKk0+TRVgVinUZjiFXiUXMmxlJfglG1igtINtsinWX0GkdBJMDdXgukh4ka0WVfLiTFu7+hCU YrB8InknKK3mVE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > You meant remembering the file name and window-point in a buffer-local variable? > Then it should be an alist with all windows of the same Dired buffer, e.g. > > (setq-local dired-positions > '((#<window 1 on dired> dired-file-1 window-point-1) > (#<window 2 on dired> dired-file-2 window-point-2) > ...)) Or a window parameter of each dired window. Note that the third item would be just the offset of 'window-point' from its line beginning position. 'window-point' itself is completely useless here. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 14 Feb 2022 18:16:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 14 13:16:17 2022 Received: from localhost ([127.0.0.1]:42514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nJftY-000285-Vu for submit <at> debbugs.gnu.org; Mon, 14 Feb 2022 13:16:17 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:55033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nJftW-00027q-GV for 33871 <at> debbugs.gnu.org; Mon, 14 Feb 2022 13:16:15 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id 302DF240008; Mon, 14 Feb 2022 18:16:06 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> Date: Mon, 14 Feb 2022 20:10:46 +0200 In-Reply-To: <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> (martin rudalics's message of "Mon, 14 Feb 2022 10:13:00 +0100") Message-ID: <861r05co9l.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> It should end up where it was initially, i.e. on file names in Dired. >> But this can achieved only by implementing context-aware markers, >> such as used by the package saveplace.el, e.g.: >> >> ((window-configuration-1 >> ((dired-window-1 . `(lambda () (dired-goto-file ,(dired-get-filename)))))) >> (window-configuration-2 ...) >> ...) > > Reverting a directory in a window could remember the name of the file > shown at the corresponding line and the offset of 'window-point' on that > line and also the entire contents of the old directory until revert > completes. As soon as the new contents of the directory have been > established, dired would search the remembered name and position point > at the remembered offset accordingly. If it does not find that name, it > would have to compare the contents of the old and current contents of > the directory and use some heuristics to position point appropriately. You meant remembering the file name and window-point in a buffer-local variable? Then it should be an alist with all windows of the same Dired buffer, e.g. (setq-local dired-positions '((#<window 1 on dired> dired-file-1 window-point-1) (#<window 2 on dired> dired-file-2 window-point-2) ...))
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 14 Feb 2022 09:13:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 14 04:13:17 2022 Received: from localhost ([127.0.0.1]:39688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nJXQ5-0005oa-Cc for submit <at> debbugs.gnu.org; Mon, 14 Feb 2022 04:13:17 -0500 Received: from mout.gmx.net ([212.227.17.21]:46223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1nJXQ0-0005oI-Ck for 33871 <at> debbugs.gnu.org; Mon, 14 Feb 2022 04:13:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644829986; bh=LfNlHs8MGoOd9FKMGgC0Q6EQNn7JUnG89ugrjyIVKus=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=gSERqs+WVn51ulzIjZGMyn7QWeKPsTyzWaQB4GG+mvfF2RZC/iAcS3rlYCYnAJmNa J0ltbQqlrFxcoowfVnLzsP7NH580XZ/GklhJvyjbUH6VlXc9gesua/OSnNfhMIh+zM z0aufp0KeLX1bMP1zyMzrhyRDvI8GCbEPz5WHD60= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([213.142.96.169]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mw9QC-1oBdZc0xr2-00s658; Mon, 14 Feb 2022 10:13:04 +0100 Message-ID: <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@HIDDEN> Date: Mon, 14 Feb 2022 10:13:00 +0100 MIME-Version: 1.0 Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Content-Language: en-US To: Juri Linkov <juri@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> <86h792x3wv.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86h792x3wv.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:bohbAwEdH2wBM+baiUOB3UfIyk8guGYXrFIFuu0O8g5mrAE3ZTo WDeVc9+mc6OQ5tz22NJFPixSn8GSrsG9iHFdQs1MnkXWXHeNPx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Tms2931sRn+hURJmo+1kEvVRZgFxXQbZtFQY0qKm+P2z6yShxBLXcTeDmtr1qrR2N bSn94ZQ8bxAA0exFb7+Ks5RGhVexBgSbYjtMjuCMTBkc+7MUR9AG6AQ0yTRVp4G9PQq3udUVc VB5Cp8UqaHMd3ovGi9RIf23hVT3Czw31oqd8QyI9W0ltuyYdzww2iBQa6oiRvHxbUJRbmw5A6 QR3Aw5MkvRapBM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > It should end up where it was initially, i.e. on file names in Dired. > But this can achieved only by implementing context-aware markers, > such as used by the package saveplace.el, e.g.: > > ((window-configuration-1 > ((dired-window-1 . `(lambda () (dired-goto-file ,(dired-get-filename)))))) > (window-configuration-2 ...) > ...) Reverting a directory in a window could remember the name of the file shown at the corresponding line and the offset of 'window-point' on that line and also the entire contents of the old directory until revert completes. As soon as the new contents of the directory have been established, dired would search the remembered name and position point at the remembered offset accordingly. If it does not find that name, it would have to compare the contents of the old and current contents of the directory and use some heuristics to position point appropriately. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 13 Feb 2022 18:45:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 13 13:45:44 2022 Received: from localhost ([127.0.0.1]:38876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nJJsV-0006ts-Nl for submit <at> debbugs.gnu.org; Sun, 13 Feb 2022 13:45:43 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:53245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1nJJsS-0006tG-Ne for 33871 <at> debbugs.gnu.org; Sun, 13 Feb 2022 13:45:41 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id 94C8D1BF203; Sun, 13 Feb 2022 18:45:33 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <87fsoo323s.fsf@HIDDEN> Date: Sun, 13 Feb 2022 20:40:16 +0200 In-Reply-To: <87fsoo323s.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 12 Feb 2022 09:45:11 +0100") Message-ID: <86h792x3wv.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> (progn (dired "/tmp") (dired-next-line 1) >> (split-window) (other-window 1) >> (dired "/tmp") (dired-next-line 2) >> (let ((w-c (current-window-configuration)) >> (p-m (point-marker))) >> (view-emacs-todo) (delete-other-windows) >> (with-current-buffer (get-buffer "tmp") >> (revert-buffer)) >> (set-window-configuration w-c) >> (goto-char p-m))) >> >> Result: >> - point in the selected Dired window moves to point-min >> - point in the non-selected Dired window moves to point-max > > I tried this in Emacs 29, and point was point-min in both windows. But > I'm not sure where point should end up after this code, really 😀, so is > this working as expected now? It should end up where it was initially, i.e. on file names in Dired. But this can achieved only by implementing context-aware markers, such as used by the package saveplace.el, e.g.: ((window-configuration-1 ((dired-window-1 . `(lambda () (dired-goto-file ,(dired-get-filename)))))) (window-configuration-2 ...) ...)
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 12 Feb 2022 08:45:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 12 03:45:23 2022 Received: from localhost ([127.0.0.1]:33396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nIo1z-0001EX-9B for submit <at> debbugs.gnu.org; Sat, 12 Feb 2022 03:45:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nIo1y-000184-EA for 33871 <at> debbugs.gnu.org; Sat, 12 Feb 2022 03:45:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BbBYBQsAoNqpLY1HaHLMr3NptXU7iMxKbmTeJYjuD7A=; b=Ez+evV5VhZoTjhXsFGSQ20Qy2V Rn7E5TuVMYrAt1byfCKZI1vncLPx460cfckcQ7EHzBJ0uZHVKPEvL9dGyA0G3xr41ltO9znEwRV4j U1bFstsyUj9dWnNwPpPar2Yq4DVZ+4v8kPQ0G9zDWTtg/d9VKDryF4cEZnJ4O42S5RvQ=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nIo1p-0005W3-C3; Sat, 12 Feb 2022 09:45:16 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> X-Now-Playing: Zazou Bikaye's _Mr. Manager_: "(Little) Angel" Date: Sat, 12 Feb 2022 09:45:11 +0100 In-Reply-To: <87bm59mglk.fsf@HIDDEN> (Juri Linkov's message of "Tue, 25 Dec 2018 23:39:03 +0200") Message-ID: <87fsoo323s.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov <juri@HIDDEN> writes: > Try to eval in emacs -Q in *scratch*: > > (progn (dired "/tmp") (dired-next-line 1) > (split-window) (other-window 1) > (dired "/tmp") (dired-next-line 2) > (let ((w-c (current-window-configuration) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Juri Linkov <juri@HIDDEN> writes: > Try to eval in emacs -Q in *scratch*: > > (progn (dired "/tmp") (dired-next-line 1) > (split-window) (other-window 1) > (dired "/tmp") (dired-next-line 2) > (let ((w-c (current-window-configuration)) > (p-m (point-marker))) > (view-emacs-todo) (delete-other-windows) > (with-current-buffer (get-buffer "tmp") > (revert-buffer)) > (set-window-configuration w-c) > (goto-char p-m))) > > Result: > - point in the selected Dired window moves to point-min > - point in the non-selected Dired window moves to point-max I tried this in Emacs 29, and point was point-min in both windows. But I'm not sure where point should end up after this code, really =F0=9F=98=80= , so is this working as expected now? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 30 Dec 2018 21:31:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 30 16:31:21 2018 Received: from localhost ([127.0.0.1]:42659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdig5-0006Mw-2c for submit <at> debbugs.gnu.org; Sun, 30 Dec 2018 16:31:21 -0500 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:21505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1gdig3-0006Mk-Eh for 33871 <at> debbugs.gnu.org; Sun, 30 Dec 2018 16:31:20 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 40E2A682C5C; Sun, 30 Dec 2018 21:31:18 +0000 (UTC) Received: from pdx1-sub0-mail-a69.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EB04F68284A; Sun, 30 Dec 2018 21:31:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a69.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 30 Dec 2018 21:31:18 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Cellar-Tart: 5312d45b52ae3b59_1546205478105_2844402522 X-MC-Loop-Signature: 1546205478105:2055563711 X-MC-Ingress-Time: 1546205478104 Received: from pdx1-sub0-mail-a69.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a69.g.dreamhost.com (Postfix) with ESMTP id 8D02F803DA; Sun, 30 Dec 2018 13:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=IOjFu1RcTFLblHXFwsLQw8b8wcA=; b= YkL+21Tzis369cuhHTUsXey+a1JZyVDKElIQtyhuOUK3K0fZQUs/wMCxHXwl+NRl v6DXdZfIfm0kK2BocYr+BfskkKtp/CKwv7M6smq0fpn5zbBx/G81oCN/X/jegoRg FtrOF5PXNEiAXU8toOzb+XRtnR7SqGG3m1ccdo/Gb/g= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a69.g.dreamhost.com (Postfix) with ESMTPSA id 02D51803D8; Sun, 30 Dec 2018 13:31:15 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a69 From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> <87muonyl4b.fsf@HIDDEN> <5C28957A.9050609@HIDDEN> Date: Sun, 30 Dec 2018 23:29:30 +0200 In-Reply-To: <5C28957A.9050609@HIDDEN> (martin rudalics's message of "Sun, 30 Dec 2018 10:52:58 +0100") Message-ID: <87k1jqaekl.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledruddtgdduheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdekrdduleefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtkedrudelfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> image-revert is another special, as indicated by bug#33631 > > But there the position of point or that of its window has no impact, I > presume. Yes, but there image-revert needs to know window dimensions when the buffer is not displayed in a window - a situation similar to dired-revert when buffer's windows are in a window configuration. >> Do you know why it currently moves point to the end of the buffer >> in non-selected windows. I don't understand what causes this behavior. > > I nowlooked into it. It's a bug caused by > > XMARKER (p->pointm)->insertion_type > = !NILP (buffer_local_value /* Don't signal error if void. */ > (Qwindow_point_insertion_type, w->contents)); > > and the value of > > buffer_local_value (Qwindow_point_insertion_type, w->contents) > > is unbound and not nil. I have to fix that. > I tried to fix that on master now. Please have a look. Thanks, I confirm it's fixed. >>> As I suggested earlier we can use the position of the buffer's point >>> in every window regardless of whether it currently shows the buffer or >>> we later switch to the buffer in it. But this is not what we usually >>> want when using multiple windows: We usually want them to show >>> different portions of the same buffer. >> >> Yes, better to keep every window's own point. Since usually I save >> the selected window's point along with the window configuration, > > As number or as marker? As marker. But I guess due to marker invalidation after reverting better to use numbers, or even better to get metadata depending on major mode, e.g. in case of Dired - dired-filename. >> in e.g. >> >> ((window-configuration-1 selected-window-point) >> (window-configuration-2 selected-window-point) >> ...) >> >> this could be extended to save a mapping of all windows points, e.g. >> >> ((window-configuration-1 ((window-a point-a) (window-b point-b) ...)) >> (window-configuration-2 ...) >> ...) >> >> >> But it's not a general solution. A general solution would be to save >> such metadata in the window configuration itself. > > But a configuration saves the point of each window, for the selected > one it stores the point of that window's buffer. Is it just because > you want to be able to retrieve those values? Or what am I missing? It seems a configuration saves the point as marker, not as number, so it invalidates on reverting. It would be better if such stored metadata also includes dired-filenames, or even a lambda that could move point to saved filenames in Dired buffers. ((window-configuration-1 ((dired-window-1 . `(lambda () (dired-goto-file ,(dired-get-filename)))))) (window-configuration-2 ...) ...)
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 30 Dec 2018 14:57:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 30 09:57:58 2018 Received: from localhost ([127.0.0.1]:42532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdcXO-0004Ta-9G for submit <at> debbugs.gnu.org; Sun, 30 Dec 2018 09:57:58 -0500 Received: from mout.gmx.net ([212.227.15.18]:35053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gdcXI-0004TD-9r for 33871 <at> debbugs.gnu.org; Sun, 30 Dec 2018 09:57:56 -0500 Received: from [192.168.1.101] ([46.125.250.79]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MeP5b-1gzFST2ael-00QEPI; Sun, 30 Dec 2018 15:57:42 +0100 Message-ID: <5C28DCE4.3010002@HIDDEN> Date: Sun, 30 Dec 2018 15:57:40 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> <87muonyl4b.fsf@HIDDEN> <5C28957A.9050609@HIDDEN> In-Reply-To: <5C28957A.9050609@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:fRfUk2HibHGWTwx+CckTBzFJDh7MYGbTdBiwk9impEGOPQDOc7w AA/JD5NYkSuC6HnnfiDsV1MNwjRcwxS26XAhFugMzOOcjiqITmQqFzU5YhjXodBfWWUR5Mp 5YuTC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DRj5Cc8+xaYBzMU8BR3sMbiiwuVNsh85vfril cz3lI4ZFkig== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > I nowlooked into it. It's a bug caused by > > XMARKER (p->pointm)->insertion_type > = !NILP (buffer_local_value /* Don't signal error if void. */ > (Qwindow_point_insertion_type, w->contents)); > > and the value of > > buffer_local_value (Qwindow_point_insertion_type, w->contents) > > is unbound and not nil. I have to fix that. I tried to fix that on master now. Please have a look. Thanks, martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 30 Dec 2018 09:53:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 30 04:53:10 2018 Received: from localhost ([127.0.0.1]:41833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdXmP-000332-Tm for submit <at> debbugs.gnu.org; Sun, 30 Dec 2018 04:53:10 -0500 Received: from mout.gmx.net ([212.227.17.20]:45785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gdXmO-00032m-Oc for 33871 <at> debbugs.gnu.org; Sun, 30 Dec 2018 04:53:09 -0500 Received: from [192.168.1.101] ([213.162.73.190]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0McluX-1gvU8T0bdx-00Hx83; Sun, 30 Dec 2018 10:53:00 +0100 Message-ID: <5C28957A.9050609@HIDDEN> Date: Sun, 30 Dec 2018 10:52:58 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> <87muonyl4b.fsf@HIDDEN> In-Reply-To: <87muonyl4b.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:19uP0Mn5SYekrwcUXDyOFG/KYWeM0o0jWLVX+h3NNAsBbFnHLtj wCZRcXymkAgw3vdWHJIqLJ+RdcxnuHbfNxdA54COq0h9AIhYNXBSqQnmtT5odzq9op5NFaS c1fH5scZAqt3XpJmm0LI2e6VhXYpXURbZ4pkESJasB7vXzSR/kJ/3QsTvsR0kr5Vf0aP449 XFqr+YyC2bP0jJIB8sqsg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qRv0NyfT6gk=:xAH+z8XqJPeLRRvXjOvWXm S9RJT7HYHOwTx9AJwtxDgWeWzHIdT8/btfwM4kPJrkDi182WXjwKHS4SOoi62hREGpQkqoIdA 3SAcXuWYUOm/wqceddmFj852OX2e+Sg7toXYTBjvITnvdh7fbm3OoPxdU/C6SiHRsjFoyszkZ qUMELdOoZcA9oUq0yuFdfZi/4oqdJJgLNjFqps2VnrQM0uDi6pIbuZu2NdfNrbHwckUn2HW+S SFIc2avCdPH6qIEOIyx1ctubPgK+S07uvOdBIJxERJEUoTSExBPpk0AdEowVXw5gqgB/Sidmd ni0OCrxtjK5FE8tScYIDr9DgcbIYURAj2+gLarvFqYjatm1PUBKIRngMvDRewZs467nBB0aS5 e+cqKEnz7cvmoy+sBmwjP6NEZ7MKcbZ8fRnCCVkWXT5DNYuLbwOz0VSexlsoE6brSywG3Jkqx GatDkHDHma9OBcCKuJ6R42jhjVQm/RlbpdqCMcT9cBdhbVwAxrG++gQl5jMK7i8b9qjlKt3FL EI00hQK+yOVBMxZ/+Qi2bB9dgcS3TcKvQtfzybgd84rPyMyAudkfV9AytxZF5wDoGz/KLlTzt XfEjlzA2d7NKYd3OHlspkJ+XR0C1ViPdRsBF5x8+bmaqsChDnRCRbka8O0l2q9zAJVrpK3F6x S7hWmmgCeWK0BuUceyzsiu47NfjnIHT5ixv437AsmZLjpZCm6POflXRywE200YZ2xO/jF4Iy3 9VE+3Zdt5qNLWeCMd1fXgCZTVFK5XQb/Hs0HCX7E5k3npra+D0iEI6VHOlz6VCCUI5aX5LE7p n1SiGvEoL9029auRqBcX5+tuuLHKr87AAvxo3ikHfkQLE4tc9M4UiCnD3+Yz4AhNR8eCJADXI 8gxCJs6E6bjyJ0HvI27WS9tYyb5oMisyQwHSDKQRr4mwcpKFMPAUW9fgfceMK/ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > image-revert is another special, as indicated by bug#33631 But there the position of point or that of its window has no impact, I presume. > Do you know why it currently moves point to the end of the buffer > in non-selected windows. I don't understand what causes this behavior. I nowlooked into it. It's a bug caused by XMARKER (p->pointm)->insertion_type = !NILP (buffer_local_value /* Don't signal error if void. */ (Qwindow_point_insertion_type, w->contents)); and the value of buffer_local_value (Qwindow_point_insertion_type, w->contents) is unbound and not nil. I have to fix that. >> As I suggested earlier we can use the position of the buffer's point >> in every window regardless of whether it currently shows the buffer or >> we later switch to the buffer in it. But this is not what we usually >> want when using multiple windows: We usually want them to show >> different portions of the same buffer. > > Yes, better to keep every window's own point. Since usually I save > the selected window's point along with the window configuration, As number or as marker? > in e.g. > > ((window-configuration-1 selected-window-point) > (window-configuration-2 selected-window-point) > ...) > > this could be extended to save a mapping of all windows points, e.g. > > ((window-configuration-1 ((window-a point-a) (window-b point-b) ...)) > (window-configuration-2 ...) > ...) > > > But it's not a general solution. A general solution would be to save > such metadata in the window configuration itself. But a configuration saves the point of each window, for the selected one it stores the point of that window's buffer. Is it just because you want to be able to retrieve those values? Or what am I missing? martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 29 Dec 2018 23:24:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 29 18:24:35 2018 Received: from localhost ([127.0.0.1]:41710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdNy7-0008Kh-BC for submit <at> debbugs.gnu.org; Sat, 29 Dec 2018 18:24:35 -0500 Received: from goldenrod.birch.relay.mailchannels.net ([23.83.209.74]:4760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1gdNy2-0008KM-SN for 33871 <at> debbugs.gnu.org; Sat, 29 Dec 2018 18:24:31 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9A259123BE0; Sat, 29 Dec 2018 23:24:29 +0000 (UTC) Received: from pdx1-sub0-mail-a25.g.dreamhost.com (unknown [100.96.11.179]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3EED2123B8A; Sat, 29 Dec 2018 23:24:29 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a25.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sat, 29 Dec 2018 23:24:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Tank-Thoughtful: 0a25a1c53239b44c_1546125869451_3205600617 X-MC-Loop-Signature: 1546125869451:1130413363 X-MC-Ingress-Time: 1546125869451 Received: from pdx1-sub0-mail-a25.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a25.g.dreamhost.com (Postfix) with ESMTP id D09BF819C6; Sat, 29 Dec 2018 15:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=s8PHV+tcHqYxZRrWFRkcp4ghzIo=; b= QQloEPCpPpSa5TzfMulLIG27G/2axQjxrcDgzp/5LiE1yhbRXWNPJr7bzQ8c7ggC Z8kDKqYuTKqXDe7KNmuJwtHnM/U6HGAVBto+y+YNIU6bmxE6M/6qLbKMPL1avsfx 8n++Ld3z6rML9X/Lud0VC8L2sXy5zTVaEs1mucFQmJk= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a25.g.dreamhost.com (Postfix) with ESMTPSA id B742E819C7; Sat, 29 Dec 2018 15:24:27 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a25 From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> Date: Sun, 30 Dec 2018 01:21:05 +0200 In-Reply-To: <5C25E016.3050808@HIDDEN> (martin rudalics's message of "Fri, 28 Dec 2018 09:34:30 +0100") Message-ID: <87muonyl4b.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtdelgddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrudelfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrdduleefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedv X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> So the revert function doesn't use markers? Maybe then >> set-window-configuration should not use markers too? > > 'dired-revert' is special. There's nothing we can conclude from it. image-revert is another special, as indicated by bug#33631 >>>> Here is when the upper window is selected, but still it moves to (point-max) >>>> in non-selected window: >>>> >>>> (progn (dired "/tmp") >>>> (dired-other-window "/tmp") (other-window 1) >>>> (let ((w-c (current-window-configuration)) >>>> (p-m (point-marker))) >>>> (view-emacs-todo) (delete-other-windows) >>>> (with-current-buffer (get-buffer "tmp") >>>> (revert-buffer)) >>>> (set-window-configuration w-c))) >>> >>> In every non-selected window. Try with as many windows as you want. >>> Only the selected window is handled separately. >> >> A bug? Do you know why it currently moves point to the end of the buffer in non-selected windows. I don't understand what causes this behavior. > As I suggested earlier we can use the position of the buffer's point > in every window regardless of whether it currently shows the buffer or > we later switch to the buffer in it. But this is not what we usually > want when using multiple windows: We usually want them to show > different portions of the same buffer. Yes, better to keep every window's own point. Since usually I save the selected window's point along with the window configuration, in e.g. ((window-configuration-1 selected-window-point) (window-configuration-2 selected-window-point) ...) this could be extended to save a mapping of all windows points, e.g. ((window-configuration-1 ((window-a point-a) (window-b point-b) ...)) (window-configuration-2 ...) ...) But it's not a general solution. A general solution would be to save such metadata in the window configuration itself.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 29 Dec 2018 18:19:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 29 13:19:02 2018 Received: from localhost ([127.0.0.1]:41644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdJCO-0006N6-KE for submit <at> debbugs.gnu.org; Sat, 29 Dec 2018 13:19:00 -0500 Received: from mout.gmx.net ([212.227.15.18]:40725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gdJCM-0006Mt-Om for 33871 <at> debbugs.gnu.org; Sat, 29 Dec 2018 13:18:59 -0500 Received: from [192.168.1.101] ([212.95.5.17]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LtJAR-1hMZGR1N6Z-012nOb; Sat, 29 Dec 2018 19:18:52 +0100 Message-ID: <5C27BA8D.1070309@HIDDEN> Date: Sat, 29 Dec 2018 19:18:53 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Markus Triska <triska@HIDDEN>, 33871 <at> debbugs.gnu.org Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> <m2zhsooa12.fsf@HIDDEN> In-Reply-To: <m2zhsooa12.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:D9eJVSYhJTcswQKEAJeOl6qvY8dprPq6Xi/zVkrGPT4/CI3FNYT ctf92vLG2v7pExnUobJRzCCW3WezwhsbcEdpvWDTZpIgt2SEz/hRmVj86jZLmp6bvJp8o5o NuWKxqNp6YLb73YaVSohlc+4XmfoV4VBTGCi6VGToHhvTWfD9CCq7Gfmy35jqA7JxNuCVN9 xY+1j6WhNxCOlTVj++xPw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7RmuRDVXIlU=:gpLCKbwxtEb3HGUbRPxKCa pRpUn/R9Vk4efPdxUtV2smkilttHZFDSsKQqSnqN1LlrDE0qvJLqPwjOb8sRBPdqlCJAouewm AS7+X9z8dEK9dXvoYMZwi8RJp4oZTlEs1HxOEPvPm1AIVXo7d5unVPrtMvAIUYmoQm9RRMhhs ncdmcNHXA7hI6jw5DwMAqA4iTMuL4KLOhGhm0XZ723QQKVQHpiEOePGoxzqJiiEF3Y/Hwlc9X pH2/ztNEnzLuMleEKbbbI1f+IgC5xuXCuA0lxaBd3UP2GIQsF4p5zJE4LW6J6CVa0CNaeRZ11 BnAtcAioNccqCtE8hSKdGI23f24BTbxsdjC4Wzo4GXhrjL/yvPqqNQXqaSyEY143McbaxdQ6f Gv/EJBzvEpgcidEfWOUBknHzgGzdFZ7jpjllQfEDp1tZ7bta7ssLY+/JCZwl+iDgqxzxwDI5U VNUEKRsFAvKWs0yDelxM3h4v1drLoPsHfMgnWN1BOiFJSIT1APthiwOJ8P8CewrtMpMEArYaq YBAkIIIEahCNKkZ5mZZrGl2w+Pl8SCBgO0wUT6HUqAUXRJp2/HYQYZUTlWsLxLBVTORcO7tWu LX8wEyIZNfcDUWe7fBc+itZKxWTQTAkr7q5VGOMVN1fbMAgbxZLpg8uo8Qy4vzrgpoZzNWt1+ 9L/DeJ6r8D/aAia4cWXoMTiqnixURCeWo1+q4r4LlT822SOxXdGDjSoxh7msicCYzNl+za067 Eqk5agHc06+U61R1O0ebleY7LOKH3CBMQdXzWFEUPeKeWt10adgxLh4RRJuPJyOYGW1VjTuP3 KIpJomLO+Sus9OwidiGcDkjm/wLqyJb6Fjes75pyp6ikyf9h4yAO2iDOu4hgx7QyQK581n3Fs evndUiem8Z9BegwC44hPWYFytRqMow49cpo4sBVSd/PEAeTLNtMAVyrFRYKja/ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > In the cases I faced, I found it a drawback that the current buffer is > treated differently than the others by current-window-configuration: I'm not sure what precisely you mean here. 'save-window-excursion' saves and restores the current buffer so that the restored state replicates the saved state as closely as possible. Hence, the buffer current when the old configuration was saved should be also current after the old configuration has been restored, regardless of whether it is the buffer assigned to any of the selected windows. If you allude to the As a special exception, the window configuration does not record the value of point in the selected window for the current buffer. then this behavior is provided for historical reasons AFAICT. Most applications using a window excursion probably did not like the cursor jump back to the old location. > Suppose it did not make such an exception. Then it would be quite easy > to manually implement exceptional behaviour for the current buffer. But > the converse is not so easy: It is harder to manually obtain the desired > behaviour if we *want* the current buffer to be treated like the others, > when the function already treats it differently. If it didn't, then a > simple save-excursion, or a similar mechanisms, around restoring the > window configuration could ostensibly restore the state for all buffers > except the current one, resulting in the same behaviour that we get now. > At least that was my impression when using window configurations. It depends on what you want to handle manually. Note that if you do not save any additional information separately, a window configuration by itself does not give you any clue as to which buffer was current or which window was selected at the time it was saved. What we could do is to give 'set-window-configuration' an additional argument which, for example, would allow to restore the selected window's point to its saved position. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 29 Dec 2018 11:26:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 29 06:26:33 2018 Received: from localhost ([127.0.0.1]:40876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdClF-0002LQ-5L for submit <at> debbugs.gnu.org; Sat, 29 Dec 2018 06:26:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdClD-0002LC-Ci for submit <at> debbugs.gnu.org; Sat, 29 Dec 2018 06:26:31 -0500 Received: from lists.gnu.org ([208.118.235.17]:43013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdCl7-0007ES-Mr for submit <at> debbugs.gnu.org; Sat, 29 Dec 2018 06:26:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdCl2-0000LK-Fj for bug-gnu-emacs@HIDDEN; Sat, 29 Dec 2018 06:26:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdCeX-0001C7-AO for bug-gnu-emacs@HIDDEN; Sat, 29 Dec 2018 06:20:13 -0500 Received: from [195.159.176.226] (port=41642 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdCeW-00013a-GX for bug-gnu-emacs@HIDDEN; Sat, 29 Dec 2018 06:19:37 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1gdCcH-0006cK-6O for bug-gnu-emacs@HIDDEN; Sat, 29 Dec 2018 12:17:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@HIDDEN From: Markus Triska <triska@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Date: Sat, 29 Dec 2018 12:19:21 +0100 Organization: man Lines: 20 Message-ID: <m2zhsooa12.fsf@HIDDEN> References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> <5C25E016.3050808@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@HIDDEN User-Agent: Emacs/26.1 Cancel-Lock: sha1:w7ERwO2I7DfqJXs4rHPNumgldro= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) martin rudalics <rudalics@HIDDEN> writes: > As I suggested earlier we can use the position of the buffer's point > in every window regardless of whether it currently shows the buffer or > we later switch to the buffer in it. But this is not what we usually > want when using multiple windows: We usually want them to show > different portions of the same buffer. In the cases I faced, I found it a drawback that the current buffer is treated differently than the others by current-window-configuration: Suppose it did not make such an exception. Then it would be quite easy to manually implement exceptional behaviour for the current buffer. But the converse is not so easy: It is harder to manually obtain the desired behaviour if we *want* the current buffer to be treated like the others, when the function already treats it differently. If it didn't, then a simple save-excursion, or a similar mechanisms, around restoring the window configuration could ostensibly restore the state for all buffers except the current one, resulting in the same behaviour that we get now. At least that was my impression when using window configurations.
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 28 Dec 2018 08:34:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 28 03:34:54 2018 Received: from localhost ([127.0.0.1]:39700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gcnba-00071f-4Z for submit <at> debbugs.gnu.org; Fri, 28 Dec 2018 03:34:54 -0500 Received: from mout.gmx.net ([212.227.17.22]:48623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gcnbW-00071J-PG for 33871 <at> debbugs.gnu.org; Fri, 28 Dec 2018 03:34:51 -0500 Received: from [192.168.1.101] ([46.125.249.76]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LqQTl-1hG0Ez1RTd-00e2XI; Fri, 28 Dec 2018 09:34:40 +0100 Message-ID: <5C25E016.3050808@HIDDEN> Date: Fri, 28 Dec 2018 09:34:30 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> <87efa21wof.fsf@HIDDEN> In-Reply-To: <87efa21wof.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Z1064N0LZLP0THgujkNpfZXkEUjRXI0MFSIdqH7uHH+p7JrEcmR Ambq7wVnlAo5RC1pyRz6uWbse5hkMGPwK07PSbqzgP3kYFJCJBziG2clmAWq66HIDHiXtNz kZZUWq6SJ7Pj+oJWtIxOH6eqBO3QRLpnsKQDky28ENVNLYiu2abD0f9Z+K0+4mMj9Z+eRav yrKs0O6jgl4eXgTlK3H4Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hmdDSjZ0Msk=:g/dOeUR+nnG7o6HA0BQbov EgcItlDb7AZR9xlwXeusw2auEO43XIn9SxEMNu2qK1Y6FGL89qkvXvSkND94DBw6c53ni7VyK bzzgVhSmmohHGv6WKzhbLp7Xy/LRtP4okoBZkc1tx1iYX5c3F2dpzAU0dcAaiwK+egJlY4DUp ugXFlUE2dYTC5IsnNlj3OOqy2c5qf1oeywJi2L4M0L0Z1IROePaQMAIXUe13pYHkn+afh5QJd VeTC/zKYwlP5pcc0DFEaXvuXY+/p2BJ75TE3tBpAMUj/ArEy8TqT8zCN58HNq0r2a/TGUg4El w3G2CCxnK7o9DnBScaLJv/pW0mKwDNBPJfeSNW8QhLqzopSrkxeLR3dCdEyudh6oYplNiY8PX g/9ZDYXzOE8YJm/RR0+B5xDtKBedTtjHlNTZut001dr1d99FK0KM9yCET3zDyfoK1bfXCmPrN ICiqQ7ReAG1XzeG1EVsof7L07T6RdfMj9CWDYQtIR1oNoLm+66y/De9wDv3zksxpYcGCUln9k EKQYj9l6eNj+0GnmGynYKG5BAi03HkTmBcxuOp2nVIYrVMWmik82tiY8wvtAdagjsq85zm68w KTRR2dpObaYUcE59E8ssAurq9EPhAbQdAWjTYL8iGE45gJreyCX1K9t5+K5GRb9FimzoDR/0V Or9Ek2NcLYD674rW94sGcQpyjig93MZrVxT/w99YtiHpglINN9/YyeiiYCfvOeFpwcs+13ymH lT2YfJESHmKNScqXe9pit7IypLmp7isTXye1yTLwoeIs+b1yto8U9NEfUZg99Zzyrd3WpY9Oe LeTkXxJTvgYtVpTJbvB3TXikUvfonoWe+jShYqUCxSB5HfVqr1PmuW7uWqL1lG44ty6FElrY6 5VXgBn/M9aIgwAm3asgmqrYZLFcLo0PgvB2RZnMcSYUiobYKpze6SD4CGjSrAJfIPBa8OKkdZ GMS6cs14yVQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > So the revert function doesn't use markers? Maybe then > set-window-configuration should not use markers too? 'dired-revert' is spcecial. There's nothing we can conclude from it. >>> Here is when the upper window is selected, but still it moves to (point-max) >>> in non-selected window: >>> >>> (progn (dired "/tmp") >>> (dired-other-window "/tmp") (other-window 1) >>> (let ((w-c (current-window-configuration)) >>> (p-m (point-marker))) >>> (view-emacs-todo) (delete-other-windows) >>> (with-current-buffer (get-buffer "tmp") >>> (revert-buffer)) >>> (set-window-configuration w-c))) >> >> In every non-selected window. Try with as many windows as you want. >> Only the selected window is handled separately. > > A bug? As I suggested earlier we can use the position of the buffer's point in every window regardless of whether it currently shows the buffer or we later switch to the buffer in it. But this is not what we usually want when using multiple windows: We usually want them to show different portions of the same buffer. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 27 Dec 2018 21:45:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 27 16:45:52 2018 Received: from localhost ([127.0.0.1]:39589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gcdTU-0006CQ-4Z for submit <at> debbugs.gnu.org; Thu, 27 Dec 2018 16:45:52 -0500 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:42174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1gcdTS-0006CH-4I for 33871 <at> debbugs.gnu.org; Thu, 27 Dec 2018 16:45:51 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 92CE1283AB3; Thu, 27 Dec 2018 21:45:48 +0000 (UTC) Received: from pdx1-sub0-mail-a68.g.dreamhost.com (unknown [100.96.29.126]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 592A12838BB; Thu, 27 Dec 2018 21:45:48 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a68.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Thu, 27 Dec 2018 21:45:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Harmony-Descriptive: 0e45630b01959d8b_1545947148440_2197610677 X-MC-Loop-Signature: 1545947148440:3235524345 X-MC-Ingress-Time: 1545947148439 Received: from pdx1-sub0-mail-a68.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTP id E6C557FD07; Thu, 27 Dec 2018 13:45:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=ynHmA367ySaZGM4dX6HlA1ihAvA=; b= mtsbFCMRgCbt8DrK/22FAHFBaYMST6eFG2Y9e0QxMokZN3LVcXid5vRVRkOb3lXg +6p+s9SUXBAhsJ0GXxSxBDlorLBuRbEoykXmhvy9YMXcq7eIUuu3vqmU+M0siLij Jid3ulQ/CILO/sZgQlYAV3LCjxyQN4Alk5snHEPu/dY= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTPSA id 6071C7FCFE; Thu, 27 Dec 2018 13:45:45 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a68 From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> <5C249D48.1020608@HIDDEN> Date: Thu, 27 Dec 2018 23:34:08 +0200 In-Reply-To: <5C249D48.1020608@HIDDEN> (martin rudalics's message of "Thu, 27 Dec 2018 10:37:12 +0100") Message-ID: <87efa21wof.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtdefgdelfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrudelfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrdduleefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> I see that without `goto-char' it moves to the first file name in the >> selected window. > > I see the same here. In the selected window only, though. > >> I don't understand how 'set-window-configuration' restores >> the selected window's point. > > From the buffer's point as established by the revert function of dired > for buffers not displayed anywhere. So the revert function doesn't use markers? Maybe then set-window-configuration should not use markers too? >>> To confirm, try with the upper window selected instead. >> >> Here is when the upper window is selected, but still it moves to (point-max) >> in non-selected window: >> >> (progn (dired "/tmp") >> (dired-other-window "/tmp") (other-window 1) >> (let ((w-c (current-window-configuration)) >> (p-m (point-marker))) >> (view-emacs-todo) (delete-other-windows) >> (with-current-buffer (get-buffer "tmp") >> (revert-buffer)) >> (set-window-configuration w-c))) > > In every non-selected window. Try with as many windows as you want. > Only the selected window is handled separately. A bug?
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 27 Dec 2018 09:37:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 27 04:37:30 2018 Received: from localhost ([127.0.0.1]:38178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gcS6c-0006VI-Ml for submit <at> debbugs.gnu.org; Thu, 27 Dec 2018 04:37:30 -0500 Received: from mout.gmx.net ([212.227.15.15]:46409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gcS6a-0006V3-ON for 33871 <at> debbugs.gnu.org; Thu, 27 Dec 2018 04:37:29 -0500 Received: from [192.168.1.101] ([46.125.250.89]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MDQp3-1gZQlx1cZp-00Gtj3; Thu, 27 Dec 2018 10:37:20 +0100 Message-ID: <5C249D48.1020608@HIDDEN> Date: Thu, 27 Dec 2018 10:37:12 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> <87y38bhm6i.fsf@HIDDEN> In-Reply-To: <87y38bhm6i.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:kcPVmbum8ZW3244C128YcnUYmQ5g8LeW3diS8xmdv4FNqgmhBbY xqCigjkIhpBBX9VzPFxfNW/ICZrPbiY4Dfm0vqXG6aVpfZc78QCfoSYOHNsJwDqAIXGHj0s 2Eu6snAwoUF3tMKj/GvjD4hYUW1yOhCa2HZXUGBPgpFLEOcsi2m/u5wedUkAltTJl9hizZT uzqM90jEK3UjbGaC2dLFA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iYTK/r0Hits=:A+GADu+RbOo07/8daGYQQ9 HxIK+ZFWYbPVX5z7wCQsukZYHgSWO7YWugLVSIA6bSnlzecXE8v19/agnI+4cZWqWx8OOyCDx eA07FblzmBJ3cF2fE2TUHwmOwDGhfjInCquu3fBBGEn2szAEb6htw+1v0B8M4LHCRM25EuAvF jBg4Y00usQ+CQkyM4fhQK1nGwLUscUETumoJbojf4Us2hwFUoWvC6lFpZdaUmco6KGVoElR9m msEEAaLWvj62bie15lHshjwSSwTwT5oGp7y5I/yUUX7lnjoqtzS3/ozUUg5EJnYGEr5eDxTQm WgB1BaBFHogpm2/GaLpWMaxfV9TNeLbeEmb8WLip9nA9qzlHee7slDBZBdqRu7HHOMQsSC0Wy cWFJ4AgHKB4t20nRCode4ALW75bTC6Yeem6AUEmorYR+YQeFzbbPv100CQ6mSwxWyW/uB1P6F aklHCZiS3ZzbvIZaOiWJhArq5BHnnbx1Y7i3iwnzge5qE0GzpGrlBT8c6sl4zff+zlpHd9yG3 OOlZ7y6JID9d4FRy2lMEH9zKIOu/nvbSmdRFfH4Fm00zZT/020KbZYJiPn5XRLZabmG/0yuSG U7Im1/mWovqg0n7NDb0Nfw1gnw7tY+bvRsID1SJH/KhCogsWzePpKV9p/fTeJj9xAMCxmDey8 3luBUgm1KvWrRFrQBz/FKRWigmMjJ3/oYJLbyuJcUBcf0M9sQ1fG/TuNfT4dMBYY9IXoErUQK J2zcNXtgYHT3vlU0JP+aO9HAdeS4t9oRzYpIgd+D6hAqEbGB5wFQE/1tfuLg+SuuCuZIfGerM NDlsp9AUskaCJGPzS9SLVIyO1VoxAsuZyt2qa4nEWYCm0wTfk5/htdZiN2tI6Y3TOnmpfc8om K6Df4y8pBF6kiTCDTeeEkSyxmxopdt50nDUmn15PDkUMyq3UsFF2W4vADj0XfTddBNFa6r0UR PQqnNrGFl4A== X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.2 (/) > I see that without `goto-char' it moves to the first file name in the > selected window. I see the same here. In the selected window only, though. > I don't understand how 'set-window-configuration' restores > the selected window's point. From the buffer's point as established by the revert function of dired for buffers not displayed anywhere. >> To confirm, try with the upper window selected instead. > > Here is when the upper window is selected, but still it moves to (point-max) > in non-selected window: > > (progn (dired "/tmp") > (dired-other-window "/tmp") (other-window 1) > (let ((w-c (current-window-configuration)) > (p-m (point-marker))) > (view-emacs-todo) (delete-other-windows) > (with-current-buffer (get-buffer "tmp") > (revert-buffer)) > (set-window-configuration w-c))) In every non-selected window. Try with as many windows as you want. Only the selected window is handled separately. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 27 Dec 2018 00:15:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 26 19:15:22 2018 Received: from localhost ([127.0.0.1]:38059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gcJKY-000785-Gi for submit <at> debbugs.gnu.org; Wed, 26 Dec 2018 19:15:22 -0500 Received: from ostrich.birch.relay.mailchannels.net ([23.83.209.138]:25393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1gcJKT-00077s-94 for 33871 <at> debbugs.gnu.org; Wed, 26 Dec 2018 19:15:17 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 24B742839B4; Thu, 27 Dec 2018 00:15:12 +0000 (UTC) Received: from pdx1-sub0-mail-a49.g.dreamhost.com (unknown [100.96.26.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CB61A2837AE; Thu, 27 Dec 2018 00:15:11 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a49.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Thu, 27 Dec 2018 00:15:12 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Continue-Stupid: 37b8359c6c994c4b_1545869711959_1994422357 X-MC-Loop-Signature: 1545869711959:518475683 X-MC-Ingress-Time: 1545869711959 Received: from pdx1-sub0-mail-a49.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTP id 6B5F67FC82; Wed, 26 Dec 2018 16:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=HZJr8qwSdxHUJl7gk6ak+ZvkkS4=; b= sY3yGDX8QAhmTzG/08Ut2b7erh1IBpfx9LxxXc6/A9mxF5kKnj9YYAS+FtjwzgWg kToAjSkiLus4zO3+gXE9fgjNg1ooczlUK7aRiF1sOcOee+igQxAt8Mvrc76X4goH wEScm/Zx8Fm3rL70O4I/IecjTIhEw6zxukekOXXfoho= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTPSA id D5AA67FC7B; Wed, 26 Dec 2018 16:15:09 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a49 From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET References: <87bm59mglk.fsf@HIDDEN> <5C234D27.40309@HIDDEN> Date: Thu, 27 Dec 2018 02:01:57 +0200 In-Reply-To: <5C234D27.40309@HIDDEN> (martin rudalics's message of "Wed, 26 Dec 2018 10:43:03 +0100") Message-ID: <87y38bhm6i.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtddugddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrudelfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrdduleefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33871 Cc: 33871 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> Try to eval in emacs -Q in *scratch*: >> >> (progn (dired "/tmp") (dired-next-line 1) >> (split-window) (other-window 1) >> (dired "/tmp") (dired-next-line 2) >> (let ((w-c (current-window-configuration)) >> (p-m (point-marker))) >> (view-emacs-todo) (delete-other-windows) >> (with-current-buffer (get-buffer "tmp") >> (revert-buffer)) >> (set-window-configuration w-c) >> (goto-char p-m))) >> >> Result: >> - point in the selected Dired window moves to point-min >> - point in the non-selected Dired window moves to point-max > > You're obfuscating the underlying behavior with the 'dired-next-line' > and 'goto-char' calls but the final points are different without that. > > Without your explicit moves, `dired' moves to the first file name in > the lower directory here. So 'dired-move-to-filename' was called when > reverting the buffer and the 'set-window-configuration' "restores" the > lower window's point from the buffer's point because that window is > the selected one. I see that without `goto-char' it moves to the first file name in the selected window. I don't understand how 'set-window-configuration' restores the selected window's point. > To confirm, try with the upper window selected instead. Here is when the upper window is selected, but still it moves to (point-max) in non-selected window: (progn (dired "/tmp") (dired-other-window "/tmp") (other-window 1) (let ((w-c (current-window-configuration)) (p-m (point-marker))) (view-emacs-todo) (delete-other-windows) (with-current-buffer (get-buffer "tmp") (revert-buffer)) (set-window-configuration w-c)))
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at 33871) by debbugs.gnu.org; 26 Dec 2018 09:43:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 26 04:43:19 2018 Received: from localhost ([127.0.0.1]:36594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gc5ig-000605-Uj for submit <at> debbugs.gnu.org; Wed, 26 Dec 2018 04:43:19 -0500 Received: from mout.gmx.net ([212.227.17.20]:45901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1gc5ig-0005zs-5W for 33871 <at> debbugs.gnu.org; Wed, 26 Dec 2018 04:43:18 -0500 Received: from [192.168.1.101] ([46.125.250.34]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LvUwp-1hJMth0Zox-010fxj; Wed, 26 Dec 2018 10:43:10 +0100 Message-ID: <5C234D27.40309@HIDDEN> Date: Wed, 26 Dec 2018 10:43:03 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: Juri Linkov <juri@HIDDEN>, 33871 <at> debbugs.gnu.org Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration References: <87bm59mglk.fsf@HIDDEN> In-Reply-To: <87bm59mglk.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:nh/y9p7aSc+2AIzzoYjDQWFDVuUwH4iJtV4BjZRPz3sPBvgH19m qojo0EPQfT0nRaQm/3NLsoWHm4Y8vJ2ks4TvD05aJiSEfMG3yZbUCCEx280odBmyqdCv68z pIEkT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K6FgaWdGdf0xuEjOY0xH7q5DeZCT7ApX2X7u138Yzu/fErO5x5 5Uzzo3z22+A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33871 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Try to eval in emacs -Q in *scratch*: > > (progn (dired "/tmp") (dired-next-line 1) > (split-window) (other-window 1) > (dired "/tmp") (dired-next-line 2) > (let ((w-c (current-window-configuration)) > (p-m (point-marker))) > (view-emacs-todo) (delete-other-windows) > (with-current-buffer (get-buffer "tmp") > (revert-buffer)) > (set-window-configuration w-c) > (goto-char p-m))) > > Result: > - point in the selected Dired window moves to point-min > - point in the non-selected Dired window moves to point-max You're obfuscating the underlying behavior with the 'dired-next-line' and 'goto-char' calls but the final points are different without that. Without your explicit moves, `dired' moves to the first file name in the lower directory here. So 'dired-move-to-filename' was called when reverting the buffer and the 'set-window-configuration' "restores" the lower window's point from the buffer's point because that window is the selected one. To confirm, try with the upper window selected instead. martin
bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 25 Dec 2018 21:42:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 25 16:42:15 2018 Received: from localhost ([127.0.0.1]:36481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gbuSt-00041e-K6 for submit <at> debbugs.gnu.org; Tue, 25 Dec 2018 16:42:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1gbuSr-00041R-TS for submit <at> debbugs.gnu.org; Tue, 25 Dec 2018 16:42:14 -0500 Received: from lists.gnu.org ([208.118.235.17]:55288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gbuSm-0006lU-LW for submit <at> debbugs.gnu.org; Tue, 25 Dec 2018 16:42:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gbuSl-00062Z-Pc for bug-gnu-emacs@HIDDEN; Tue, 25 Dec 2018 16:42:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gbuSg-0006gi-PR for bug-gnu-emacs@HIDDEN; Tue, 25 Dec 2018 16:42:07 -0500 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:10454) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gbuSf-0006bu-0s for bug-gnu-emacs@HIDDEN; Tue, 25 Dec 2018 16:42:02 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DCFE15C4979 for <bug-gnu-emacs@HIDDEN>; Tue, 25 Dec 2018 21:41:57 +0000 (UTC) Received: from pdx1-sub0-mail-a16.g.dreamhost.com (unknown [100.96.35.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9D4385C4977 for <bug-gnu-emacs@HIDDEN>; Tue, 25 Dec 2018 21:41:57 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a16.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Tue, 25 Dec 2018 21:41:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Chief-Name: 2d5edfe35848c9a3_1545774117715_3421691566 X-MC-Loop-Signature: 1545774117715:3522945206 X-MC-Ingress-Time: 1545774117715 Received: from pdx1-sub0-mail-a16.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a16.g.dreamhost.com (Postfix) with ESMTP id 004E67F93B for <bug-gnu-emacs@HIDDEN>; Tue, 25 Dec 2018 13:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=UN8YPmNJQfBfAYLW1+FN4oJvp5Y=; b=MxL/H2rDhL3yHQxbn FRRhmVk9YpsbmvQ9yMp5gYEUI3ATKnO3i03lUdwjZdjz2TOGpQDoxUSpMm4FO0z7 0igyS7weql/j0QIrlaH5o7z/NhFfsZrGYgSlklauHWe7+zqxOFjU9QcZby1GFNk0 SAAZNJtRwPU64UKcIHRaTeGo78= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a16.g.dreamhost.com (Postfix) with ESMTPSA id 1CBD37F91D for <bug-gnu-emacs@HIDDEN>; Tue, 25 Dec 2018 13:41:54 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a16 From: Juri Linkov <juri@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 27.0.50; Revert Dired window saved in window configuration Organization: LINKOV.NET Date: Tue, 25 Dec 2018 23:39:03 +0200 Message-ID: <87bm59mglk.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudekfedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdekrdduleefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtkedrudelfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.150 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.1 (-----) Try to eval in emacs -Q in *scratch*: (progn (dired "/tmp") (dired-next-line 1) (split-window) (other-window 1) (dired "/tmp") (dired-next-line 2) (let ((w-c (current-window-configuration)) (p-m (point-marker))) (view-emacs-todo) (delete-other-windows) (with-current-buffer (get-buffer "tmp") (revert-buffer)) (set-window-configuration w-c) (goto-char p-m))) Result: - point in the selected Dired window moves to point-min - point in the non-selected Dired window moves to point-max
Juri Linkov <juri@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#33871
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.