From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Tfardy Newsgroups: gmane.emacs.help Subject: Re: Remove all lines containig a keyword Date: Sun, 14 Sep 2008 18:16:32 +0200 Message-ID: <6j4rn2F1elujU1@mid.individual.net> References: <22932311-7aca-41eb-b2d9-796c53229c80@o40g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221410558 2644 80.91.229.12 (14 Sep 2008 16:42:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 16:42:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 18:43:34 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KeuhB-000839-7t for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 18:43:33 +0200 Original-Received: from localhost ([127.0.0.1]:54983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Keug9-0002n6-GJ for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 12:42:29 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-X-Trace: individual.net xlxo54YL4YO/TUzkj7glcgYdN5p/fFJApDcVdrimb6XuyRqtzq Cancel-Lock: sha1:iujHf3LTazgEeI339G+nRBQUJlg= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <22932311-7aca-41eb-b2d9-796c53229c80@o40g2000prn.googlegroups.com> Original-Xref: news.stanford.edu gnu.emacs.help:162234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57576 Archived-At: Xah schrieb: > On Sep 14, 2:08 am, Christian Herenz > wrote: >> Hi, >> I have a huge list of "stuff" I sell / sold. >> To print out an actual list, without the stuff that is sold already, It would be >> nice to have a command for doing this task automated - Remove all lines with the >> keyword "sold". >> Thanks for your Help, >> Christian > > you can just use M-x delete-matching-lines. ,----[ C-h f delete-matching-lines RET ] | delete-matching-lines is an alias for `flush-lines' in `replace.el'. | (delete-matching-lines regexp &optional rstart rend interactive) `---- As posted by Davin Pearson. regards Marc