GNU bug report logs - #23957
[PATCH] Make fboundp an alias for symbol-function

Previous Next

Package: emacs;

Reported by: Robert Cochran <robert-emacs <at> cochranmail.com>

Date: Tue, 12 Jul 2016 15:50:03 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 23988

Fixed in version 25.1

Done: npostavs <at> users.sourceforge.net

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: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: Robert Cochran <robert-emacs <at> cochranmail.com>, 23957 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: bug#23957: [PATCH] Make fboundp an alias for symbol-function
Date: Tue, 12 Jul 2016 16:35:40 -0400
> And the docstring of `fboundp' does specify that it returns t (not just
> non-nil), so this is indeed a breaking chance.
> I'd suggest to simply remove the FIXME instead.

FWIW, the reason why I put a FIXME instead of making this change, is
that I wasn't sure indeed exactly how to make such a change.

I expect 99% of the uses of fboundp don't care about the distinction
between t and other non-nil values.  And at least 90% of the remaining
1% is probably ill-advised to rely on this distinction.  But the benefit
of redefining fboundp as an alias rather than as its own function is
probably too small to justify risking such breakage.


        Stefan




This bug report was last modified 9 years and 3 days ago.

Previous Next


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