From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2951: Suggestion: self-evaluating-p function Date: Mon, 13 Apr 2009 22:06:20 -0400 Message-ID: References: <87myaogpr8.fsf@echo.mueller-schleicher.i> <87r5zy7u2f.fsf@echo.mueller-schleicher.i> <87ab6k6z9k.fsf@echo.mueller-schleicher.i> Reply-To: Stefan Monnier , 2951@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239675879 29371 80.91.229.12 (14 Apr 2009 02:24:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2009 02:24:39 +0000 (UTC) Cc: 2951@emacsbugs.donarmstrong.com To: Ralph Schleicher Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 14 04:25:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LtYLU-0003U6-Je for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Apr 2009 04:25:56 +0200 Original-Received: from localhost ([127.0.0.1]:46263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtYK5-0000BX-Ul for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 22:24:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtYJb-0008HS-IF for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 22:23:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtYJX-0008BZ-FH for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 22:23:58 -0400 Original-Received: from [199.232.76.173] (port=56541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtYJW-0008B0-At for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 22:23:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37979) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtYJV-0002Xb-Ik for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 22:23:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3E2Nofc008916; Mon, 13 Apr 2009 19:23:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3E2F54x006731; Mon, 13 Apr 2009 19:15:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 14 Apr 2009 02:15:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2951 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2951-submit@emacsbugs.donarmstrong.com id=B2951.12396747905115 (code B ref 2951); Tue, 14 Apr 2009 02:15:05 +0000 Original-Received: (at 2951) by emacsbugs.donarmstrong.com; 14 Apr 2009 02:06:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3E26Q61005109 for <2951@emacsbugs.donarmstrong.com>; Mon, 13 Apr 2009 19:06:28 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiAFAN+M40lLd+7D/2dsb2JhbACBUstVg3wGhRY X-IronPort-AV: E=Sophos;i="4.40,182,1238990400"; d="scan'208";a="36991950" Original-Received: from 75-119-238-195.dsl.teksavvy.com (HELO pastel.home) ([75.119.238.195]) by ironport2-out.teksavvy.com with ESMTP; 13 Apr 2009 22:06:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A165180F1; Mon, 13 Apr 2009 22:06:20 -0400 (EDT) In-Reply-To: <87ab6k6z9k.fsf@echo.mueller-schleicher.i> (Ralph Schleicher's message of "Mon, 13 Apr 2009 23:04:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 13 Apr 2009 22:23:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27146 Archived-At: >>> (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