Commit graph

284 commits

Author SHA1 Message Date
Thien-Thi Nguyen
b99cc8534d (byte-recompile-directory): Fix bug:
Don't expand top-level file name more than once.
2007-09-01 23:32:36 +00:00
Stefan Monnier
36e65f7059 (byte-compile-from-buffer): Check old-style backquotes after each `read'
rather than once per buffer to get more precise location info.
2007-08-23 18:19:56 +00:00
Stefan Monnier
ff11045092 (byte-compile-from-buffer): Display a big fat warning for old style backquotes. 2007-08-22 16:08:42 +00:00
Stefan Monnier
008e2c2a69 (byte-compile-log-file, byte-recompile-directory, byte-compile-file)
(byte-compile-from-buffer): Use with-current-buffer.
2007-08-22 15:51:13 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Alan Mackenzie
65e1b2a105 (byte-compile-from-buffer): initialise byte-compile-unresolved-functions before
rather than after a compilation.
(byte-compile-unresolved-functions): Amplify doc string.
2007-07-24 07:12:18 +00:00
Glenn Morris
a746fb658b Markus Triska <markus.triska at gmx.at>:
(byte-compile-char-before): Improve numeric argument case.
(byte-compile-backward-char, byte-compile-backward-word): New
functions, performing rewriting previously done in byte-opt.el.
Fix their "Fixme" item (restriction to numeric arguments).
2007-04-11 03:59:20 +00:00
Glenn Morris
ec448ae2df Markus Triska <markus.triska at gmx.at>:
(byte-compile-char-before): New function (modified replacement for
byte-optimize-char-before in byte-opt.el).
2007-04-10 03:54:36 +00:00
Richard M. Stallman
8bd91fd08d (byte-compile-file-form-defmumble): Use prin1 instead of princ. 2007-03-26 03:30:53 +00:00
Richard M. Stallman
b0aa2c6515 (byte-compile-warning-prefix): Correctly compute line number. 2007-03-11 21:16:09 +00:00
Juanma Barranquero
f9b4b5d865 (byte-compile-dest-file, byte-compile-file): Doc fixes. 2007-02-13 12:07:26 +00:00
Kenichi Handa
0e66b003a7 (byte-compile-disable-print-circle): New
variable.
(byte-compile-output-file-form): Bing print-circle to nil if
byte-compile-output-file-form is not nil.
(byte-compile-output-docform): Likewise.
2007-01-29 01:22:53 +00:00
Miles Bader
5e51de792c Make byte compiler correctly write circular constants
2007-01-24  Miles Bader  <miles@gnu.org>

   * lisp/emacs-lisp/bytecomp.el (byte-compile-output-file-form)
   (byte-compile-output-docform): Bind `print-circle' to t.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-614
