[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 17:25:49 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> As I was reading, I was trying in the “*scratch*” buffer and
>> evaluating using “C-x e”. Tried to pring in “*Message*” buffer using
>> “(message)” function as well.
>
> After using "C-x C-e", did you look in *Messages* to make sure you are
> not confusing what 'message' prints with what it returns?
Rechecked. Now I noticed two messages. One for output and one for return
value. Earlier, I didn’t notice the output message. Just picked the last
one, which was return.
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?
Re: How to actually print single ‘\’ character?, Eli Zaretskii, 2020/12/23