]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix wdired entry when there are hidden subdirs
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 23 Jul 2022 07:33:18 +0000 (09:33 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 23 Jul 2022 07:33:18 +0000 (09:33 +0200)
* lisp/dired.el (dired--unhide): Allow `C-c C-q' to work when
there are hidden inserted subdirs (bug#56698).

lisp/dired.el

index 59346a190146fd4df186e14a33f99d79f2f3f168..7cdcc3438d816d7a9bb9e9fb9048af37c420a5bd 100644 (file)
@@ -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