aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-21 13:45:12 +0000
committerJuanma Barranquero2005-06-21 13:45:12 +0000
commitc1fe651240e70230b5619c46fa6dce6f4609f72b (patch)
treebc19cda0a09ea1e0d2f97ab0722a801efaa403e6
parent8ad8cfa5c822bde56137d5b31c9c54cc131acec4 (diff)
downloademacs-c1fe651240e70230b5619c46fa6dce6f4609f72b.tar.gz
emacs-c1fe651240e70230b5619c46fa6dce6f4609f72b.zip
(byte-optimize-pure-func): Fix spellings.
-rw-r--r--lisp/emacs-lisp/byte-opt.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index acb882dd9a3..e1aacdd51e9 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -152,11 +152,11 @@
152;; ;; Associative math should recognize subcalls to identical function: 152;; ;; Associative math should recognize subcalls to identical function:
153;; (disassemble (lambda (x) (+ (+ (foo) 1) (+ (bar) 2)))) 153;; (disassemble (lambda (x) (+ (+ (foo) 1) (+ (bar) 2))))
154;; ;; This should generate the same as (1+ x) and (1- x) 154;; ;; This should generate the same as (1+ x) and (1- x)
155 155
156;; (disassemble (lambda (x) (cons (+ x 1) (- x 1)))) 156;; (disassemble (lambda (x) (cons (+ x 1) (- x 1))))
157;; ;; An awful lot of functions always return a non-nil value. If they're 157;; ;; An awful lot of functions always return a non-nil value. If they're
158;; ;; error free also they may act as true-constants. 158;; ;; error free also they may act as true-constants.
159 159
160;; (disassemble (lambda (x) (and (point) (foo)))) 160;; (disassemble (lambda (x) (and (point) (foo))))
161;; ;; When 161;; ;; When
162;; ;; - all but one arguments to a function are constant 162;; ;; - all but one arguments to a function are constant
@@ -165,19 +165,19 @@
165;; ;; condition is side-effect-free [assignment-free] then the other 165;; ;; condition is side-effect-free [assignment-free] then the other
166;; ;; arguments may be any expressions. Since, however, the code size 166;; ;; arguments may be any expressions. Since, however, the code size
167;; ;; can increase this way they should be "simple". Compare: 167;; ;; can increase this way they should be "simple". Compare:
168 168
169;; (disassemble (lambda (x) (eq (if (point) 'a 'b) 'c))) 169;; (disassemble (lambda (x) (eq (if (point) 'a 'b) 'c)))
170;; (disassemble (lambda (x) (if (point) (eq 'a 'c) (eq 'b 'c)))) 170;; (disassemble (lambda (x) (if (point) (eq 'a 'c) (eq 'b 'c))))
171 171
172;; ;; (car (cons A B)) -> (prog1 A B) 172;; ;; (car (cons A B)) -> (prog1 A B)
173;; (disassemble (lambda (x) (car (cons (foo) 42)))) 173;; (disassemble (lambda (x) (car (cons (foo) 42))))
174 174
175;; ;; (cdr (cons A B)) -> (progn A B) 175;; ;; (cdr (cons A B)) -> (progn A B)
176;; (disassemble (lambda (x) (cdr (cons 42 (foo))))) 176;; (disassemble (lambda (x) (cdr (cons 42 (foo)))))
177 177
178;; ;; (car (list A B ...)) -> (prog1 A B ...) 178;; ;; (car (list A B ...)) -> (prog1 A B ...)
179;; (disassemble (lambda (x) (car (list (foo) 42 (bar))))) 179;; (disassemble (lambda (x) (car (list (foo) 42 (bar)))))
180 180
181;; ;; (cdr (list A B ...)) -> (progn A (list B ...)) 181;; ;; (cdr (list A B ...)) -> (progn A (list B ...))
182;; (disassemble (lambda (x) (cdr (list 42 (foo) (bar))))) 182;; (disassemble (lambda (x) (cdr (list 42 (foo) (bar)))))
183 183
@@ -1126,7 +1126,7 @@
1126This assumes that the function will not have any side-effects and that 1126This assumes that the function will not have any side-effects and that
1127its return value depends solely on its arguments. 1127its return value depends solely on its arguments.
1128If the function can signal an error, this might change the semantics 1128If the function can signal an error, this might change the semantics
1129of FORM by signalling the error at compile-time." 1129of FORM by signaling the error at compile-time."
1130 (let ((args (cdr form)) 1130 (let ((args (cdr form))
1131 (constant t)) 1131 (constant t))
1132 (while (and args constant) 1132 (while (and args constant)