From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Gritsch Newsgroups: gmane.emacs.devel Subject: Re: Is there any way to have a string literal that is read "raw" Date: Sat, 09 Jul 2005 10:02:07 +0200 Message-ID: <42CF847F.6000206@iue.tuwien.ac.at> References: <42CE8ADB.2000007@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120899203 21270 80.91.229.2 (9 Jul 2005 08:53:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2005 08:53:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 09 10:53:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrB5I-00063n-8S for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 10:53:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrB6k-0003dF-7m for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 04:54:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrArA-00068C-KP for emacs-devel@gnu.org; Sat, 09 Jul 2005 04:38:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrAqg-00060Z-8L for emacs-devel@gnu.org; Sat, 09 Jul 2005 04:38:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrAhO-0005JH-KJ for emacs-devel@gnu.org; Sat, 09 Jul 2005 04:28:35 -0400 Original-Received: from [195.3.96.102] (helo=email.aon.at) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrAP2-0004gX-Az for emacs-devel@gnu.org; Sat, 09 Jul 2005 04:09:36 -0400 Original-Received: (qmail 27536 invoked from network); 9 Jul 2005 08:02:14 -0000 Original-Received: from m266p018.adsl.highway.telekom.at (HELO [10.0.0.5]) ([62.47.201.50]) (envelope-sender ) by smarthub71.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 9 Jul 2005 08:02:14 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en Original-To: emacs-devel@gnu.org In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40683 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40683 Richard M. Stallman wrote: > Is it possible to tell Emacs not to interpret escape character in a > certain string? If I have something like this: > > (setq str "some\thing\escaped") > > Can this be changed without changing the literal so that Emacs takes > exactly what is in the string, without escaping any characters? > > I would not dream of changing something as fundamental as string > syntax for something as specific as filename handling, even if it were > meant to be used on the GNU system. And since it is merely for the > sake of Windows, an unethical system that we aim to replace, the > motive is even further from sufficient. > > Nothing important in the design of Emacs should be designed for the > sake of Windows, because that would be giving Windows influence it > should not have. I think the intention of the question was not solely bound to support Windows path names, and steering the topic into the direction of how evil this OS is does certainly not lead to a solution. As Sean pointed out, it would also be convenient in such cases like Regexps handling. Python for example has beside of the normal string also a notation for a raw string: regex = r'^.*\n' Kind regards, Markus