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: Mon, 04 Aug 2014 08:38:05 +0200 Message-ID: <87ppggoj3m.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> <87egwxputn.fsf@fencepost.gnu.org> <87sildliqr.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 1407136624 19553 80.91.229.3 (4 Aug 2014 07:17:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 07:17:04 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 04 09:16:57 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 1XECVq-0006zV-Sv for ged-emacs-devel@m.gmane.org; Mon, 04 Aug 2014 09:16:54 +0200 Original-Received: from localhost ([::1]:50657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XECVq-0002K5-7M for ged-emacs-devel@m.gmane.org; Mon, 04 Aug 2014 03:16:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XECVn-0002Jy-Hq for emacs-devel@gnu.org; Mon, 04 Aug 2014 03:16:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XECVm-0002Xb-LX for emacs-devel@gnu.org; Mon, 04 Aug 2014 03:16:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XECVm-0002XV-IP for emacs-devel@gnu.org; Mon, 04 Aug 2014 03:16:50 -0400 Original-Received: from localhost ([127.0.0.1]:38433 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XECVe-0008J8-Kn; Mon, 04 Aug 2014 03:16:42 -0400 Original-Received: by lola (Postfix, from userid 1000) id B8BE3E3065; Mon, 4 Aug 2014 08:38:05 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Sun, 03 Aug 2014 21:55:36 -0400") 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:173409 Archived-At: Richard Stallman writes: > [[[ 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. ]]] > > I don't want a wart like this in Emacs. Well, I am not sure about the size of the wart in practice. It has not apparently caused much of a disturbance for XEmacs. It certainly seems less relevant in practice than our traditional wart (info "(emacs) Left Margin Paren") with regard to reliable detection of strings out of context. The Elisp solution of providing a manual "\(" escape sequence does not work for languages such as Scheme/Guile and various others. I definitely see a use case for raw strings. It's also worth noting that python-mode appears to do a pretty good job finding and highlighting the various Python raw strings, and those should have similar problems. There will probably be outliers like those I constructed, but I have to admit that I have not run into them yet. I most certainly have run into the "Left Margin Paren" problem numerous times, in contrast. -- David Kastrup