annotate etc/VEGETABLES @ 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 ae97e44a6527
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
636
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
1 alfalfa
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
2 anise
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
3 artichoke
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
4 asparagus
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
5 bamboo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
6 beets
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
7 bok choi
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
8 broccoflower
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
9 broccoli
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
10 brussels sprouts
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
11 burdock
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
12 cabbage
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
13 carrot
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
14 cauliflower
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
15 cassava
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
16 celery
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
17 celeriac
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
18 chayote
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
19 chestnut
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
20 chives
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
21 cilantro
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
22 corn
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
23 cucumber
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
24 daikon
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
25 dandelion
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
26 eggplant
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
27 endive
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
28 fiddleheads
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
29 fuki
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
30 garbanzo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
31 garlic
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
32 ginger
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
33 habanero
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
34 horseradish
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
35 kale
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
36 kohlarbi
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
37 leeks
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
38 lettuce
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
39 lima bean
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
40 marjoram
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
41 mushroom
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
42 mustard
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
43 okra
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
44 onion
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
45 parsley
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
46 peanut
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
47 pimento
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
48 potato
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
49 pumpkin
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
50 radish
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
51 rutabaga
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
52 renkon
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
53 satoimo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
54 shallots
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
55 sorrel
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
56 spinach
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
57 squash
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
58 swisschard
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
59 taro
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
60 tomato
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
61 turnip
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
62 watercress
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
63 yam
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
64 yucca
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
65 zucchini