GNU bug report logs - #33871
27.0.50; Revert Dired window saved in window configuration

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Dec 2018 21:43:01 UTC

Severity: minor

Found in version 27.0.50

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 33871 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration
Date: Sat, 19 Feb 2022 19:08:12 +0200
>>                  (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.




This bug report was last modified 1 year and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.