GNU bug report logs - #2951
Suggestion: self-evaluating-p function

Previous Next

Package: emacs;

Reported by: Ralph Schleicher <rs <at> ralph-schleicher.de>

Date: Fri, 10 Apr 2009 21:40:05 UTC

Severity: wishlist

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ralph Schleicher <rs <at> ralph-schleicher.de>
Cc: 2951 <at> debbugs.gnu.org
Subject: bug#2951: Suggestion: self-evaluating-p function
Date: Mon, 13 Apr 2009 22:06:20 -0400
>>> (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




This bug report was last modified 15 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.