GNU bug report logs - #12760
letf doc is not very helpful

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Mon, 29 Oct 2012 07:56:01 UTC

Severity: minor

Found in version 24.2.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12760 in the body.
You can then email your comments to 12760 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12760; Package emacs. (Mon, 29 Oct 2012 07:56:01 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: letf doc is not very helpful
Date: Mon, 29 Oct 2012 03:52:50 -0400
Package: emacs
Version: 24.2.50
Severity: minor

emacs -Q -l cl
C-h f letf

  -> Like `cl-letf', but with some extra backward compatibility.

This is so vague as to not be useful.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12760; Package emacs. (Mon, 29 Oct 2012 13:56:02 GMT) Full text and rfc822 format available.

Message #6 received at 12760 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12760 <at> debbugs.gnu.org
Subject: Re: bug#12760: letf doc is not very helpful
Date: Mon, 29 Oct 2012 09:52:52 -0400
> -> Like `cl-letf', but with some extra backward compatibility.
> This is so vague as to not be useful.

The only difference (handling of funbound symbols for symbol-function)
is one I'd rather not document because it's deprecated.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12760; Package emacs. (Mon, 29 Oct 2012 17:44:01 GMT) Full text and rfc822 format available.

Message #9 received at 12760 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12760 <at> debbugs.gnu.org
Subject: Re: bug#12760: letf doc is not very helpful
Date: Mon, 29 Oct 2012 13:40:44 -0400
Stefan Monnier wrote:

>> -> Like `cl-letf', but with some extra backward compatibility.
>> This is so vague as to not be useful.
>
> The only difference (handling of funbound symbols for symbol-function)
> is one I'd rather not document because it's deprecated.

Maybe you want to mark letf obsolete (as labels and flet are).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12760; Package emacs. (Tue, 30 Oct 2012 07:09:01 GMT) Full text and rfc822 format available.

Message #12 received at 12760 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12760 <at> debbugs.gnu.org
Subject: Re: bug#12760: letf doc is not very helpful
Date: Tue, 30 Oct 2012 03:05:49 -0400
Stefan Monnier wrote:

>> -> Like `cl-letf', but with some extra backward compatibility.
>> This is so vague as to not be useful.
>
> The only difference (handling of funbound symbols for symbol-function)
> is one I'd rather not document because it's deprecated.

PS I honestly can't see why "A is different to B in some unspecified way
that I'm not going to tell you lest you try and use it" is preferable to
"A is essentially exactly the same as B, apart from cases C and D. Such
usage is deprecated."




bug closed, send any further explanations to 12760 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2012 07:38:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12760; Package emacs. (Tue, 30 Oct 2012 12:35:02 GMT) Full text and rfc822 format available.

Message #17 received at 12760 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12760 <at> debbugs.gnu.org
Subject: Re: bug#12760: letf doc is not very helpful
Date: Tue, 30 Oct 2012 08:31:40 -0400
>>> -> Like `cl-letf', but with some extra backward compatibility.
>>> This is so vague as to not be useful.
>> The only difference (handling of funbound symbols for symbol-function)
>> is one I'd rather not document because it's deprecated.
> PS I honestly can't see why "A is different to B in some unspecified way
> that I'm not going to tell you lest you try and use it" is preferable to
> "A is essentially exactly the same as B, apart from cases C and D. Such
> usage is deprecated."

You might be right.  Here is the exact situation:
- The extra handling of `symbol-function' in `letf' was added because
  some existing uses of `flet' (which uses `letf' internally) need it.
- I don't know of any code that uses `letf' in a way that `cl-letf'
  can't handle.

So maybe a better solution is to rename the current `letf' into
cl--flet-letf, and then to make `letf' an alias to `cl-letf'.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Nov 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 206 days ago.

Previous Next


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