Miles Bader
d4aa48db8e
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-937
2007-11-21 04:55:58 +00:00
Richard M. Stallman
b1dfec553a
Comment change.
2007-11-20 12:38:26 +00:00
Juanma Barranquero
f31d0424ea
Comment change.
2007-11-14 11:18:54 +00:00
Dan Nicolaescu
d8947b79fc
* emacs-lisp/byte-opt.el (byte-compile-trueconstp): Handle more
...
constant forms.
(byte-compile-nilconstp): New function.
(byte-optimize-cond): Kill subsequent branches when a branch is
know to be taken or not taken.
(byte-optimize-if): Use byte-compile-nilconstp instead of hand
coding.
2007-11-13 16:10:14 +00:00
Dan Nicolaescu
70f4194508
* emacs-lisp/byte-opt.el (byte-optimize-featurep): Optimize
...
(featurep 'emacs) to t.
* emacs-lisp/bytecomp.el (byte-compile-find-bound-condition): New
function.
(byte-compile-maybe-guarded): Use it to also look for bound
symbols inside `and' forms. Comment out non-working code that was
trying to avoid warnings for XEmacs code.
2007-11-10 08:05:15 +00:00
Stefan Monnier
538a93d833
(byte-optimize-featurep): Fix paren typo.
2007-10-21 20:10:06 +00:00
Glenn Morris
988e29061a
(top level): Use mapc rather than mapcar.
2007-10-12 03:00:05 +00:00
Miles Bader
7f22a76506
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 97-100)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 246-247)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-860
2007-08-27 04:00:19 +00:00
Stefan Monnier
9d693d807f
(byte-optimize-if): Don't presume `clause' is a list.
2007-08-24 14:39:25 +00:00
Stefan Monnier
40fafc2162
(byte-optimize-if): Move `progn' out of the test
...
so as to optimise cases where the `progn's result is constant.
2007-08-23 19:56:16 +00:00
Stefan Monnier
5ebfbcdc3f
(byte-optimize-featurep): Also handle `sxemacs'.
2007-08-23 15:11:31 +00:00
Glenn Morris
ab2d877d45
Replace `iff' in doc-strings and comments.
2007-08-08 07:17:12 +00:00
Glenn Morris
e0085d62fa
Switch license to GPLv3 or later.
2007-07-25 04:14:29 +00:00
Chong Yidong
fb67ebdf16
(byte-optimize-form-code-walker): Evaluate pure function calls if possible.
...
(byte-optimize-all-constp): New function.
2007-04-11 17:10:42 +00:00
Glenn Morris
6f7e29f1d2
Markus Triska <markus.triska at gmx.at>:
...
(byte-optimize-backward-char, byte-optimize-backward-word): Remove -
move to bytecomp.el.
2007-04-11 03:57:11 +00:00
Glenn Morris
17975ebf23
Markus Triska <markus.triska at gmx.at>:
...
(byte-optimize-char-before): Remove (move to bytecomp.el as
byte-compile-char-before).
2007-04-10 03:58:03 +00:00
Chong Yidong
e5a858825f
Remove spurious debugging code.
2007-04-09 16:33:01 +00:00
Chong Yidong
c990483162
* emacs-lisp/byte-opt.el (byte-optimize-pure-func): Remove function
...
(originally checked in as byte-optimize-concat on 1997-11-02).
2007-04-06 18:22:23 +00:00
Chong Yidong
1fbb84daed
(byte-optimize-form-code-walker): Print entire form.
2007-04-05 17:57:05 +00:00
Glenn Morris
f0fa15c5e5
Add 2007 to copyright years.
2007-01-21 02:48:43 +00:00
Thien-Thi Nguyen
ceb4c4d303
Update years in copyright notice; nfc.
2006-02-06 12:31:40 +00:00
Richard M. Stallman
9d8684ddf3
(byte-optimize-form-code-walker): Improve warning message text.
2005-11-16 22:20:03 +00:00
Andreas Schwab
c80eca7195
(byte-optimize-pure-func): Quote the
...
folded value.
2005-11-02 22:18:56 +00:00
Stefan Monnier
4cd305ac33
(byte-optimize-pure-func): Quote the eval'd value so it's not re-eval'd.
2005-11-02 21:56:15 +00:00
Stefan Monnier
cfa1d4c6d1
(string-to-syntax): Mark it as pure.
2005-11-02 19:03:17 +00:00
Thien-Thi Nguyen
3731a85096
Update years in copyright notice; nfc.
2005-08-06 17:48:15 +00:00
Lute Kamstra
3a35cf56e7
Update FSF's address.
2005-07-04 17:55:18 +00:00
Juanma Barranquero
c1fe651240
(byte-optimize-pure-func): Fix spellings.
2005-06-21 13:45:12 +00:00
Richard M. Stallman
4cead7a206
(byte-optimize-form-code-walker):
...
Use with-no-warnings around compiler-macroexpand.
2004-11-25 02:58:34 +00:00
Stefan Monnier
08d72d137c
(byte-optimize-inline-handler): Simplify.
...
(byte-decompile-bytecode-1): Remove unused vars `tag' and `retcount'.
2004-11-14 06:19:52 +00:00
Stefan Monnier
f61b7b7fb1
(byte-compile-inline-expand): Understand the
...
new byte-compile-function-environment binding to t.
2004-11-12 03:59:26 +00:00
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