From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Raw strings (experimental patches inside) Date: Fri, 10 Aug 2012 11:13:51 -0400 Message-ID: References: <651F6603-F798-4381-929E-7D86A28DBC4D@gmail.com> <502464D6.4000103@gmail.com> <87wr1749m0.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344611640 8536 80.91.229.3 (10 Aug 2012 15:14:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 15:14:00 +0000 (UTC) Cc: Vr Rm , Emacs development discussions To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 10 17:14:00 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 1SzquW-0002p6-JE for ged-emacs-devel@m.gmane.org; Fri, 10 Aug 2012 17:14:00 +0200 Original-Received: from localhost ([::1]:48025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzquV-0004sf-PA for ged-emacs-devel@m.gmane.org; Fri, 10 Aug 2012 11:13:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzquR-0004sF-Ci for emacs-devel@gnu.org; Fri, 10 Aug 2012 11:13:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzquQ-0005bo-CC for emacs-devel@gnu.org; Fri, 10 Aug 2012 11:13:55 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzquQ-0005bi-7x for emacs-devel@gnu.org; Fri, 10 Aug 2012 11:13:54 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q7AFDphZ000993; Fri, 10 Aug 2012 11:13:51 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 87C20B4177; Fri, 10 Aug 2012 11:13:51 -0400 (EDT) In-Reply-To: <87wr1749m0.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Fri, 10 Aug 2012 14:08:39 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4306=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4306> : streams <797207> : uri <1188938> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:152412 Archived-At: >> > That is not a problem significant enough to warrant the >> > introduction of something like raw-strings. > Oh, come on, Stefan. That's just elitism. No. My immediate response was simply based on the fact that searching for backslashes is not something people do often. Of course, if I had taken the time to think about it some more, I'd have pointed out that raw strings don't help with interactive use of Emacs but only with writing Elisp code, so "searching for backslashes" is even less of a justification for introducing raw strings. > If insults won't persuade you, here are some real benefits. > raw-strings are a huge convenience when writing.[1] They correspond to > the way you enter a regexp to isearch, and to the documentation. They And here we're back at regexps. I already agreed that they're convenient for regexps, but pointed out that a better solution would be to fix the regexp syntax so it doesn't backslash-escape every special character. That would help not just Elisp coders but Emacs users as well and would make Elisp regexps even more readable than raw strings can ever hope to make them. Stefan