1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00
Commit Graph

175 Commits

Author SHA1 Message Date
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
Miles Bader
e4cf159b2a (byte-compile-file): Remove TARGET-FILE before writing it, so that
hard-links don't see new version.
2001-08-21 17:01:57 +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
d686d354c1 (byte-compile-file-form-autoload): Use the
same definition in byte-compile-function-environment as `autoload'
would put in `symbol-function'.
2001-05-27 11:40:39 +00:00
Richard M. Stallman
5afd1b9cc3 (byte-compile-log-1): In non-batch case, don't mention the file name
or the date here, because they are logged at the start of the file.
2001-01-08 19:33:02 +00:00
Gerd Moellmann
9985d3915e (byte-compiling-files-p): New function. 2000-11-09 23:01:40 +00:00
Gerd Moellmann
6a619620de (byte-compile-current-file): Don't bind
it, so that a boundp test can be used to determine if we're
currently byte-compiling.
2000-11-09 16:07:56 +00:00
Miles Bader
3b6542bab5 (byte-compile-file): Bind `byte-compile-last-logged-file' to nil. 2000-10-23 10:27:47 +00:00
Miles Bader
cb3069bb5e [the following changes fix a bug where `define-minor-mode' didn't
correctly generate :require clauses for defcustoms in compiled files]

(byte-compile-last-logged-file):
  New variable.
