From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Wdired doesn't support flush-matching-lines; gets "Text is read only" Date: Fri, 18 Dec 2009 00:29:42 +0200 Organization: JURTA Message-ID: <87ljh1gs5d.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261089079 29234 80.91.229.12 (17 Dec 2009 22:31:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 22:31:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Klotz\, Leigh" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 17 23:31:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NLOrs-0003g2-4H for ged-emacs-devel@m.gmane.org; Thu, 17 Dec 2009 23:30:44 +0100 Original-Received: from localhost ([127.0.0.1]:56944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLOrr-0005bk-Tc for ged-emacs-devel@m.gmane.org; Thu, 17 Dec 2009 17:30:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLOrk-0005XU-H7 for emacs-devel@gnu.org; Thu, 17 Dec 2009 17:30:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLOrf-0005Nh-L0 for emacs-devel@gnu.org; Thu, 17 Dec 2009 17:30:36 -0500 Original-Received: from [199.232.76.173] (port=51176 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLOrf-0005NG-6o for emacs-devel@gnu.org; Thu, 17 Dec 2009 17:30:31 -0500 Original-Received: from smtp-out3.starman.ee ([85.253.0.5]:54097 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLOre-0005td-Rh for emacs-devel@gnu.org; Thu, 17 Dec 2009 17:30:31 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.31.182.cable.starman.ee [82.131.31.182]) by mx1.starman.ee (Postfix) with ESMTP id 4E0D93F40B0; Fri, 18 Dec 2009 00:30:24 +0200 (EET) In-Reply-To: (Leigh Klotz's message of "Thu, 17 Dec 2009 09:58:16 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118684 Archived-At: > 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/