From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Raw strings (experimental patches inside) Date: Sat, 11 Aug 2012 21:05:03 +0400 Message-ID: <502690BF.8090503@yandex.ru> References: <50258C47.3090004@yandex.ru> <878vdlswar.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344704718 28613 80.91.229.3 (11 Aug 2012 17:05:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 17:05:18 +0000 (UTC) Cc: vrrm00@gmail.com, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 11 19:05:16 2012 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 1T0F7i-0006NW-IK for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 19:05:14 +0200 Original-Received: from localhost ([::1]:55075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0F7h-0006wW-9d for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 13:05:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0F7e-0006vz-Gq for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:05:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0F7a-0002S9-QZ for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:05:10 -0400 Original-Received: from forward13.mail.yandex.net ([95.108.130.120]:49340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0F7a-0002Lx-Fi for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:05:06 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward13.mail.yandex.net (Yandex) with ESMTP id D468D142353; Sat, 11 Aug 2012 21:05:01 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1344704702; bh=M8A/tS3tEbYcILHi+FnY8MkCJB0udtOc+l/Kg4geDHQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DyslzxlGEDPOfnvEmIiSHJ3zpU3eiJjTt1SheXuvLZBuTcFdyHBgnMRsQaylostHC 2ft8sL65CrXwiNbq0iRABR7EWyhHVCOjjgAa6mwo0t3unHDl/Y2N+SMun3szPe+KXb Zx6rf/36jrrFCzxF22/ff6LYQoohATrv62DrjGkM= Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 8E77A1B6073E; Sat, 11 Aug 2012 21:05:01 +0400 (MSK) Original-Received: from dynamicip-188-187-113-24.pppoe.volgograd.ertelecom.ru (dynamicip-188-187-113-24.pppoe.volgograd.ertelecom.ru [188.187.113.24]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 51ZGBBdg-51ZepbM2; Sat, 11 Aug 2012 21:05:01 +0400 X-Yandex-Rcpt-Suid: stephen@xemacs.org X-Yandex-Rcpt-Suid: monnier@IRO.UMontreal.CA X-Yandex-Rcpt-Suid: vrrm00@gmail.com X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1344704701; bh=M8A/tS3tEbYcILHi+FnY8MkCJB0udtOc+l/Kg4geDHQ=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=S3LYx3H0Yk2CBDPVuREAbKVfWYMLvzQBPhNXOAstyFJfo5P1mAOhYpTrEftrbcO48 INwV5VCenIKR1eAPTAcprsuGuVN5CR0x5BUhzehtsDfZsvuW2YxonVwKx71tz0Yw3n hww+1QtGkdUfPgzOaH3VvdASPkVVQT1G5RGSAZMg= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <878vdlswar.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 95.108.130.120 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:152437 Archived-At: On 11.08.2012 11:49, Stephen J. Turnbull wrote: > > This would be a backward-incompatible change to the regexp engine, > > wouldn't it? > > Not to the matching engine, but to the regexp compiler. > > It would be reasonable easy to implement backward-compatibly: if a > string's first character has a non-nil "punc-are-operators" property, > then all punctuation would be interpreted as regex operators *unless* > they are escaped. At which point would the string obtain this text property? If we're discussing the case of using it in Elisp source code, this would need to be done in the reader, no? Which brings us back to "special syntax". To be clear, I'm in favor of special syntax for regexps (raw strings or otherwise), and I was trying to argue that adding special syntax might be easier than work around the backward compatibility problem. > Neither the property name nor the API are likely to be optimal, but it > would work. You could also do it with some kind of variable. I suppose it would work if the new variable is used similarly to `lexical-binding'.