From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Raw strings (experimental patches inside) Date: Sat, 11 Aug 2012 16:49:16 +0900 Message-ID: <878vdlswar.fsf@uwakimon.sk.tsukuba.ac.jp> References: <50258C47.3090004@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1344671369 31055 80.91.229.3 (11 Aug 2012 07:49:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 07:49:29 +0000 (UTC) Cc: vrrm00@gmail.com, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 11 09:49:28 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 1T06Rl-0002aB-WA for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 09:49:22 +0200 Original-Received: from localhost ([::1]:46602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T06Rl-00059n-0E for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 03:49:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T06Ri-00059i-TU for emacs-devel@gnu.org; Sat, 11 Aug 2012 03:49:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T06Rh-00014Z-VD for emacs-devel@gnu.org; Sat, 11 Aug 2012 03:49:18 -0400 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:43344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T06Rh-00014S-L2 for emacs-devel@gnu.org; Sat, 11 Aug 2012 03:49:17 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 7F11A9708A7; Sat, 11 Aug 2012 16:49:16 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 40A5111F88A; Sat, 11 Aug 2012 16:49:16 +0900 (JST) In-Reply-To: <50258C47.3090004@yandex.ru> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" b4715fcbe001 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 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:152431 Archived-At: Dmitry Gutov writes: > 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. 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.