[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any way to have a string literal that is read "raw"

From: David Kastrup
Subject: Re: Is there any way to have a string literal that is read "raw"
Date: Fri, 08 Jul 2005 18:12:38 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Lennart Borgman <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]