GNU bug report logs -
#33458
27.0.50; dired loses position when reverted from outside place
Previous Next
Reported by: v88m <at> posteo.net
Date: Wed, 21 Nov 2018 20:46:01 UTC
Severity: minor
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Something new:
>
> Error in post-command-hook (dired--revert): (file-missing "Setting current directory" "No such file or directory" "~/MY-DIR/")
>
> (Note: ~/MY-DIR/ was deleted, couple of another actions (dirs creation,
> deletion) take place before this error occurred).
>
> I use `post-command-hook' for my `dired--revert', it just
> conditional wrapper for `dired-revert':
>
> (defun dired--revert ()
> (when (and (eq major-mode 'dired-mode)
> (memq this-command '(previous-buffer
> next-buffer
> kill-buffer
> quit-window
> bury-buffer
> other-buffer
> switch-to-buffer
> dired-up-directory
> switch-to-buffer-other-window
> switch-to-buffer-other-frame
> helm-maybe-exit-minibuffer)))
> (dired-revert)))
>
> Currently `dired--revert' is autoremoved from
> `post-command-hook', so it (and `dired-revert' per se) is the culprit.
What's new about this? When I'm in a dired buffer, delete the
directory it shows and then do M-: (dired-revert) I get a similar
error here.
martin
This bug report was last modified 4 years and 331 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.