From: Pankaj Jangid <pankaj@codeisgreat.org>
To: <tomas@tuxteam.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Elisp - quoting or not?
Date: Sat, 05 Dec 2020 18:01:43 +0530 [thread overview]
Message-ID: <m2mtys1ljk.fsf@codeisgreat.org> (raw)
In-Reply-To: <20201205085701.GA21503@tuxteam.de> (tomas@tuxteam.de's message of "Sat, 5 Dec 2020 09:57:01 +0100")
<tomas@tuxteam.de> writes:
> On Sat, Dec 05, 2020 at 07:12:59AM +0100, An Liu wrote:
>> sorry, typo
>>
>> abcd `(ab cd) should be
>>
>> abcd `(,ab ,cd)
>
> Or just
>
> abcd (list ab cd)
>
> (I'd slightly prefer this one, since your -- totally correct --
> `(,ab ,cd) variant suggests that there's some quoting going on,
> which could be a bit misleading. But that's just a matter of
> taste).
I too prefer the (list ab cd) approach. backquote and comma means there
is quoting but with exceptions. In this case first two are cons cells
and last one is a list. But true, it /is/ a matter of taste.
next prev parent reply other threads:[~2020-12-05 12:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 5:15 Elisp - quoting or not? David Masterson
2020-12-05 6:12 ` An Liu
2020-12-05 6:12 ` An Liu
2020-12-05 8:57 ` tomas
2020-12-05 12:31 ` Pankaj Jangid [this message]
2020-12-05 6:14 ` Alexis Roda
2020-12-06 2:11 ` David Masterson
2020-12-05 6:21 ` Teemu Likonen
2020-12-05 6:42 ` Arthur Miller
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mtys1ljk.fsf@codeisgreat.org \
--to=pankaj@codeisgreat.org \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).