From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Sun, 03 Aug 2014 15:27:16 +0200 Message-ID: <87egwxputn.fsf@fencepost.gnu.org> 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> <87zjfmowu0.fsf@fencepost.gnu.org> <87y4v5lntb.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407072471 14896 80.91.229.3 (3 Aug 2014 13:27:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Aug 2014 13:27:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 03 15:27:41 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 1XDvp6-0005pb-Bm for ged-emacs-devel@m.gmane.org; Sun, 03 Aug 2014 15:27:40 +0200 Original-Received: from localhost ([::1]:48084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDvp5-0005Y6-TA for ged-emacs-devel@m.gmane.org; Sun, 03 Aug 2014 09:27:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDvp2-0005Xq-AV for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:27:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDvp1-0007DM-Bu for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:27:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDvp1-0007DI-8Y for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:27:35 -0400 Original-Received: from localhost ([127.0.0.1]:51287 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDvp0-0007dt-DK; Sun, 03 Aug 2014 09:27:34 -0400 Original-Received: by lola (Postfix, from userid 1000) id AEAFBE3067; Sun, 3 Aug 2014 15:27:16 +0200 (CEST) In-Reply-To: <87y4v5lntb.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Sun, 03 Aug 2014 22:12:16 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:173401 Archived-At: "Stephen J. Turnbull" writes: > I'm not really worried about more complex. I am concerned about > whether there's an unambiguous answer to "what is the value -- or > error -- of eval-print-last-sexp at point?" > > In the case of > > (format "%s%c\n""r#"?\")-!- > > it's "r#\"\n". But for > > (format "%s%c\n""r#"?\"-!-) > > you could argue that it's ?\" (that's XEmacs's opinion) or "?\\". I > guess for XEmacs (which already has this syntax in the wild) the rule > should be "longest match wins" (because otherwise there's no way to > evaluate r#"?\" in an interactive buffer), but for Emacs that looks > like a deal-killer, and it's already present with just r#"?\". I don't understand the reason why this should be a deal-killer for Emacs but not for XEmacs. Is this because of different syntax infrastructure? Or a different tolerance level for conveivable but unlikely problems? Is XEmacs going to run into the same problems when ingesting some of Emacs' highlighting/parsing stuff? -- David Kastrup