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: Fri, 31 Oct 2014 22:24:30 +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

There are already `print_escape_newlines', `print_escape_multibyte' etc.,
so I propose to add one more that makes these tricky chars in symbols be
not quoted.

regards,
Oleh



reply via email to

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