all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: emacs-devel@gnu.org
Subject: Re: How to actually print single ‘\’ character?
Date: Wed, 23 Dec 2020 15:34:37 +0530	[thread overview]
Message-ID: <87ft3w25ze.fsf@codeisgreat.org> (raw)
In-Reply-To: 8735zxlzal.fsf@gnus.org

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.




  reply	other threads:[~2020-12-23 10:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23  5:21 How to actually print single ‘\’ character? Pankaj Jangid
2020-12-23  8:08 ` Lars Ingebrigtsen
2020-12-23 10:04   ` Pankaj Jangid [this message]
2020-12-23 10:29     ` Eli Zaretskii
2020-12-23 11:55       ` Pankaj Jangid
2020-12-23 12:35         ` Eli Zaretskii
2020-12-23 16:44           ` Pankaj Jangid
2020-12-23  8:17 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft3w25ze.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.