emacs-devel
[Top][All Lists]
Advanced

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

Re: prin1-to-string noescape parameter


From: Oleh Krehel
Subject: Re: prin1-to-string noescape parameter
Date: Sat, 1 Nov 2014 09:28:54 +0100

>>>> The issue is that if I have `foo.bar` in the code, and then I re-format
>>>> my code by:
>>>>
>>>> - read text
>>>> - delete text
>>>> - manipulate lisp object
>>>> - insert manipulated lisp object
>>>>
>>>> And now my code contains `foo\.bar`, although I don't want it.
>>>
>>> By passing the text through the lisp reading you are discarding all
>>> redundancy, so it is impossible in general to get back the original
>>> representation.
>>
>> Not possible in general, but the thing that I want can be done
>> by changing slightly the condition at line 240 of print.c
>
> No, you can't.  You have already discarded all necessary information.

Of course it's possible.
Since `foo.bar' and `foo\.bar' is the same symbol, why not
print it as "foo.bar" always? It looks better like this
in the source code anyway, and the reader has no problem with it.

regards,
Oleh



reply via email to

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