[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wdired doesn't support flush-matching-lines; gets "Text is read only
From: |
Juri Linkov |
Subject: |
Re: Wdired doesn't support flush-matching-lines; gets "Text is read only" |
Date: |
Fri, 18 Dec 2009 00:29:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) |
> In Emacs 22 I was able to use toggle-read-only followed by
> flush-matching-lines to filter viewed files.
>
> In Emacs 23, ^X^Q is now bound to dired-toggle-read-only and when
> I use flush-matching-lines I get "Text is read only."
>
> A view of the source shows a custom variable kill-read-only-ok but it
> appears to have no effect on flush-matching-lines.
Please note that it's dangerous to delete lines in Wdired-mode,
because it might interpret deleting lines as an order to delete files!
> Is there a way to be able to let flush-matching-lines work on dired
> buffers to hide the view of non-relevant files without deleting the
> actual files?
>
> Alternatively, is there another way to satisfy my use case of using
> a regular expression and individual hides to filter files from
> dired view?
This is easy. You can mark files by a regexp and type `k' to delete the
lines of the marked files. See also (info "(emacs) Dired Updating").
--
Juri Linkov
http://www.jurta.org/emacs/