aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-12-15 16:52:37 +0000
committerDave Love2002-12-15 16:52:37 +0000
commitf08830d27ffba84297d58b0dbfb80a1cb63deff6 (patch)
tree9d8d5f6cd98afb46041992a52323c58578d4dd61
parentccdd5c61872c10cce32e500bc15aa3efe05c7d75 (diff)
downloademacs-f08830d27ffba84297d58b0dbfb80a1cb63deff6.tar.gz
emacs-f08830d27ffba84297d58b0dbfb80a1cb63deff6.zip
Compiler changes
-rw-r--r--etc/NEWS25
1 files changed, 25 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index c0f0bdd4efe..7c9905dfe77 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1116,6 +1116,31 @@ with Custom.
1116 1116
1117* Lisp Changes in Emacs 21.4 1117* Lisp Changes in Emacs 21.4
1118 1118
1119** Byte compiler changes:
1120
1121*** `(featurep 'xemacs)' is treated by the compiler as nil. This
1122helps to avoid noisy compiler warnings in code meant to run under both
1123Emacs and XEmacs and may sometimes make the result significantly more
1124efficient. Since byte code from recent versions of XEmacs won't
1125generally run in Emacs and vice versa, this optimization doesn't lose
1126you anything.
1127
1128*** You can avoid warnings for possibly-undefined symbols with a
1129simple convention that the compiler understands. (This is mostly
1130useful in code meant to be portable to different Emacs versions.)
1131Write forms like the following, or code that macroexpands into such
1132forms:
1133
1134 (if (fboundp 'foo) <then> <else>)
1135 (if (boundp 'foo) <then> <else)
1136
1137In the first case, using `foo' as a function inside the <then> form
1138won't produce a warning if it's not defined as a function, and in the
1139second case, using `foo' as a variable won't produce a warning if it's
1140unbound. The test must be in exactly one of the above forms (after
1141macro expansion), but such tests may be nested. Note that `when' and
1142`unless' expand to `if', but `cond' doesn't.
1143
1119** New translation table `translation-table-for-input'. 1144** New translation table `translation-table-for-input'.
1120 1145
1121+++ 1146+++