comparison lisp/ChangeLog @ 5294:bbff29a01820

Add compiler macros and compilation sanity-checks for functions with keywords. 2010-10-25 Aidan Kehoe <kehoea@parhasard.net> Add compiler macros and compilation sanity-checking for various functions that take keywords. * byte-optimize.el (side-effect-free-fns): #'symbol-value is side-effect free and not error free. * bytecomp.el (byte-compile-normal-call): Check keyword argument lists for sanity; store information about the positions where keyword arguments start using the new byte-compile-keyword-start property. * cl-macs.el (cl-const-expr-val): Take a new optional argument, cl-not-constant, defaulting to nil, in this function; return it if the expression is not constant. (cl-non-fixnum-number-p): Make this into a separate function, we want to pass it to #'every. (eql): Use it. (define-star-compiler-macros): Use the same code to generate the member*, assoc* and rassoc* compiler macros; special-case some code in #'add-to-list in subr.el. (remove, remq): Add compiler macros for these two functions, in preparation for #'remove being in C. (define-foo-if-compiler-macros): Transform (remove-if-not ...) calls to (remove ... :if-not) at compile time, which will be a real win once the latter is in C. (define-substitute-if-compiler-macros) (define-subst-if-compiler-macros): Similarly for these functions. (delete-duplicates): Change this compiler macro to use #'plists-equal; if we don't have information about the type of SEQUENCE at compile time, don't bother attempting to inline the call, the function will be in C soon enough. (equalp): Remove an old commented-out compiler macro for this, if we want to see it it's in version control. (subst-char-in-string): Transform this to a call to nsubstitute or nsubstitute, if that is appropriate. * cl.el (ldiff): Don't call setf here, this makes for a load-time dependency problem in cl-macs.el
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 25 Oct 2010 13:04:04 +0100
parents e4305eb6fb8c
children ec05a30f7148
comparison
equal deleted inserted replaced
5293:63f247c5da0a 5294:bbff29a01820
1 2010-10-25 Aidan Kehoe <kehoea@parhasard.net>
2
3 Add compiler macros and compilation sanity-checking for various
4 functions that take keywords.
5
6 * byte-optimize.el (side-effect-free-fns): #'symbol-value is
7 side-effect free and not error free.
8 * bytecomp.el (byte-compile-normal-call): Check keyword argument
9 lists for sanity; store information about the positions where
10 keyword arguments start using the new byte-compile-keyword-start
11 property.
12 * cl-macs.el (cl-const-expr-val): Take a new optional argument,
13 cl-not-constant, defaulting to nil, in this function; return it if
14 the expression is not constant.
15 (cl-non-fixnum-number-p): Make this into a separate function, we
16 want to pass it to #'every.
17 (eql): Use it.
18 (define-star-compiler-macros): Use the same code to generate the
19 member*, assoc* and rassoc* compiler macros; special-case some
20 code in #'add-to-list in subr.el.
21 (remove, remq): Add compiler macros for these two functions, in
22 preparation for #'remove being in C.
23 (define-foo-if-compiler-macros): Transform (remove-if-not ...) calls to
24 (remove ... :if-not) at compile time, which will be a real win
25 once the latter is in C.
26 (define-substitute-if-compiler-macros)
27 (define-subst-if-compiler-macros): Similarly for these functions.
28 (delete-duplicates): Change this compiler macro to use
29 #'plists-equal; if we don't have information about the type of
30 SEQUENCE at compile time, don't bother attempting to inline the
31 call, the function will be in C soon enough.
32 (equalp): Remove an old commented-out compiler macro for this, if
33 we want to see it it's in version control.
34 (subst-char-in-string): Transform this to a call to nsubstitute or
35 nsubstitute, if that is appropriate.
36 * cl.el (ldiff): Don't call setf here, this makes for a load-time
37 dependency problem in cl-macs.el
38
1 2010-06-14 Stephen J. Turnbull <stephen@xemacs.org> 39 2010-06-14 Stephen J. Turnbull <stephen@xemacs.org>
2 40
3 * term/vt100.el: 41 * term/vt100.el:
4 Refer to XEmacs, not GNU Emacs, in permissions. 42 Refer to XEmacs, not GNU Emacs, in permissions.
5 43