From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Interpret #r"..." as a raw string Date: Mon, 01 Mar 2021 00:26:14 -0500 Message-ID: References: <20210227.031857.1351840144740816188.conao3@gmail.com> <86r1l090f2.fsf@163.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: conao3@gmail.com, emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 01 06:27:27 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGb5b-0000Px-3M for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Mar 2021 06:27:27 +0100 Original-Received: from localhost ([::1]:43232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGb5a-00023f-5s for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Mar 2021 00:27:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGb4S-0001eT-Nv for emacs-devel@gnu.org; Mon, 01 Mar 2021 00:26:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38831) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGb4S-00005L-A5; Mon, 01 Mar 2021 00:26:16 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lGb4Q-0003po-2J; Mon, 01 Mar 2021 00:26:14 -0500 In-Reply-To: <86r1l090f2.fsf@163.com> (message from Zhu Zihao on Sun, 28 Feb 2021 14:22:25 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265767 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. ]]] > Is #r"..." convenient enough? > If I have a string with lots of double quotes, I still have to escape > every duoble quote. > Maybe better to change to #r"..."r#, or even #r<<<<"...">>>>r# (user can > insert any number of < and > but they must be paired to avoid the > escape.) I suggest writing the code to move backwards over various possible syntaxes to determine which ones work well for backward parsing. Then choose the syntax based on that. I've done that in the past. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)