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: Is there any way to have a string literal that is read "raw" Date: Fri, 08 Jul 2005 18:12:38 +0200 Message-ID: <85wto1e0p5.fsf@lola.goethe.zz> References: <42CE8ADB.2000007@student.lu.se> <85eka9fi9d.fsf@lola.goethe.zz> <42CEA077.8070202@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120839939 25767 80.91.229.2 (8 Jul 2005 16:25:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2005 16:25:39 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 18:25:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dqvf0-0008Ko-LO for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2005 18:25:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqvgQ-0002M7-Ps for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2005 12:26:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqveI-0001Tm-VP for emacs-devel@gnu.org; Fri, 08 Jul 2005 12:24:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dqve8-0001MC-G5 for emacs-devel@gnu.org; Fri, 08 Jul 2005 12:24:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dqve5-0001DM-W9 for emacs-devel@gnu.org; Fri, 08 Jul 2005 12:24:10 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqvZh-0007Ly-5j for emacs-devel@gnu.org; Fri, 08 Jul 2005 12:19:37 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DqvQR-0004lE-QH; Fri, 08 Jul 2005 12:10:04 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 56EEB1C4CCEE; Fri, 8 Jul 2005 18:12:39 +0200 (CEST) Original-To: Lennart Borgman In-Reply-To: <42CEA077.8070202@student.lu.se> (Lennart Borgman's message of "Fri, 08 Jul 2005 17:49:11 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:40651 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40651 Lennart Borgman writes: > David Kastrup 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? >>> >>> >> >>What would you need this for? >> > I was thinking of an easier way of handling w32 file names. When > trying to build with MSYS it fails just because of the file name > Emacs got from somewhere is in w32 format. What does "got from somewhere" mean? Could you provide an example? > It would be more easy if there was a way to tell Emacs that "this is > just a raw string, please do not escape it". > > In fact I think at least building with MSYS then would succeed - and > that would be nice! AUCTeX has to deal with strings passed into Emacs via MSYS, too, and it usually does this with the equivalent of emacs --eval '(do-something-with (pop command-line-args-left))' "$FILENAME" -- David Kastrup, Kriemhildstr. 15, 44793 Bochum