From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Sun, 03 Aug 2014 21:55:18 -0400 Message-ID: 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> <87bns6in3g.fsf@lifelogs.com> <20140802084744.GA3541@acm.acm> <87vbqbqmn3.fsf@fencepost.gnu.org> <8738dem5hr.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1407117333 20382 80.91.229.3 (4 Aug 2014 01:55:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 01:55:33 +0000 (UTC) Cc: dak@gnu.org, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 04 03:55:28 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 1XE7Uk-00044l-Ee for ged-emacs-devel@m.gmane.org; Mon, 04 Aug 2014 03:55:26 +0200 Original-Received: from localhost ([::1]:49859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE7Uj-0006KZ-Tc for ged-emacs-devel@m.gmane.org; Sun, 03 Aug 2014 21:55:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE7Uf-0006Gt-GP for emacs-devel@gnu.org; Sun, 03 Aug 2014 21:55:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XE7Ud-00056i-PK for emacs-devel@gnu.org; Sun, 03 Aug 2014 21:55:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE7Ud-00056e-Mx for emacs-devel@gnu.org; Sun, 03 Aug 2014 21:55:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XE7Uc-0004xu-OC; Sun, 03 Aug 2014 21:55:18 -0400 In-reply-to: <8738dem5hr.fsf@uwakimon.sk.tsukuba.ac.jp> (stephen@xemacs.org) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:173407 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] By catching the parse error when parsing it as a (normal) string, then reparsing it as a raw string (ie, running backwards over the characters until you hit the second ?"), and check for a leading #r (two tokens of lookahead). That is easier said than done. People can give it a try. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.