From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jeremiah.dodds@gmail.com Newsgroups: gmane.emacs.help Subject: Re: replacing phrases: matching line feeds in regular expressions, since \s- doesn't work Date: Sat, 18 Feb 2012 21:47:09 -0500 Message-ID: <87ty2nh74i.fsf@gmail.com> References: <87ehts2ayk.fsf@gmail.com> <01FAFF31-6E41-42AE-BA6A-BAD4283C336B@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329619657 24424 80.91.229.3 (19 Feb 2012 02:47:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2012 02:47:37 +0000 (UTC) Cc: Steve Petersen , GNU Emacs List To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 19 03:47:36 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RywoJ-0002mI-Lc for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Feb 2012 03:47:36 +0100 Original-Received: from localhost ([::1]:51230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RywoI-0002O9-UZ for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 21:47:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RywoE-0002O2-4e for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 21:47:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RywoD-0006zK-2x for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 21:47:30 -0500 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:50595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RywoC-0006zG-Qs for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 21:47:28 -0500 Original-Received: by dadv6 with SMTP id v6so4863128dad.0 for ; Sat, 18 Feb 2012 18:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.68.237.106 as permitted sender) client-ip=10.68.237.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.68.237.106 as permitted sender) smtp.mail=jeremiah.dodds@gmail.com; dkim=pass header.i=jeremiah.dodds@gmail.com Original-Received: from mr.google.com ([10.68.237.106]) by 10.68.237.106 with SMTP id vb10mr47882754pbc.4.1329619648141 (num_hops = 1); Sat, 18 Feb 2012 18:47:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=7YWlt3avuEzANw2kcbP6quF/eZZLsJuPuNssZs64mPw=; b=HuhJlCwkcXr0pr2zt7J8UzKMDbKCTRMg32vQ/fGBw/pees7Xz0jaGS4F+zta73c5MJ 16riXHYf+NxoroisNcyD5gof75i6+DgkVh8hpXlrwBxLKid09kd6A2s4V2hGdYYgucS5 Mhb8DcmN73m+uTL/JgayJyt+bdYdabltxEkhk= Original-Received: by 10.68.237.106 with SMTP id vb10mr39223507pbc.4.1329619648105; Sat, 18 Feb 2012 18:47:28 -0800 (PST) Original-Received: from destructor (ip98-180-233-170.cl.ri.cox.net. [98.180.233.170]) by mx.google.com with ESMTPS id x6sm9329107pbp.31.2012.02.18.18.47.24 (version=SSLv3 cipher=OTHER); Sat, 18 Feb 2012 18:47:26 -0800 (PST) In-Reply-To: <01FAFF31-6E41-42AE-BA6A-BAD4283C336B@Web.DE> (Peter Dyballa's message of "Sat, 18 Feb 2012 21:44:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83798 Archived-At: Peter Dyballa writes: > Am 18.2.2012 um 20:33 schrieb jeremiah.dodds@gmail.com: > >> M-x replace-regexp foo[ ^TAB^j]*bar[ ^TAB^j]*baz[ ^TAB^j] RET fbb RET > > Exactly! A TAB has to be entered as C-q TAB and a line feed as C-q C-j. The > textual descriptions of control characters are a bit too complicated. These are > not the same in different versions of GNU Emacs while the hard ones are since > eons. I can't *quite* tell if you're being sarcastic. The thing I wrote is unnecessary, I'm sure -- I don't use emacs' regular expression support for much of anything past fairly simple replacements these days, preferring elisp functions and macros for editing tasks that I could do with a huge regex.