Commit graph

76 commits

Author SHA1 Message Date
Andreas Schwab
af61a97dd6 (byte-optimize-backward-word): Optimize
`(backward-word)' to `(forward-word -1)', not `(forward-char -1)'.
2004-10-10 14:28:19 +00:00
Stefan Monnier
e856a453a1 (byte-compile-log-lap, byte-compile-inline-expand): Use backquote.
(byte-optimize-pure-func): Rename from byte-optimize-concat.
(symbol-name, regexp-opt, regexp-quote): Mark as pure.
2004-03-22 15:21:08 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
e64e9e6a7f (byte-optimize-set): Avoid CLism. 2003-03-25 16:48:43 +00:00
Stefan Monnier
66ff289307 (byte-optimize-set): New. Turn set' into setq' when applicable. 2003-03-25 16:34:00 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Dave Love
56cfa2440e (byte-optimize-nth)
(byte-optimize-nthcdr): Fix for case of wrong-length forms.
2003-01-05 00:28:18 +00:00
Stefan Monnier
e8f3c355cf (byte-optimize-form-code-walker):
Optimize the remaining part of for-effect and/or expressions.
2002-12-13 19:52:46 +00:00
Dave Love
e5c230f42f (byte-optimize-featurep): New. 2002-12-12 20:28:32 +00:00
Dave Love
d9881cf17f (side-effect-free-fns): Several
additions.
2002-11-19 17:59:30 +00:00
Richard M. Stallman
8c26d7b356 (byte-optimize-form-code-walker): Treat `ignore' specially--prevent
warnings about functions called for effect, in its args.
Don't warn when `pop' is used for effect.
2002-10-14 01:33:40 +00:00
Richard M. Stallman
cd63e3a185 Comment change. 2002-09-09 00:28:00 +00:00
Richard M. Stallman
1fc9ee97d3 (side-effect-free-fns, side-effect-and-error-free-fns):
Add many functions, remove some.
2002-03-31 16:22:58 +00:00
Pavel Janík
5f11d42cee (byte-optimize-form-code-walker): Remove mocklisp case. 2001-12-22 13:36:59 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Gerd Moellmann
3ecf67a184 (byte-optimize-lapcode)
<byte-constref-ops>: Consider byte-constant2 and clarify the code.
<const-C varset-X const-C>: Fix car/cdr typo.
2001-10-11 17:25:26 +00:00
Gerd Moellmann
244bbdc57a Downcase error messages. 2001-10-11 12:57:53 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Stefan Monnier
0abfa90d84 (byte-compile-inline-expand): Complete Dave's
patch to correct the error message as well.
2001-05-27 11:34:56 +00:00
Stefan Monnier
28881a56aa (byte-compile-inline-expand): Fix the arg of `load' again. 2001-05-27 11:12:13 +00:00
Stefan Monnier
b291c86c45 (byte-compile-inline-expand): Undo last change. 2001-05-27 11:02:02 +00:00
Stefan Monnier
a434b175a9 (byte-compile-inline-expand):
Fix the arg of `load'.  From Dave Love <fx@gnu.org>.
2001-05-25 18:43:50 +00:00
Gerd Moellmann
aefd695aad (byte-optimize-while)
(byte-optimize-form-code-walker): Diagnose too few arguments
for `if' and `while'.
2001-03-26 13:04:11 +00:00
Gerd Moellmann
936ae731f3 (byte-compile-unfold-lambda): Don't
recursively optimize body because that can lead to infinite
recursion; see comment there.
2000-11-14 04:41:56 +00:00
Dave Love
944425c0c3 (byte-optimize-lapcode): Don't bind
unused vars.  Treat byte-constant2 like byte-constant.  Fix bogus
comparison of opcode with operand.
2000-10-02 17:44:51 +00:00
Stefan Monnier
72d8b544c6 (byte-compile-log-lap-1)
(byte-optimize-inline-handler, byte-optimize-form-code-walker)
(byte-optimize-apply, end of file): Don't quote lambda.
2000-06-12 05:06:37 +00:00
Dave Love
049a65a311 Update side-effect free function lists. 2000-05-21 17:24:19 +00:00
Gerd Moellmann
78ecf55a6a (byte-compile-inline-expand): Look
for function definition in symbol's function value slot first
instead of first consulting byte-compile-function-environment.

