]> git.eshelyaron.com Git - emacs.git/commit
Dired: Use invisibility-spec instead of selective-display
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 17 Mar 2019 17:35:20 +0000 (13:35 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 17 Mar 2019 17:35:20 +0000 (13:35 -0400)
commit5055e14dda041f4a4985d3663f19fa8ccb37cad6
tree282e553df14bc3914a7d24fb42bd57eee31b2d2d
parent2f50a990b756a0b3477455e28abc0dbd8d33a27e
Dired: Use invisibility-spec instead of selective-display

* lisp/dired.el (dired-subdir-regexp): No need to pay attention to \r.
(dired-remember-hidden): Use pcase-dolist and dired--hidden-p.
(dired-mode): Set invisibility-spec instead of selective-display.
(dired--hidden-p, dired--hide, dired--unhide, dired--find-hidden-pos):
New functions.
(dired-move-to-end-of-filename): Use dired--hidden-p.
(dired-next-subdir): No need to pay attention to \r.
(dired-fun-in-all-buffers): Use push.

* lisp/dired-aux.el (dired-unhide-subdir, dired-hide-subdir, dired-hide-all):
Use the new functions and with-silent-modifications.
(dired-add-entry): Use dired--hidden-p.
(dired-goto-subdir): No need to pay attention to \r.
(dired-hide-check): Remove.
(dired-subdir-hidden-p): Use dired--hidden-p.
(dired-do-find-regexp): Use file-name-as-directory.
lisp/dired-aux.el
lisp/dired.el