GNU bug report logs - #4290
23.1; (elisp)Anonymous Functions - unclear about #'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 29 Aug 2009 21:10:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Chong Yidong <cyd <at> stupidchicken.com>
Subject: bug#4290: marked as done (23.1; (elisp)Anonymous Functions -
 unclear about #')
Date: Sun, 13 Sep 2009 01:55:09 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 12 Sep 2009 21:49:48 -0400
with message-id <87zl8zbolf.fsf <at> cyd.mit.edu>
and subject line Re: 23.1; (elisp)Anonymous Functions - unclear about #'
has caused the Emacs bug report #4290,
regarding 23.1; (elisp)Anonymous Functions - unclear about #'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)


-- 
4290: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4290
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 23.1; (elisp)Anonymous Functions - unclear about #'
Date: Sat, 29 Aug 2009 14:07:31 -0700
This Info node is unclear. It combines pre-Emacs 22 text that
explicitly says that lambda forms are *not* byte-compiled unless you
use `#'' or `function', with this statement that says that they are:
 
  Nowadays it is possible to omit `function' entirely, like this:
     (defun double-property (symbol prop)
       (change-property symbol prop (lambda (x) (* 2 x))))
  This is because `lambda' itself implies `function'.
 
What should be said is something like this:
 
"Starting with Emacs 22, a lambda form is byte-compiled when it is used
as a function, regardless of whether it is preceded by `function' or
`#''.  With Emacs versions prior to 22, you must explicitly use `#''
or `function' if you want the form to be byte-compiled."
 
This means rewording or replacing the paragraph that says that unless
you use `function' a lambda form won't be byte-compiled. The example
and its accompanying text need to be clarified.
 

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 



[Message part 3 (message/rfc822, inline)]
From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 4290-done <at> debbugs.gnu.org
Subject: Re: 23.1; (elisp)Anonymous Functions - unclear about #'
Date: Sat, 12 Sep 2009 21:49:48 -0400
I have clarified the text.  Thanks for the bug report.

This bug report was last modified 15 years and 256 days ago.

Previous Next


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