all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org,Pankaj Jangid <pankaj@codeisgreat.org>
Subject: Re: How to actually print single ‘\’ character?
Date: Wed, 23 Dec 2020 14:35:09 +0200	[thread overview]
Message-ID: <E595DE50-0AB2-4CBE-99C9-F447FC1A8223@gnu.org> (raw)
In-Reply-To: <87mty4ybwa.fsf@codeisgreat.org>

On December 23, 2020 1:55:49 PM GMT+02:00, Pankaj Jangid <pankaj@codeisgreat.org> wrote:
> 
> 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.



  reply	other threads:[~2020-12-23 12:35 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
2020-12-23 10:29     ` Eli Zaretskii
2020-12-23 11:55       ` Pankaj Jangid
2020-12-23 12:35         ` Eli Zaretskii [this message]
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=E595DE50-0AB2-4CBE-99C9-F447FC1A8223@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=pankaj@codeisgreat.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.