(byte-compile-log-file, byte-compile-log-1):
  Don't set `byte-compile-current-file' to nil.
  Instead set `byte-compile-last-logged-file' to it.
  Test whether byte-compile-current-file equals byte-compile-last-logged-file
    instead of whether its nil.
2000-10-23 09:16:47 +00:00
Gerd Moellmann
1bc20d83cb (byte-compile-defvar-or-defconst): Only cons onto
current-load-list in top-level forms.  Else this leaks a cons cell
every time a defun is called.
2000-09-25 15:41:30 +00:00
Gerd Moellmann
71246c2c41 Undo last change
because it breaks '(make-variable-buffer-local (defvar ...)'
which is used at least in dired.
2000-09-12 09:10:56 +00:00
Gerd Moellmann
cc0f95a474 (byte-compile-defvar): Only cons onto
current-load-list in top-level forms.  Else this leaks a cons cell
every time a defun is called.
2000-09-11 18:26:43 +00:00
Dave Love
28bb2cef02 (mapc): Use byte-compile-funarg. 2000-08-27 21:55:00 +00:00
Miles Bader
527083d575 (byte-compile-beginning-of-line):
Compiler macro removed; beginning-of-line is no longer always
equivalent to forward-line, in the presence of fields.
2000-08-19 01:53:42 +00:00
Kenichi Handa
447a052b48 (byte-compile-fix-header): Fix the way of checking the existence of
any multibyte characters.
2000-08-07 01:47:27 +00:00
Stefan Monnier
20482b7061 * byte-run.el (make-obsolete, make-obsolete-variable):
Add an optional WHEN argument and change the format of the
symbol-property information.
* emacs-lisp/bytecomp.el (byte-compile-log): Don't quote lambda.
(byte-compile-obsolete, byte-compile-variable-ref): Understand the
new obsolete-symbol-property format and print WHEN if it is provided.
(make-obsolete): Update the calls to use the third argument.
2000-06-01 04:58:08 +00:00
Dave Love
ed62683d5a (byte-compile-callargs-warn): Use subr-arity to check primitives.
(byte-compile-flush-pending, byte-compile-file-form-progn)
(byte-compile-normal-call, byte-compile-list, byte-compile-concat)
(byte-compile-insert, byte-compile-funcall): Use mapc instead of
mapcar.
2000-05-26 10:35:38 +00:00
Gerd Moellmann
c3b2784b4b (byte-compile-file-form-autoload): Re-enable new code. 2000-03-31 11:28:14 +00:00
Gerd Moellmann
95875d9635 (byte-compile-file-form-autoload): Disable new code. 2000-03-30 11:37:05 +00:00
Dave Love
c5091f25dd Doc fixes.
(byte-compile-file-form-autoload): Update
byte-compile-function-environment.
2000-03-29 21:32:57 +00:00
Stefan Monnier
ea4b0ca303 (byte-compile-eval): Fix and reenable the code. 2000-03-26 19:52:27 +00:00
Gerd Moellmann
a0d8827097 (byte-compile-eval): Disable new code. 2000-03-24 22:50:34 +00:00
Stefan Monnier
a586093f79 (byte-compile-warning-types, byte-compile-warnings): New warning `noruntime'.
(byte-compile-constants, byte-compile-variables): Fix docstring.
(byte-compile-initial-macro-environment): Use `byte-compile-eval' to
execute `eval-whenc-compile's body.
(byte-compile-unresolved-functions): Fix docstring.
(byte-compile-eval): New function.
(byte-compile-callargs-warn): Check if the function will be available
at runtime (via property `byte-compile-noruntime').
(byte-compile-print-syms): New function.
(byte-compile-warn-about-unresolved-functions): Also warn about
`noruntime' functions (and use `byte-compile-print-syms').
(byte-compile-file): Capitalize the message.
2000-03-24 18:37:48 +00:00
Dave Love
1639b80357 Change old backquote syntax.
(byte-compile-const-symbol-p): New function.
(byte-compile-constp, byte-compile-out-toplevel)
(byte-compile-form, byte-compile-form, byte-compile-variable-ref):
Use it.
2000-02-23 12:29:05 +00:00
Dave Love
3433c43f88 Run bytecomp-load-hook. 2000-02-02 15:10:35 +00:00
Dave Love
fd9b0a6b13 (byte-extrude-byte-code-vectors): Use remprop. 2000-01-06 23:38:46 +00:00
Dave Love
94c79e1040 (byte-compile-constp): Include keywords. 1999-12-18 16:30:48 +00:00
Dave Love
b92dd692ad (byte-compile-bound-variables): Doc fix.
(byte-extrude-byte-code-vectors): Use remprop.
(byte-compile-lambda): Check that arg is a lambda.
1999-12-16 15:26:03 +00:00
Richard M. Stallman
3606c1c576 (byte-compile-output-docform): Bind print-gensym-alist for compatibility,
and bind print-gensym in the old way for compatibility.
1999-09-11 04:46:31 +00:00
Richard M. Stallman
42e0601d4a (byte-compile-output-docform): Bind print-continuous-numbering and
print-number-table.
1999-09-11 04:44:23 +00:00
Richard M. Stallman
7a28e3b1f4 (byte-compile-file): Clear buffer-file-coding-system. If the coding
system used is raw-text, etc., make the *Compiler Input* buffer unibyte.
1999-04-06 19:56:24 +00:00
Dave Love
dd9383bc54 (byte-compile-warnings): Doc fix. 1999-01-07 19:50:41 +00:00
Richard M. Stallman
3d6a1ce034 (temp-buffer-show-hook): This is not obsolete. 1998-11-18 18:42:34 +00:00
Richard M. Stallman
080434ef3e (byte-recompile-directory):
Print message about each directory, even in batch mode.
1998-10-17 20:20:46 +00:00
Richard M. Stallman
458f70dc00 (byte-compile-dynamic): Doc fix. 1998-09-28 13:32:44 +00:00
Kenichi Handa
2d5975faa8 (byte-compile-output-as-comment):
Calculate the total bytes using position-bytes instead of
char-bytes.
1998-08-28 12:22:39 +00:00
Richard M. Stallman
01c925e95e Whitespace change. 1998-08-18 07:02:59 +00:00
Richard M. Stallman
08b59cd333 (byte-compile-from-buffer): Make the output buffer multibyte. 1998-08-05 17:59:36 +00:00
Richard M. Stallman
dc14ae363e (byte-compile-file): Bind set-auto-coding-for-load to t. 1998-07-05 20:30:39 +00:00
Andreas Schwab
778c757617 (byte-compile-generate-call-tree):
Use `other' widget type.
1998-06-24 09:02:58 +00:00
Karl Heuer
b9edcafb51 (byte-compile-lambda): Fix previous change. 1998-06-04 06:11:30 +00:00
Richard M. Stallman
fb639443f9 (byte-compile-insert-header): Do not look for multibyte characters here.
Generate the right file header for use if there are none.
Insert a line of semicolons for subsequent deletion if needed.
(byte-compile-fix-header): New function.
This updates the file header if the file uses multibyte characters.
(byte-compile-from-buffer): Call byte-compile-insert-header
before compiling, and byte-compile-fix-header at the end.
1998-05-19 02:59:42 +00:00