From: Pankaj Jangid <pankaj@codeisgreat.org>
To: emacs-devel@gnu.org
Subject: Re: How to actually print single ‘\’ character?
Date: Wed, 23 Dec 2020 17:25:49 +0530 [thread overview]
Message-ID: <87mty4ybwa.fsf@codeisgreat.org> (raw)
In-Reply-To: B52344FD-8511-47F7-92EA-90E1C884DCD7@gnu.org
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?
next prev parent reply other threads:[~2020-12-23 11:55 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 [this message]
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=87mty4ybwa.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.