[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 15:34:37 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> (insert "this \\ is a single embedded backslash")
> -> this \ is a single embedded backslashnil
>
> Perhaps you're confused by how Emacs prin1s readable strings?
>
> "foo \\ bar"
> => "foo \\ bar"
I was reading about “Regexp Search” and then went on to see “(elisp)
String Type”.
Eli Zaretskii <eliz@gnu.org> writes:
>> I have tried:
>>
>> ‘"this \\ is a single embedded backslash"’
>>
>> inside ‘format’ and ‘message’ functions. It prints two backslashes.
>
> It does? What exactly did you try, and wbere did you see 2 backslashes?
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.
Re: How to actually print single ‘\’ character?, Eli Zaretskii, 2020/12/23