From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Hiding text in emacs buffer that matches regexp Date: Mon, 18 Dec 2006 06:04:36 +0200 Message-ID: References: <26face530612171259x1b5304fk65ed75d4b7a9e351@mail.gmail.com> NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1166414698 31004 80.91.229.10 (18 Dec 2006 04:04:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2006 04:04:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 18 05:04:56 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gw9kE-00011u-9A for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Dec 2006 05:04:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gw9kD-0001zV-Kd for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Dec 2006 23:04:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gw9jy-0001y5-Ka for help-gnu-emacs@gnu.org; Sun, 17 Dec 2006 23:04:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gw9jw-0001tR-2T for help-gnu-emacs@gnu.org; Sun, 17 Dec 2006 23:04:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gw9jv-0001tI-QV for help-gnu-emacs@gnu.org; Sun, 17 Dec 2006 23:04:35 -0500 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gw9jv-00082j-Aa for help-gnu-emacs@gnu.org; Sun, 17 Dec 2006 23:04:35 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-245-212.inter.net.il [84.229.245.212]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BHG50179 (AUTH halo1); Mon, 18 Dec 2006 06:04:29 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <26face530612171259x1b5304fk65ed75d4b7a9e351@mail.gmail.com> (kelly.terry.jones@gmail.com) 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:39679 Archived-At: > Date: Sun, 17 Dec 2006 13:59:18 -0700 > From: "Kelly Jones" > > How can I tell emacs: hide all text matching the Perl regex > "/^=item.*?=cut$/is" and replace it with "<>" or something similar. > > I still want the text to "be" in the buffer and want it saved to > disk-- I just don't want it displayed to me. Read the node "Invisible Text" in the ELisp manual. It describes how to make this happen.