1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

216 Commits

Author SHA1 Message Date
Richard M. Stallman
9e31e67b6f (byte-compile-not-obsolete-var): New var.
(byte-compile-variable-ref): Handle byte-compile-not-obsolete-var.
(byte-compile-defvar): Bind byte-compile-not-obsolete-var
to prevent warnings about defvar for an obsolete variable.

(byte-compile-log-warning):
warning-group-format renamed to warning-type-format.
2003-08-06 01:08:21 +00:00
Stefan Monnier
08d21785c8 (byte-compile-defvar): Check and set the default value of the variable.
(byte-code-meter): Move declaration to top level.
2003-07-04 23:47:48 +00:00
Richard M. Stallman
3c9dc1cf0d (byte-compile-no-warnings): New function.
(with-no-warnings): Set up compile handler.
2003-05-28 11:26:45 +00:00
Kenichi Handa
844da0ff4c (byte-compile-file): Fix comment 2003-05-06 05:10:59 +00:00
John Paul Wallington
6640c250eb (byte-compile-cl-warn): Use `string-match'. 2003-04-29 02:56:25 +00:00
Dave Love
118861dfa8 (byte-compile-cl-warn): Avoid cl warnings
from caaar & al.
2003-04-28 22:05:17 +00:00
Richard M. Stallman
a81edd91e0 Comment change. 2003-04-24 01:52:37 +00:00
Richard M. Stallman
d8c9125887 (byte-compile-defun): Generate and compile a defalias form,
unless byte-compile-compatibility.
2003-04-24 01:51:54 +00:00
Stefan Monnier
d0e07261a2 (byte-compile-defvar): Improve message. 2003-04-21 15:48:28 +00:00
Richard M. Stallman
977f31f883 (byte-compile-log-file, (byte-recompile-directory): Don't use
byte-goto-log-buffer.  Instead, set default-directory and then call
compilation-mode.

(byte-compile-from-buffer): Force byte-compile-last-position
to end of buffer before issuing final warnings.
2003-04-19 04:18:37 +00:00
Stefan Monnier
582a857ccc (byte-compile-const-symbol-p): Rename arg. 2003-04-16 20:10:33 +00:00
Stefan Monnier
8898f44ea6 (byte-compile-file-form-defvar, byte-compile-defvar):
Fix last commit which mistakenly relied on not-yet committed code.
2003-04-12 21:39:50 +00:00
Stefan Monnier
6c2161c427 Use push, with-current-buffer, dolist, ...
(byte-compile-const-variables): New var.
(byte-compile-close-variables): Reset it.
(byte-compile-file-form-defvar, byte-compile-defvar): Update it.
(byte-compile-const-symbol-p): Now arg `value' to check defconsts.
(byte-compile-variable-ref): Use it and improve warning message.
(byte-compile-check-lambda-list): Use byte-compile-const-symbol-p.
(byte-compile-lapcode): Remove unused vars.
(byte-compile-eval): Fix thinko in handling of old-autoloads.
(byte-recompile-directory): Use the expanded form for directory.
(byte-compile-track-mouse): Use modern backquote syntax.
(byte-compile-defvar): Detect and properly handle (defconst a).
(byte-compile-defalias-warn): Remove unused arg `alias'.
(byte-compile-defalias): Update call.
2003-04-12 20:28:10 +00:00
Richard M. Stallman
f1b1a9f2b4 Comment change. 2003-02-17 07:54:27 +00:00
Richard M. Stallman
347a36bc5b (byte-compile-file-form-custom-declare-variable):
Compile any lambda-expressions among the args.
2003-01-25 19:44:24 +00:00
Dave Love
b8234c844c (byte-compile-if): Suppress warnings from
things protected by `(if (fboundp ...' or `(if (boundp ...'.
2002-12-12 20:27:43 +00:00
Richard M. Stallman
d1a57439f1 (byte-compile-eval): Handle (t . SYMBOL) elements in load-history.
(byte-compile-cl-warn): No cl warnings for cl-defsubst-expand
and cl-struct-setf-expander.
2002-12-07 21:33:19 +00:00
Dave Love
def9389aaa (maphash, map-char-table): Use
byte-compile-funarg.
2002-11-19 18:02:07 +00:00
Richard M. Stallman
ab8bc7178c (byte-compile-lambda): Handle progn like let, inside interactive spec. 2002-11-06 05:07:04 +00:00
Juanma Barranquero
6b8c2efcd6 Fix typo. 2002-10-17 15:32:26 +00:00
Richard M. Stallman
2b25de040f (byte-compile-output-docform): Don't make the definition dynamic if it
shares structure with the arg list.
2002-09-18 16:02:49 +00:00
Stefan Monnier
4f6d5bf009 (byte-compile-file): Don't switch buffer. 2002-09-09 21:41:34 +00:00
Richard M. Stallman
4eb4926c58 (byte-recompile-directory): Set and then bind default-directory. 2002-09-09 19:35:57 +00:00
Richard M. Stallman
cd91e34cb4 (byte-compile-delete-errors): Default to nil. 2002-09-09 00:28:38 +00:00
Richard M. Stallman
4390021bf8 (byte-compile-warning-prefix):
Decide here whether to print which form we're compiling.
If we do that, still print file and line.  Make file name
relative to default-directory.	Print fewer newlines.
(byte-compile-log-file): Print something even if no file.
Print messages for entering and leaving directories,
and set default-directory.
(displaying-byte-compile-warnings): Only sometimes bind warning-series.
(byte-compile-warning-series): New function.
(byte-compile-file): Set byte-compile-last-logged-file, don't bind it.
(byte-compile-display-log-head-p): Function deleted.
2002-08-29 17:26:47 +00:00
Richard M. Stallman
8f876842ca (byte-compile-log-file): Use \f.
(byte-compile-cl-warn): Add cl-macroexpand-all, cl-compiling-file
to don't-warn list.
2002-08-29 14:49:48 +00:00
Richard M. Stallman
c43008c44a (byte-compile-find-cl-functions):
Check that (car elt) is a string.
2002-07-31 22:05:16 +00:00
Richard M. Stallman
1fd592a0b0 (byte-compile-set-symbol-position): Don't recompute `entry' on each iteration.
(byte-compile-delete-first): Make it defsubst.
2002-07-25 18:18:10 +00:00
Richard M. Stallman
95c997fa7f (byte-compile-cl-functions): New variable.
(byte-compile-cl-warn): Use that variable.
(byte-compile-find-cl-functions): New function.
(displaying-byte-compile-warnings):
Call byte-compile-find-cl-functions.
2002-07-24 03:58:02 +00:00
Richard M. Stallman
22788fb817 Use warnings.el:
(byte-compile-warning-prefix): New function.
(byte-compile-log-file): Return page start position.
(byte-compile-log-warning): New function.
(byte-compile-warn): Use byte-compile-log-warning.
(byte-compile-report-error): Likewise.  Also use error-message-string.
(displaying-byte-compile-warnings): Bind warning-series.
Don't bind or use byte-compile-warnings-point-max.
Don't display the log buffer at the end.
(byte-compile-warnings-point-max): Variable deleted.
(byte-compile-log-1): Rewrite for trace info, not used for warnings.
(byte-compile-last-warned-form, byte-compile-last-logged-file):
Defvars moved.
2002-07-20 22:01:19 +00:00
Richard M. Stallman
9cb9a7bc56 (byte-compile-cl-warn): Delete `values'
and `values-list' from list of CL functions.

(compile-defun): Bind `read-with-symbol-positions' to current buffer.
2002-07-19 23:01:24 +00:00
Juanma Barranquero
6079b12b94 (unread-command-char, executing-macro, post-command-idle-hook,
post-command-idle-delay): Move obsolescence declarations to subr.el.
2002-07-19 11:35:37 +00:00
Juanma Barranquero
9c708a1b1c (dot, dot-max, dot-min, dot-marker, buffer-flush-undo, baud-rate,
compiled-function-p, define-function): Move obsolescence declarations to
subr.el.
2002-07-19 06:23:28 +00:00
Richard M. Stallman
4795d1c7d1 (byte-compile-warning-types):
Rename cl-func to cl-functions.  Enable it by default.
(byte-compile-file-form-eval-boundary):
Turn off cl-functions warnings if the file loads cl.
(byte-compile-initial-macro-environment): For eval-and-compile,
use byte-compile-eval-before-compile to eval.
(byte-compile-eval-before-compile): New function to turn off
cl-functions when appropriate, for eval-and-compile.

(byte-compile-warnings):  Add cl-func option.
(byte-compile-cl-warn): New function.
(byte-compile-form): Use it, to warn about calling cl functions.
2002-07-02 18:48:34 +00:00
Juanma Barranquero
52f4048f13 (baud-rate): Fix obsolescence declaration.
(meta-flag): Likewise.
2002-06-27 16:07:04 +00:00
Stefan Monnier
ba76e7fac5 (byte-compile-callargs-warn):
Check for `noruntime' even if the function has a known sig.
(byte-compile-file, byte-compile-output-docform):
Don't hard code point-min = 1.
2002-06-25 01:09:52 +00:00
Richard M. Stallman
c4f2cabda6 (byte-recompile-directory): Doc fix.
(batch-byte-recompile-directory): Undo previous change.
2002-06-15 20:37:01 +00:00
Richard M. Stallman
d09b1c02f5 (batch-byte-compile-file): Delete the output file if we get a file-error. 2002-05-29 16:38:46 +00:00
Colin Walters
ccb3c8deaf (byte-compile-last-line): Deleted.
(byte-compile-delete-first): New function.
(byte-compile-read-position): New variable.
(byte-compile-last-position): New variable.
(byte-compile-current-buffer): New variable.
(byte-compile-log-1): Use it.
(byte-compile-set-symbol-position): New function.
(byte-compile-obsolete, byte-compile-callargs-warn)
(byte-compile-arglist-warn, byte-compile-arglist-warn)
(byte-compile-print-syms, byte-compile-file-form-defmumble)
(byte-compile-check-lambda-list, byte-compile-lambda)
(byte-compile-form, byte-compile-variable-ref)
(byte-compile-subr-wrong-args, byte-compile-negation-optimizer)
(byte-compile-condition-case, byte-compile-defun)
(byte-compile-defvar, byte-compile-autoload)
(byte-compile-lambda-form): Use it.
(byte-compile-from-buffer): Set it, and bind
`read-with-symbol-positions' and `read-symbol-positions-list'.
(byte-compile-debug): New variable.
2002-05-28 17:40:47 +00:00
Gerd Moellmann
985b468607 (byte-compile-file-form-defmumble):
Handle declarations in macro definitions.
2002-03-24 19:48:27 +00:00
Stefan Monnier
814c447faf (batch-byte-compile-if-not-done): Add autoload cookie. 2002-03-22 23:05:26 +00:00
Richard M. Stallman
7e7d0f8bc2 (batch-byte-compile): New arg noforce.
(batch-byte-compile-if-not-done): New function.
2002-02-01 04:14:14 +00:00
Stefan Monnier
fef3407e0a (byte-compile-call-tree, byte-code-vector)
(byte-stack+-info, byte-compile-last-warned-form)
(byte-compile-last-logged-file): Don't defconst a variable.
(no-byte-compile): Declare.
(byte-compile-file): Don't boundp-check no-byte-compile any more.
(byte-compile-defvar): Leave defconst as is.
2001-11-17 00:54:36 +00:00
Sam Steingold
d90a41e8ba (byte-recompile-directory): Report numbers of files skipped and failed too. 2001-10-29 17:26:26 +00:00
Sam Steingold
1f00682428 Put the *Compile-Log* buffer in `compilation-mode'. 2001-10-18 21:05:16 +00:00
Gerd Moellmann
e34fd2f2c0 (byte-compile-check-lambda-list):
Turn error for repeated variables into warning.
2001-10-12 21:59:38 +00:00
Gerd Moellmann
eadd64444e (byte-compile-check-lambda-list): New
function checking that lambda-list consists of non-constant
symbols, that &rest and &optional are followed by variable names,
that &rest VAR is the last element, and that variables aren't
doubled.
(byte-compile-lambda): Use it.
2001-10-12 14:20:14 +00:00
Gerd Moellmann
b8175fe659 (byte-compile-display-log-head-p): New
function extracted from byte-compile-log-1.
(byte-compile-log-1): Change output to be more in line with
the output of other GNU tools.
(byte-compile-warn): Emit `warning' instead of `**' for warnings.
(byte-compile-report-error): Downcase error message.  Use
`error' instead of `!!' for error messages.
(byte-compile-print-syms): Treat non-interactive case specially.
(displaying-byte-compile-warnings): Use backquote.
(byte-compile-from-buffer): Bind byte-compile-last-line.
(batch-byte-compile): Remove `Done' message.
2001-10-11 12:57:18 +00:00
Stefan Monnier
82345a9abc (byte-compile-file): Return success when the file says no-byte-compile. 2001-10-07 23:34:07 +00:00
Gerd Moellmann
3614fc84de (byte-recompile-directory): Make sure the file is readable.
(byte-compile-file): Don't compile if `no-byte-compile' is set.
(byte-compile-defvar): Update to reflect the change in Fdefvar.
(batch-byte-recompile-directory): Pass arg=0.
2001-10-05 09:29:51 +00:00