Fix byte-compiler warnings format.
2000-03-31 11:25:10 +00:00
Gerd Moellmann
c59a419228 (byte-compile-inline-expand): Fix bug
trying to `load' the symbol of an autoload instead of the file
recorded in the autoload.  Fix error messages.
2000-03-30 11:38:38 +00:00
Dave Love
e1f0df6214 Change old backquote syntax.
(byte-compile-trueconstp): Include keywords.
(byte-optimize-quote, byte-optimize-lapcode): Use
byte-compile-const-symbol-p.
(byte-optimize-char-before): New optimization.
2000-02-23 12:28:09 +00:00
Dave Love
2412aadb49 Don't put optimization info on `eql'.
(side-effect-free-fns): Add gethash, hash-table-count.
(side-effect-and-error-free-fns): Add hash-table-p.
1999-12-18 17:28:36 +00:00
Dave Love
f34bba6922 (byte-optimize-backward-char, byte-optimize-backward-word): New
optimizations.
(side-effect-free-fns, side-effect-and-error-free-fns): Extra entries.
1999-09-09 20:04:17 +00:00
Dave Love
e5b69caa66 (byte-boolean-vars): Removed. (Now primitive.) 1999-09-06 11:10:35 +00:00
Dave Love
e89a34decc (byte-boolean-vars): Add several w32 and redisplay variables. 1999-08-31 16:23:24 +00:00
Karl Heuer
1ffa428601 Provide byte-optimize', not byte-opt'. 1999-08-10 17:13:38 +00:00
Richard M. Stallman
ea9d637111 (byte-optimize-plus): Fix 1-arg case. 1999-05-17 01:37:04 +00:00
Andreas Schwab
f20f3ac73b (byte-boolean-vars): Add
unibyte-display-via-language-environment.
1999-05-10 13:02:09 +00:00
Markus Rost
c144230d0c Require bytecomp for byte-goto-ops. 1998-12-05 18:18:50 +00:00
Karl Heuer
223a2a6298 (byte-compile-inline-expand):
If the function definition is not a lambda, return original FORM
with no error.
1998-09-04 19:57:32 +00:00
Richard M. Stallman
031bf182c0 (byte-boolean-vars): Add print-escape-multibyte. 1998-07-04 02:49:48 +00:00
Karl Heuer
fcd61c5693 Comment fix. 1998-06-05 16:25:25 +00:00
Richard M. Stallman
f10f694856 (byte-boolean-vars): Add print-escape-nonascii. 1998-05-25 20:31:58 +00:00
Richard M. Stallman
6ebe9f826f (byte-decompile-bytecode-1):
Cope with an out-of-range constvec index.
1998-05-15 05:49:05 +00:00
Richard M. Stallman
43fd1680f9 (byte-after-unbind-ops): Delete byte-equal. 1998-04-17 02:00:04 +00:00
Richard M. Stallman
4f493b7c94 (byte-optimize-form-code-walker): Only call compiler-macroexpand if
the function has a cl-compiler-macro property.
1998-02-09 00:19:00 +00:00
Richard M. Stallman
b8ba68e52b (byte-optimize-form-code-walker): Fix previous change. 1998-01-26 10:29:25 +00:00
Richard M. Stallman
70b40ea144 (byte-compile-inline-expand): Use string-as-unibyte, if it is defined. 1998-01-26 09:48:21 +00:00
Richard M. Stallman
5428ee0299 (byte-optimize-form-code-walker):
If compiler-macroexpand is defined, use it.
1998-01-22 02:23:21 +00:00
Karl Heuer
98a602e358 (byte-optimize-lapcode): Correctly
distinguish byte-constant from operations on variables.
1997-12-04 05:58:56 +00:00
Karl Heuer
79d137ffe7 (byte-optimize-concat): New function. 1997-11-03 03:58:23 +00:00