annotate src/.cvsignore @ 5566:4654c01af32b

Improve the implementation, documentation of #'labels, #'flet. lisp/ChangeLog addition: 2011-09-07 Aidan Kehoe <kehoea@parhasard.net> * bytecomp.el: * bytecomp.el (for-effect): Move this earlier in the file, it's referenced in byte-compile-initial-macro-environment. * bytecomp.el (byte-compile-initial-macro-environment): In the byte-compile-macro-environment definition for #'labels, put off the compiling the lambda bodies until the point where the rest of the form is being compiled, allowing the lambda bodies to access appropriate values for byte-compile-bound-variables, and reducing excessive warning about free variables. Add a byte-compile-macro-environment definition for #'flet. This modifies byte-compile-function-environment appropriately, and warns about bindings of functions that have macro definitions in the current environment, about functions that have byte codes, and about functions that have byte-compile methods (which may not do what the user wants at runtime). * bytecomp.el (byte-compile-funcall): If FUNCTION is constant, call #'byte-compile-callargs-warn if that's appropriate, giving warnings about problems with calling functions bound with #'labels. * cl-macs.el: * cl-macs.el (flet): Mention the main difference from Common Lisp, that the bindings are dynamic, not lexical. Counsel the use of #'labels, not #'flet, for this and other reasons. Explain the limited single use case for #'flet. Cross-reference to bytecomp.el in a comment. * cl-macs.el (labels): Go into detail on which functions may be called from where. Explain how to access the function definition of a label within FORM. Add a comment cross-referencing to bytecomp.el. man/ChangeLog addition: 2011-09-07 Aidan Kehoe <kehoea@parhasard.net> * cl.texi (Function Bindings): Move #'labels first, describe it in more detail, explaining that it is to be preferred over #'flet, and explaining why. Explain that dynamic bindings with #'flet will also not work when functions are accessed through their bytecodes.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 07 Sep 2011 16:26:45 +0100
parents c11067d70e63
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
1 *.so.*
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
2 Emacs.ad.h
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
3 GNUmakefile
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
4 Makefile
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 Makefile.in
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
6 NEEDTODUMP
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
7 SATISFIED
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
8 Xpm.dll
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 config.h
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
10 dump-id.c
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
11 gmon.out
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
12 paths.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 puresize-adjust.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 sheap-adjust.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 temacs
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
16 temacs.bsc
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
17 temacs.ilk
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
18 temacs.map
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
19 temacs.opt
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
20 temacs.pdb
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
21 update-elc.stamp
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 xemacs
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
23 xemacs.dmp
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
24 xemacs.ilk
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
25 xemacs.map
533
f38950946dcf [xemacs-hg @ 2001-05-12 11:39:18 by ben]
ben
parents: 479
diff changeset
26 xemacs.opt
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
27 *.tmp
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
28 makeinfo_test.bat
1361
ffdb1a771055 [xemacs-hg @ 2003-03-18 00:54:00 by youngs]
youngs
parents: 1123
diff changeset
29 REBUILD_AUTOLOADS
2835
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
30 dump-size
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
31 xemacs.def
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
32 xemacs.def.in
3092
141c2920ea48 [xemacs-hg @ 2005-11-25 01:41:31 by crestani]
crestani
parents: 2835
diff changeset
33 .dbxrc
3521
c11067d70e63 [xemacs-hg @ 2006-07-19 19:38:39 by crestani]
crestani
parents: 3092
diff changeset
34 .dbxrc.in
3092
141c2920ea48 [xemacs-hg @ 2005-11-25 01:41:31 by crestani]
crestani
parents: 2835
diff changeset
35 .gdbinit
3521
c11067d70e63 [xemacs-hg @ 2006-07-19 19:38:39 by crestani]
crestani
parents: 3092
diff changeset
36 .gdbinit.in