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 18:49:20 +0200 Message-ID: <85fyun2acv.fsf@lola.goethe.zz> References: <42CE8ADB.2000007@student.lu.se> <42CF847F.6000206@iue.tuwien.ac.at> <85wto0baqg.fsf@lola.goethe.zz> <42CFFB40.1060509@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120928685 21279 80.91.229.2 (9 Jul 2005 17:04:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2005 17:04:45 +0000 (UTC) Cc: Markus Gritsch , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 09 19:04:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrIkb-0007OU-Py for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 19:04:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrIm4-0008Kw-Uj for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 13:05:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrIh2-0007Qk-Rh for emacs-devel@gnu.org; Sat, 09 Jul 2005 13:00:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrIgn-0007HU-Cm for emacs-devel@gnu.org; Sat, 09 Jul 2005 13:00:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrIgl-0007D9-RY for emacs-devel@gnu.org; Sat, 09 Jul 2005 13:00:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrIcy-0008Bm-Vb for emacs-devel@gnu.org; Sat, 09 Jul 2005 12:56:33 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DrITO-0002iD-KU; Sat, 09 Jul 2005 12:46:38 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B9E291C4CCEF; Sat, 9 Jul 2005 18:49:20 +0200 (CEST) Original-To: Lennart Borgman In-Reply-To: <42CFFB40.1060509@student.lu.se> (Lennart Borgman's message of "Sat, 09 Jul 2005 18:28:48 +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:40696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40696 Lennart Borgman writes: > David Kastrup wrote: > >>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. >> > You still need escaping, or course, but only for the delimeter. No. There is no escaping whatsoever, nor is there a delimiter. The 4 before the H is a character count. And H stands for "Hollerith code", the punch card predecessor of "ASCII code". Looks like you are not oldtimer enough to belong to the retro-chiqueria. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum