From df667e9f17a071a6471f629d994f6298c2ec0a9d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 23 Jul 2022 09:33:18 +0200 Subject: [PATCH] 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). --- lisp/dired.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.5