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:40:14 +0200 Organization: Organization?!? Message-ID: <87a97lpu81.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 1407073251 22754 80.91.229.3 (3 Aug 2014 13:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Aug 2014 13:40:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 03 15:40:44 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 1XDw1k-0004BL-PF for ged-emacs-devel@m.gmane.org; Sun, 03 Aug 2014 15:40:44 +0200 Original-Received: from localhost ([::1]:48103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDw1k-00077I-AG for ged-emacs-devel@m.gmane.org; Sun, 03 Aug 2014 09:40:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDw1c-00077C-Ky for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:40:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDw1W-0001x3-Kx for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:40:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDw1W-0001wx-Bn for emacs-devel@gnu.org; Sun, 03 Aug 2014 09:40:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XDw1U-0003rW-Ri for emacs-devel@gnu.org; Sun, 03 Aug 2014 15:40:28 +0200 Original-Received: from pd9568328.dip0.t-ipconnect.de ([217.86.131.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Aug 2014 15:40:28 +0200 Original-Received: from dak by pd9568328.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Aug 2014 15:40:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9568328.dip0.t-ipconnect.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:E2mK5sjbRpQXh+33xvgFPtzn/AQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:173402 Archived-At: "Stephen J. Turnbull" writes: > 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) Which is correct according the surrounding syntax. > 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), Longest single-sexp match would be r#"?\" since the correct interpretation "r#"?\" are actually _two_ sexps. So the "correct" single sexp match in _this_ example would indeed be the shortest match ?\" here. Obviously, depending on what transpires before, it is equally easy to have the longer match be correct. -- David Kastrup