GNU bug report logs - #6497
documentation `indirect-function', `symbol-function' do not enumerate return value type

Previous Next

Package: emacs;

Reported by: MON KEY <monkey <at> sandpframing.com>

Date: Tue, 22 Jun 2010 23:44:02 UTC

Severity: minor

Tags: wontfix

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: MON KEY <monkey <at> sandpframing.com>
To: 6497 <at> debbugs.gnu.org
Subject: bug#6497: 6497
Date: Sat, 3 Jul 2010 15:35:28 -0400
On Sat, Jul 3, 2010 at 2:31 AM, Geoff Gole <geoffgole <at> gmail.com> wrote:
>> Prob. what you meant to was:
>> (progn
>>  (fset 'foo 3)
>>  (symbol-function 'foo))
>
> Indeed, although it's a trivial mistake. The example works just as
> well when the value of foo is a symbol, which it must have been at the
> time I tried it.
>
The triviality of the mistake is apropos my rationale for requesting
that the docstrings be further fleshed out, it is all to easy to find
oneself in these sorts of situations w/re `symbol-function' &
`indirect-function' and no way to reasonably partition an expected
return value(s) from an unexpected one... That you fell pey to it
while trying to illustrate a counter argument to my proposal is (in
some small way) an indicative of the problem.

> Unintern does funny things. Those funny things are not relevant to
> this bug report.

See above.

>
>> The distinction between value cell and
>> function cell confirms a reliance on the details of function
>> representation.
>
> What a bizarre claim. The number of slots in a symbol has nothing to
> do with the representation of functions. Why would it?
>

If the symbol did not have cells it would. Which the "bizarre"
behaviour of the unintern/makunbound examples illustrate.

--
/s_P\




This bug report was last modified 13 years and 319 days ago.

Previous Next


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