Commit graph

231 commits

Author SHA1 Message Date
Stefan Monnier
b88a41d006 (byte-compile-log): Use backquotes.
(byte-compile-log-1): Don't call (byte-goto-log-buffer).
Use with-current-buffer.
(byte-goto-log-buffer): Delete.
(byte-compile-log-file): Call compilation-forget-errors.
2004-05-19 18:53:13 +00:00
Stefan Monnier
6f8e359068 (batch-byte-recompile-directory): Add byte-recompile-directory's opt `arg'. 2004-04-21 22:34:27 +00:00
Richard M. Stallman
a4f6653194 Fix previous change. 2004-04-21 19:13:00 +00:00
Richard M. Stallman
0a0eb031ad (byte-compile-no-warnings): Handle multiple args: compile like progn. 2004-04-21 19:12:04 +00:00
Stefan Monnier
a080ff233c (batch-byte-compile-file): Give a backtrace if requested. 2004-04-14 20:43:45 +00:00
Stefan Monnier
7d0e09557f (byte-compile-cond): Fix last change. 2004-04-12 03:11:10 +00:00
Miles Bader
1f3ddf11e8 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196
Remove RCS keywords

2004-04-10  Miles Bader  <miles@gnu.org>

   RCS keyword removal (only non-comment changes are enumerated here):

   * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
   (byte-compile-insert-header): Don't use `byte-compile-version'.
   * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
   instead of calculating something from the RCS `State' keyword
   [the latter is almost entirely useless anyway].
   * lisp/forms.el (forms-version): Variable removed.
   (forms-mode): Don't use `forms-version'.
   * lisp/recentf.el (recentf-version): Variable removed.
   * lisp/progmodes/delphi.el (delphi-version): Variable removed.
   * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
2004-04-10 05:55:49 +00:00
Stefan Monnier
b122f3fb5a (byte-recompile-directory): Ignore hidden dir.
(byte-compile-file): Output warning when deleting a file.
2004-03-22 15:23:59 +00:00
Richard M. Stallman
8de4476933 (byte-compile-get-constant): For strings, do compare text properties. 2004-03-12 10:09:59 +00:00
Richard M. Stallman
ab43c85050 (byte-compile-compatibility): Doc fix.
(byte-compile-format-warn): New.
(byte-compile-callargs-warn): Use it.
(Format, message, error): Add byte-compile-format-like property.
(byte-compile-maybe-guarded): New.
(byte-compile-if, byte-compile-cond): Use it.
(byte-compile-lambda): Compile interactive forms, just to make
warnings about them.
2004-01-29 17:58:16 +00:00
Luc Teirlinck
9a7268cf3a *** empty log message *** 2004-01-13 00:24:12 +00:00
Luc Teirlinck
7618fe8e02 (compile-defun): Doc fix. 2004-01-12 23:28:29 +00:00
Richard M. Stallman
9dbd7d6674 (byte-compile-log-file): Clear out byte-compile-last-warned-form. 2003-09-22 15:16:10 +00:00
Richard M. Stallman
2c0696b144 (byte-compile-warning-prefix):
Fix the condition for whether to print "In WHERE".
2003-09-19 14:29:42 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
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