From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new fboundp behavior weird Date: Sun, 30 Dec 2012 22:06:08 -0500 Message-ID: References: <87mwwxhyve.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356923179 8096 80.91.229.3 (31 Dec 2012 03:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Dec 2012 03:06:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 31 04:06:35 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TpVhx-0003pb-8t for ged-emacs-devel@m.gmane.org; Mon, 31 Dec 2012 04:06:33 +0100 Original-Received: from localhost ([::1]:60506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TpVhi-0001V8-Bf for ged-emacs-devel@m.gmane.org; Sun, 30 Dec 2012 22:06:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TpVhd-0001V3-UK for emacs-devel@gnu.org; Sun, 30 Dec 2012 22:06:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TpVhc-0008U1-Qq for emacs-devel@gnu.org; Sun, 30 Dec 2012 22:06:13 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TpVhc-0008Tw-NB for emacs-devel@gnu.org; Sun, 30 Dec 2012 22:06:12 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id qBV366WT026810; Sun, 30 Dec 2012 22:06:06 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5CB7EAE3F6; Sun, 30 Dec 2012 22:06:08 -0500 (EST) In-Reply-To: <87mwwxhyve.fsf@gmail.com> (Thierry Volpiatto's message of "Sat, 29 Dec 2012 12:38:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4447=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4447> : streams <883799> : uri <1307492> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156016 Archived-At: > the new behavior of fboundp seems really bad. It's got nothing to do with fboundp. Please use M-x report-emacs-bug when you bump into problems. > special-form-p: function xxx is void. Fixed by the patch below, Stefan === modified file 'lisp/subr.el' --- lisp/subr.el 2012-12-10 12:08:02 +0000 +++ lisp/subr.el 2012-12-31 03:03:46 +0000 @@ -2805,7 +2805,7 @@ (defun special-form-p (object) "Non-nil if and only if OBJECT is a special form." (if (and (symbolp object) (fboundp object)) - (setq object (indirect-function object))) + (setq object (indirect-function object t))) (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) (defun field-at-pos (pos)