From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Fri, 25 Jul 2014 14:33:52 -0600 Message-ID: <871tt9i3f3.fsf@fleche.redhat.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406320455 8626 80.91.229.3 (25 Jul 2014 20:34:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 20:34:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Matthew Plant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 25 22:34:09 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 1XAmBs-00054J-S9 for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 22:34:08 +0200 Original-Received: from localhost ([::1]:56642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAmBs-0000Hf-FT for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 16:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAmBl-0000GZ-IE for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAmBg-00070g-Fg for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:34:01 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:27996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAmBg-00070S-8I for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:33:56 -0400 Original-Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6PKXraZ029575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Jul 2014 16:33:53 -0400 Original-Received: from barimba (ovpn-113-99.phx2.redhat.com [10.3.113.99]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6PKXqir006698 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Fri, 25 Jul 2014 16:33:53 -0400 X-Attribution: Tom In-Reply-To: (Matthew Plant's message of "Fri, 25 Jul 2014 12:47:45 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 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:173154 Archived-At: Matthew> What if we assume that any string surrounded immediately by Matthew> parenthesis is a raw string literal? I'm pretty sure every Matthew> instance of ("...") is currently illegal, and it would be Matthew> almost certainly trivial to extend the Emacs' lexer/parser to Matthew> support it. I can do it myself if everyone thinks this is a Matthew> good idea. That kind of thing is valid in quoted contexts though. (defvar whatever '("hi")) FWIW there was a previous discussion about raw strings: http://comments.gmane.org/gmane.emacs.devel/152132 I think this killed the idea: http://permalink.gmane.org/gmane.emacs.devel/152155 Tom