diff 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
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Nov 27 15:38:40 2007 +0000
+++ b/lisp/ChangeLog	Tue Nov 27 22:15:34 2007 +0000
@@ -1,3 +1,33 @@
+2007-11-27  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* bytecomp.el (byte-compile-file-form-custom-declare-variable):
+	Byte compile the default value for #'custom-declare-variable (and
+	thence defcustom) calls; pass the uncompiled value as the value of
+	a :default keyword, to be used in the customize UI if the byte
+	compiled init value differs from the non byte compiled init
+	value.
+
+	GNU don't do these things. The advantages of doing it our way are
+	a) the byte compilation warnings and b) since our interpreter is
+	proportionately so much slower than theirs, we are penalised more
+	strongly when we interpret code, especially when
+	#'custom-declare-variable calls cluster, as they tend to do. 
+	* cus-edit.el (customize-changed-options):
+	Wrap the #'interactive call to be less than 80 columns. 
+	Wrap the code to less than 80 columns.
+	* cus-edit.el (custom-variable-menu):
+	* cus-edit.el (custom-face-menu):
+	* cus-edit.el (custom-group-menu):
+	Expose the lambda expressions in these variables to the byte
+	compiler.
+	* custom.el (custom-initialize-changed):
+	Correct the docstring; change the defun to defsubst, since calls
+	to this are only done from one function, and calls to that
+	function cluster. 
+	* custom.el (custom-declare-variable):
+	Document the :default argument to #'custom-declare-variable;
+	implement it. 
+
 2007-11-27  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* byte-optimize.el (byte-optimize-featurep):