[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to actually print single ‘\’ character?
From: |
Lars Ingebrigtsen |
Subject: |
Re: How to actually print single ‘\’ character? |
Date: |
Wed, 23 Dec 2020 09:08:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Pankaj Jangid <pankaj@codeisgreat.org> writes:
> I have tried:
>
> ‘"this \\ is a single embedded backslash"’
>
> inside ‘format’ and ‘message’ functions. It prints two backslashes. How
> to print single slash in a message?
(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"
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Re: How to actually print single ‘\’ character?, Eli Zaretskii, 2020/12/23