2007-01-24 13:57:38 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Juanma Barranquero
9bb2e9f86b (byte-optimize, byte-compile-warnings): Doc fixes. 2006-11-30 16:26:37 +00:00
Richard M. Stallman
7fb4fa10a8 (byte-compile-get-constant):
Replace incorrect use of assoc-default with a loop.
2006-11-28 02:22:17 +00:00
Chong Yidong
8195ef65f0 (byte-compile-if): Revert last change. 2006-11-19 15:19:39 +00:00
Chong Yidong
26cc7ed550 (byte-compile-maybe-guarded): Check `and' conditions for function or
variable bindings.
2006-11-18 21:07:17 +00:00
Stefan Monnier
e0b4be6cc0 (byte-compile-form): The `byte-compile'
property may contain an anonymous function rather than a symbol.
2006-07-07 16:34:44 +00:00
Reiner Steib
0027258d1e (byte-compile-warnings-safe-p): New
function.
(byte-compile-warnings): Fix safe-local-variable property.
2006-05-16 10:05:09 +00:00
Reiner Steib
631c8020a5 Move `safe-local-variable' declarations to the respective files. 2006-05-11 15:01:41 +00:00
Richard M. Stallman
aa9addfa93 (byte-compile-file): Bind enable-local-variables to :safe,
and make normal-mode obey it.
2006-04-11 17:58:58 +00:00
Stefan Monnier
67438f773f (byte-compile-form): Only call cl-byte-compile-compiler-macro if it exists. 2006-04-08 14:56:21 +00:00
Eli Zaretskii
defe3b4124 (batch-byte-recompile-directory): Doc fix. 2006-01-13 09:56:23 +00:00
Stefan Monnier
b7a5a20839 (byte-compile-file-form-defalias):
Optimize the body of a defalias like any other code.
2006-01-03 18:35:58 +00:00
Lars Hansen
4ec5239cc9 (byte-compile-lambda): Add parameter add-lambda.
(byte-compile-file-form-defmumble, byte-compile-defun, byte-compile-defmacro): Use it.
(byte-compile-form): Don't call byte-compile-set-symbol-position when a byte-compile
handler is called.
2005-10-23 07:33:45 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Stefan Monnier
01e4a4fa03 (byte-compile-make-variable-buffer-local)
(byte-compile-form-make-variable-buffer-local): New functions to warn about
misuses of make-variable-buffer-local where make-local-variable was meant.
2005-07-29 19:54:18 +00:00
Juanma Barranquero
b2e948ee15 (byte-compile-maybe-guarded): Fix typo in docstring.
(byte-compile-interactive-only-functions): Add `insert-buffer' and
`insert-file-literally'.
2005-07-16 21:17:10 +00:00
Richard M. Stallman
ad50a502a1 (byte-compile-maybe-guarded): Doc fix. 2005-07-16 19:04:57 +00:00
Richard M. Stallman
300f994a93 (byte-compile-if): Guard the else-clause too. 2005-07-16 18:39:14 +00:00
Richard M. Stallman
83b0af6e4f (byte-compile-or-recursion): New function.
(byte-compile-or): Use that.
(byte-compile-maybe-guarded): Handle (not (featurep 'emacs)).
2005-07-16 18:27:25 +00:00
Richard M. Stallman
8877fa6fb3 (byte-compile-and-recursion): New function.
(byte-compile-and): Use byte-compile-and-recursion.
2005-07-16 18:02:07 +00:00
Richard M. Stallman
82a726b4ee (byte-compile-maybe-guarded): Check for (featurep 'xemacs) and turn
off warnings in what it guards.  Use unwind-protect to ensure
byte-compile-unresolved-functions is updated.
2005-07-08 22:49:47 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
25d1fc94f9 (bytecomp): Finish `defgroup' description with period. 2005-07-04 02:41:08 +00:00
Richard M. Stallman
019472f486 (byte-compile-nogroup-warn): Don't warn when name is not constant
or for defining the group `emacs'.
2005-07-03 16:17:11 +00:00
Richard M. Stallman
cbd87c94ac (byte-compile-nogroup-warn): Warn only when name to be defined is quoted. 2005-05-30 06:49:18 +00:00
Nick Roberts
8449720ce4 Remove make-obsolete-variable for
already deleted variables: auto-fill-hook, blink-paren-hook,
lisp-indent-hook, inhibit-local-variables, unread-command-event
suspend-hooks, comment-indent-hook, meta-flag,
before-change-function, after-change-function,
font-lock-doc-string-face.
2005-05-22 02:30:41 +00:00
Richard M. Stallman
fe33e7c83c (byte-compile-file-form-custom-declare-variable):
Call byte-compile-nogroup-warn if appropriate.
2005-05-19 15:39:21 +00:00
Richard M. Stallman
11efeb9b26 (byte-compile-nogroup-warn): New function.
(byte-compile-form): Call byte-compile-nogroup-warn.
(byte-compile-warning-types): Doc fix.
2005-05-14 12:30:08 +00:00
Nick Roberts
35bfeac0e5 (dot, dot-min, dot-max): Don't create
bytecode symbols.
2005-05-01 13:28:55 +00:00
Miles Bader
f195388009 Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-167
Tweak obsolete function/variable warning message

2005-03-09  Miles Bader  <miles@gnu.org>

   * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref)
   (byte-compile-obsolete): Change " since VER" to " (as of Emacs VER)".
2005-03-09 10:16:02 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Richard M. Stallman
4db985039f Comment change. 2004-12-21 11:50:52 +00:00
Richard M. Stallman
0b46acbff5 (byte-compile-form): Move the calls to byte-compile-set-symbol-position,
to avoid having two for the same symbol occurrence.
2004-11-21 00:47:13 +00:00
Stefan Monnier
977b50fb12 Use push.
(byte-compile-file-form-defalias): Rename from byte-compile-defalias.
(defalias): Remove the `byte-compile' property and add a `byte-hunk-handler'.
2004-11-11 22:44:46 +00:00
Richard M. Stallman
a7a7ddf104 (byte-compile-defalias):
Turn off warnings for the new function even ifdefinition not constant.
If the definition isn't a quoted symbol, record (FUNCTION . t).
(byte-compile-function-environment): Now allow (FUNCTION . t) as elt.
(byte-compile-callargs-warn): Handle (FUNCTION . t).
(display-call-tree, byte-compile-arglist-warn):
Handle t returned by byte-compile-fdefinition.
2004-11-09 10:33:23 +00:00
Richard M. Stallman
086af77cf5 (byte-compile-warning-types): Add interactive-only.
(byte-compile-warnings): Add interactive-only as option.
(byte-compile-interactive-only-functions): New variable.
(byte-compile-form): Warn about calls to functions
in byte-compile-interactive-only-functions.
2004-11-02 09:22:16 +00:00
Richard M. Stallman
997011eb62 (byte-compile-eval): Don't process
"cl" like other files.  Instead, call byte-compile-find-cl-functions.
(byte-compile-file-form-require): Detect "cl" from the arg value.

(byte-compile-log-1): Bind inhibit-read-only.
(byte-compile-warning-prefix, byte-compile-log-file): Likewise.
(byte-compile-log-warning): Likewise.
2004-10-16 15:20:24 +00:00