From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Is there any way to have a string literal that is read "raw" Date: Sat, 09 Jul 2005 11:16:23 +0200 Message-ID: <85wto0baqg.fsf@lola.goethe.zz> References: <42CE8ADB.2000007@student.lu.se> <42CF847F.6000206@iue.tuwien.ac.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120921420 5861 80.91.229.2 (9 Jul 2005 15:03:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2005 15:03:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 09 17:03:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrGrD-0005vM-UX for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 17:03:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrGsh-0001ys-14 for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 11:04:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrGqM-0000u8-OF for emacs-devel@gnu.org; Sat, 09 Jul 2005 11:02:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrGqK-0000tK-U7 for emacs-devel@gnu.org; Sat, 09 Jul 2005 11:02:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrGqJ-0000lR-Sg for emacs-devel@gnu.org; Sat, 09 Jul 2005 11:02:12 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrGkk-0001Io-BO for emacs-devel@gnu.org; Sat, 09 Jul 2005 10:56:26 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DrGbB-0000Rh-Fb; Sat, 09 Jul 2005 10:46:33 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 3EDA41C4CCEE; Sat, 9 Jul 2005 11:16:23 +0200 (CEST) Original-To: Markus Gritsch In-Reply-To: <42CF847F.6000206@iue.tuwien.ac.at> (Markus Gritsch's message of "Sat, 09 Jul 2005 10:02:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:40692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40692 Markus Gritsch writes: > As Sean pointed out, it would also be convenient in such cases like > Regexps handling. > > Python for example has beside of the normal string also a notation for > a raw string: > > regex = r'^.*\n' Which still needs a delimiter, and you used \n which is _not_ regexp syntax. Now regex = 4H^.* (notice the literal newline) would be retro-chic. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum