From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: new fboundp behavior weird Date: Sat, 29 Dec 2012 08:27:49 -0800 Message-ID: <3BF3680C402B4A718A15428F0A33EE5E@us.oracle.com> References: <87mwwxhyve.fsf@gmail.com> <87d2xtm3x8.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356798486 20963 80.91.229.3 (29 Dec 2012 16:28:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 16:28:06 +0000 (UTC) To: "'Thierry Volpiatto'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 29 17:28:22 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 1TozGm-0004bz-UO for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2012 17:28:21 +0100 Original-Received: from localhost ([::1]:54598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TozGY-0000Oq-6U for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2012 11:28:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TozGT-0000Ns-Ht for emacs-devel@gnu.org; Sat, 29 Dec 2012 11:28:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TozGS-0000qt-EK for emacs-devel@gnu.org; Sat, 29 Dec 2012 11:28:01 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:19665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TozGS-0000ql-71 for emacs-devel@gnu.org; Sat, 29 Dec 2012 11:28:00 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBTGRuKe005600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 29 Dec 2012 16:27:57 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBTGRu0Q029035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Dec 2012 16:27:56 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBTGRtKE020069; Sat, 29 Dec 2012 10:27:55 -0600 Original-Received: from dradamslap1 (/10.159.239.117) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 29 Dec 2012 08:27:55 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87d2xtm3x8.fsf@gmail.com> Thread-Index: Ac3lwRSP9h5Yc2TdR8+GSy8TedM/HQAH4gFA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:155992 Archived-At: > > the new behavior of fboundp seems really bad. > > For example debug-on-entry fail on functions not already > > bound but have an alias. > > > > NOTE: This is reproductible only on the trunk, not emacs-24 > > branch which is working fine. > > > To reproduce: > emacs -Q > (defalias 'foo 'bar) > (setq debug-on-error t) > M-x debug-on-entry RET foo TAB > > NOTE: > (fboundp 'foo) > =>t > (symbol-function 'foo) > =>bar > So a fix using in addition of `fboundp' `symbol-function' would not > work. i.e `symbol-function' is not returning nil. > Anyway `fboundp' is used in so many places... I'm probably misunderstanding, but that is reproducible on all Emacs versions going back at least to Emacs 20. And it looks like correct behavior, to me. What am I missing? Just what is the problem with the behavior you report? And are you sure it is not reproducible on the Emacs 24 branch? (I don't have the branch, but it is reproducible in Emacs 24.2.) Symbol `foo' does have a function-cell definition: the symbol `bar'. That symbol `bar' has no function definition is immaterial to whether `foo' is `fboundp'. Perhaps you are looking for `functionp' instead of `fboundp'?