From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Wed, 30 Jul 2014 16:54:43 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87bns6in3g.fsf@lifelogs.com> References: <878ungor1v.fsf@uwakimon.sk.tsukuba.ac.jp> <8761ijng08.fsf@uwakimon.sk.tsukuba.ac.jp> <871tt7lzro.fsf@fencepost.gnu.org> <53D567FD.4030708@porkrind.org> <87r412iobp.fsf@lifelogs.com> <53D9586F.6020705@porkrind.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406753724 6992 80.91.229.3 (30 Jul 2014 20:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2014 20:55:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 30 22:55:14 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCau1-00072F-0t for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2014 22:55:13 +0200 Original-Received: from localhost ([::1]:53172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCau0-0008SY-Og for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2014 16:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCats-0008Nu-Lb for emacs-devel@gnu.org; Wed, 30 Jul 2014 16:55:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCatm-0002LV-P2 for emacs-devel@gnu.org; Wed, 30 Jul 2014 16:55:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCatm-0002LM-IA for emacs-devel@gnu.org; Wed, 30 Jul 2014 16:54:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XCatk-0006nR-Tq for emacs-devel@gnu.org; Wed, 30 Jul 2014 22:54:56 +0200 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2014 22:54:56 +0200 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2014 22:54:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:9OT9AvtBCGVOedpLYPe2BWZueRY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173300 Archived-At: On Wed, 30 Jul 2014 13:41:19 -0700 David Caldwell wrote: DC> On 7/30/14 1:28 PM, Ted Zlatanov wrote: >> On Sun, 27 Jul 2014 13:58:37 -0700 David Caldwell wrote: >> DC> Why not, then, skip rawstrings completely and go directly to a regular DC> expression reader: #r// (or even just #//) instead of #r""? >> >> For shell commands, for instance, it would be convenient to have >> rawstrings because they often have internal backslash escapes. DC> That's precisely the point I made later in my email Sorry I didn't see it. DC> rawstrings used in shell don't want things like \n escaped, but DC> regexps do (otherwise you have to add "\n" literal support to the DC> regexp engine). There's 2 usages with competing semantics trying to DC> use one generic interface. I still posit that having a syntax DC> directly for regexps would be beneficial. And I think focusing on DC> regexps is more important in Emacs as it happens more than DC> complicated shell commands. Heredocs are generally useful and popular and would also be supported by this syntax. But please don't take that as a knock against regexp literal support, it's just not something I have needed. DC> Sadly it sounds like a the #r// would be a no-go due to the Emacs DC> requirements of parsing it in reverse (I assume because '/' is a valid DC> lisp symbol character). I have no opinion on that, I just want a simple syntax for literal data :) How about using a Unicode character as the marker? (prepares for stoning) Ted