From: Lars Ingebrigtsen Date: Sat, 23 Jul 2022 07:33:18 +0000 (+0200) Subject: Fix wdired entry when there are hidden subdirs X-Git-Tag: emacs-29.0.90~1447^2~789 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=df667e9f17a071a6471f629d994f6298c2ec0a9d;p=emacs.git Fix wdired entry when there are hidden subdirs * lisp/dired.el (dired--unhide): Allow `C-c C-q' to work when there are hidden inserted subdirs (bug#56698). --- diff --git a/lisp/dired.el b/lisp/dired.el index 59346a19014..7cdcc3438d8 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2964,10 +2964,11 @@ See options: `dired-hide-details-hide-symlink-targets' and ;; approximate ("anywhere on the line is fine"). ;; FIXME: This also removes other invisible properties! (save-excursion - (remove-list-of-text-properties - (progn (goto-char start) (line-end-position)) - (progn (goto-char end) (line-end-position)) - '(invisible)))) + (let ((inhibit-read-only t)) + (remove-list-of-text-properties + (progn (goto-char start) (line-end-position)) + (progn (goto-char end) (line-end-position)) + '(invisible))))) ;;; Functions for finding the file name in a dired buffer line