From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhu Zihao Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Interpret #r"..." as a raw string Date: Sun, 28 Feb 2021 14:22:25 +0800 Message-ID: <86r1l090f2.fsf@163.com> References: <20210227.031857.1351840144740816188.conao3@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18214"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.1 Cc: emacs-devel@gnu.org To: Naoya Yamashita Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 28 07:24:00 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 1lGFUm-0004dJ-Du for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Feb 2021 07:24:00 +0100 Original-Received: from localhost ([::1]:52434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGFUl-0004wu-GO for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Feb 2021 01:23:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGFTj-0004TK-8n for emacs-devel@gnu.org; Sun, 28 Feb 2021 01:22:55 -0500 Original-Received: from m12-15.163.com ([220.181.12.15]:36706) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lGFTd-0000nf-G1 for emacs-devel@gnu.org; Sun, 28 Feb 2021 01:22:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Message-ID:Date:MIME-Version; bh=NES9e 0UOMREF1dEUQzQZwrNmASTMw1zMTQFlccag558=; b=cYCk7Duki1JgzVU7Dxh5C 3fh+IO+a89hC8U75VyeD7vBLV2hn8AVd56NXv0qvNI7smWTOOLRtYswQoSvcmDwr hlCCIyG0o+19lpRveE35IpL5/ZQDDKdQ7+TpE4DhofC+9z5QvMXoyJtL3WP/kEDC nk6xs9gknrX21EtcfD5i9w= Original-Received: from asus-laptop (unknown [113.102.100.159]) by smtp11 (Coremail) with SMTP id D8CowADX3xOlNjtgwSTfDA--.510S2; Sun, 28 Feb 2021 14:22:32 +0800 (CST) In-reply-to: <20210227.031857.1351840144740816188.conao3@gmail.com> X-CM-TRANSID: D8CowADX3xOlNjtgwSTfDA--.510S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUn38nDUUUU X-Originating-IP: [113.102.100.159] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBZghHr1aD65IQmQAAsj Received-SPF: pass client-ip=220.181.12.15; envelope-from=all_but_last@163.com; helo=m12-15.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:265745 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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'm with raw string reader syntax because I often want my program be self-documenting, so I write a lot in docstring. BTW, Naoya, have you test raw string syntax in propertized string? e.g. #(#r"foo bar" ....) =2D-=20 Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIsEARYIADMWIQTUepyLKuOQW1Y9kTW+QrNSqfaCHwUCYDs2oRUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQvkKzUqn2gh+WNQEAhROSpZ/OlTF8IaI+Ot6Idm/a9ija ad05z8HFNLqubTQBANpxQ/VQhWz69+P4JUqqRnXCKsS83k2xAvcl17Y0+DEN =XfaV -----END PGP SIGNATURE----- --=-=-=--