bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33458: 27.0.50; dired loses position when reverted from outside plac


From: martin rudalics
Subject: bug#33458: 27.0.50; dired loses position when reverted from outside place
Date: Fri, 14 Dec 2018 10:34:05 +0100

> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]