Mercurial > hg > xemacs-beta
comparison lisp/ChangeLog @ 4289:20accccbebd6
[xemacs-hg @ 2007-11-27 22:15:32 by aidan]
Byte compile defcustom init values; save the Lisp values for correct
editing, correct some comments and indentation, and expose some lambda
expressions to the byte compile; make custom-initialize-changed a defubst,
since it's only called from one place and calls to that place cluster.
author | aidan |
---|---|
date | Tue, 27 Nov 2007 22:15:34 +0000 |
parents | 9eb558ffe8ff |
children | 0194a744d2d3 |
comparison
equal
deleted
inserted
replaced
4288:9eb558ffe8ff | 4289:20accccbebd6 |
---|---|
1 2007-11-27 Aidan Kehoe <kehoea@parhasard.net> | |
2 | |
3 * bytecomp.el (byte-compile-file-form-custom-declare-variable): | |
4 Byte compile the default value for #'custom-declare-variable (and | |
5 thence defcustom) calls; pass the uncompiled value as the value of | |
6 a :default keyword, to be used in the customize UI if the byte | |
7 compiled init value differs from the non byte compiled init | |
8 value. | |
9 | |
10 GNU don't do these things. The advantages of doing it our way are | |
11 a) the byte compilation warnings and b) since our interpreter is | |
12 proportionately so much slower than theirs, we are penalised more | |
13 strongly when we interpret code, especially when | |
14 #'custom-declare-variable calls cluster, as they tend to do. | |
15 * cus-edit.el (customize-changed-options): | |
16 Wrap the #'interactive call to be less than 80 columns. | |
17 Wrap the code to less than 80 columns. | |
18 * cus-edit.el (custom-variable-menu): | |
19 * cus-edit.el (custom-face-menu): | |
20 * cus-edit.el (custom-group-menu): | |
21 Expose the lambda expressions in these variables to the byte | |
22 compiler. | |
23 * custom.el (custom-initialize-changed): | |
24 Correct the docstring; change the defun to defsubst, since calls | |
25 to this are only done from one function, and calls to that | |
26 function cluster. | |
27 * custom.el (custom-declare-variable): | |
28 Document the :default argument to #'custom-declare-variable; | |
29 implement it. | |
30 | |
1 2007-11-27 Aidan Kehoe <kehoea@parhasard.net> | 31 2007-11-27 Aidan Kehoe <kehoea@parhasard.net> |
2 | 32 |
3 * byte-optimize.el (byte-optimize-featurep): | 33 * byte-optimize.el (byte-optimize-featurep): |
4 Remove a useless let binding that was a hangover from an earlier | 34 Remove a useless let binding that was a hangover from an earlier |
5 version of the code. Eliminates a byte-compile time warning. | 35 version of the code. Eliminates a byte-compile time warning. |