dired-hacks
dired-hacks copied to clipboard
Failed to narrow after recovering from invisibility
Hi, I use emacs 24.5.1 with spacemacs 0.105.9 on Ubuntu 15.10. Steps to reproduce. 0. use (setq dired-narrow-exit-action 'dired-narrow-find-file)
- filter some directory out
- restore this directory
- select this directory and hit enter
I got an empty screen and stay in the same directory.
I have found that
(dired-utils-goto-line dired-narrow--current-file)
returns nil, so I thought that this caused by the remained properties. I replaced(remove-text-properties (point-min) (point-max) '(invisible))
(here) with(set-text-properties (point-min) (point-max) '())
and it seems working now, but I do not know whether it is a good solution.