From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ralph Schleicher <rs@ralph-schleicher.de>
Cc: 2951@emacsbugs.donarmstrong.com
Subject: bug#2951: Suggestion: self-evaluating-p function
Date: Mon, 13 Apr 2009 22:06:20 -0400 [thread overview]
Message-ID: <jwv3accvvl9.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <87ab6k6z9k.fsf@echo.mueller-schleicher.i> (Ralph Schleicher's message of "Mon, 13 Apr 2009 23:04:55 +0200")
>>> (list symbol (if (self-evaluating-p value)
>>> value
>>> (list 'quote value))))
>>
>> Why not just (list symbol (list 'quote value))) ?
> Yes, this was my first attempt, too. But I got puzzled whether
> or not the extra quote matters in any way, especiall with lambda
> expressions. Since I couldn't find a satisfactory answer in the
> Elisp reference manual, I decided to get rid of it just to be save.
> So, If you tell me that the quote does no harm no matter what Lisp
> object is quoted, I can live without a self-evaluating-p function.
By definition (self-evaluating-p VALUE) tests whether evaluating VALUE
or evaluating (quote VALUE) will return the same thing.
I.e. the quote does no harm.
Stefan
next prev parent reply other threads:[~2009-04-14 2:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-10 21:31 bug#2951: Suggestion: self-evaluating-p function Ralph Schleicher
2009-04-11 12:53 ` Stefan Monnier
2009-04-11 21:35 ` Ralph Schleicher
2009-04-13 17:49 ` Stefan Monnier
2009-04-13 21:04 ` Ralph Schleicher
2009-04-14 2:06 ` Stefan Monnier [this message]
2009-04-14 16:53 ` Ralph Schleicher
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=jwv3accvvl9.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=2951@emacsbugs.donarmstrong.com \
--cc=rs@ralph-schleicher.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).