From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration Date: Thu, 27 Dec 2018 23:34:08 +0200 Organization: LINKOV.NET Message-ID: <87efa21wof.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <5C234D27.40309@gmx.at> <87y38bhm6i.fsf@mail.linkov.net> <5C249D48.1020608@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1545948408 32465 195.159.176.226 (27 Dec 2018 22:06:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 22:06:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 33871@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 23:06:44 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcdne-0008Hz-Mx for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 23:06:42 +0100 Original-Received: from localhost ([127.0.0.1]:55514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcdpl-0004ae-4k for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 17:08:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcdev-0000pz-Va for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:57:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcdTh-0005Cs-ST for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:46:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcdTe-0005Al-W3 for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:46:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcdTe-0006DJ-Sl for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2018 21:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33871-submit@debbugs.gnu.org id=B33871.154594715223839 (code B ref 33871); Thu, 27 Dec 2018 21:46:02 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 27 Dec 2018 21:45:52 +0000 Original-Received: from localhost ([127.0.0.1]:39589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcdTU-0006CQ-4Z for submit@debbugs.gnu.org; Thu, 27 Dec 2018 16:45:52 -0500 Original-Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:42174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcdTS-0006CH-4I for 33871@debbugs.gnu.org; Thu, 27 Dec 2018 16:45:51 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-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) Original-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@jurta.org Original-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@jurta.org X-MailChannels-Auth-Id: dreamhost X-Harmony-Descriptive: 0e45630b01959d8b_1545947148440_2197610677 X-MC-Loop-Signature: 1545947148440:3235524345 X-MC-Ingress-Time: 1545947148439 Original-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= Original-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@jurta.org) 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 In-Reply-To: <5C249D48.1020608@gmx.at> (martin rudalics's message of "Thu, 27 Dec 2018 10:37:12 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtdefgdelfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrudelfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrdduleefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153934 Archived-At: >> 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?