emacs-devel
[Top][All Lists]
Advanced

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

Re: How to actually print single ‘\’ character?


From: Pankaj Jangid
Subject: Re: How to actually print single ‘\’ character?
Date: Wed, 23 Dec 2020 22:14:06 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Now I have confusion with single backslash. See following two forms,
>> their output and return values:
>> 
>> (message "this \\ is a single embedded backslash") ⊣ "this \ is a
>> single
>> embedded backslash" ⇒ "this \\ is a single embedded backslash"
>> 
>> (message "this \ is a single embedded backslash") ⊣ "this is a single
>> embedded backslash" ⇒ "this is a single embedded backslash"
>> 
>> Why the output and return same for string with single backslash?
>
> Because the return value should be suitable for the Lisp reader.

Got it.

whatever is the output (print), the consumer of the return value should
be able to produce the same output. i.e.

(message "this \ is a single embedded backslash")

and

(message (message "this \ is a single embedded backslash"))

should produce same output.



reply via email to

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