From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Mon, 28 Jul 2014 10:29:41 +0900 Message-ID: <871tt6nud6.fsf@uwakimon.sk.tsukuba.ac.jp> References: <878ungor1v.fsf@uwakimon.sk.tsukuba.ac.jp> <8761ijng08.fsf@uwakimon.sk.tsukuba.ac.jp> <871tt7lzro.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1406511020 10523 80.91.229.3 (28 Jul 2014 01:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 01:30:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 28 03:30:11 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 1XBZlS-0006HN-Cz for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2014 03:30:10 +0200 Original-Received: from localhost ([::1]:37183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBZlR-00008U-KP for ged-emacs-devel@m.gmane.org; Sun, 27 Jul 2014 21:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBZlI-000053-EC for emacs-devel@gnu.org; Sun, 27 Jul 2014 21:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBZlA-0007fs-W8 for emacs-devel@gnu.org; Sun, 27 Jul 2014 21:30:00 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:38002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBZl2-0007eJ-Sk; Sun, 27 Jul 2014 21:29:45 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 7ED163FA0B00; Mon, 28 Jul 2014 10:29:41 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 733A21A28DD; Mon, 28 Jul 2014 10:29:41 +0900 (JST) In-Reply-To: <871tt7lzro.fsf@fencepost.gnu.org> X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.223 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:173193 Archived-At: David Kastrup writes: > Reports of XEmacs being dead may be exaggerated, but it does look a > lot like suspended animation. I'm OK with the latter description. > When rawstrings are supported, it becomes more expedient to recognize > things like \n and \t, probably also \f in regexps (\b is already > taken). Sure. AFAIK most of the modern regexp syntaxes do. I guess that it's possible that there are regexps out in the real world that contain "\n" and work because "n" would work there too, so that is a change in semantics. (It's a shame that Emacs doesn't consider that kind of thing an error, because it's almost certainly a bug.) I don't really see a point in \f, though. Emacs users (at least old-timers) are used to seeing "^L" in their code, and I haven't seen an Emacs configured to display that as an actual form feed in at least 20 years. \t is useful because it displays the same as a number (nondeterministic) of spaces, and \n is useful because embedding an actual newline in a string messes up your indentation, often leaving a lone double quote on the next line (when newline terminates the string).