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
Richard M. Stallman
d57d06cb6e
(byte-compile-insert-header): Fix prev chg.
1998-05-13 04:48:48 +00:00
Richard M. Stallman
1596952ed4
(byte-compile-from-buffer):
...
Insert the output file header after compiling all the input.
(byte-compile-output-file-form): Major cleanup.
If output file contains multibyte chars,
insist on Emacs 20 when loading.
1998-05-13 00:03:19 +00:00
Richard M. Stallman
1cdb6e7c67
(byte-compile-output-docform): Use position-bytes.
1998-05-10 03:50:03 +00:00
Richard M. Stallman
746dd29821
(byte-compile-file): Always read the file in multibyte mode
...
unless the file itself specifies unibyte mode.
1998-04-23 21:24:29 +00:00
Karl Heuer
170c97338b
(byte-compile-warn-about-unresolved-functions): Fix whitespace.
1998-04-15 06:10:51 +00:00
Andreas Schwab
aa6356917b
(byte-compile-warnings): Fix customize
...
type.
1998-04-14 10:43:27 +00:00
Richard M. Stallman
17ceb934e4
(byte-compile-output-as-comment):
...
Use the size in bytes for the #@ size integer.
1998-02-05 03:25:11 +00:00
Richard M. Stallman
74dfd056e4
(byte-compile-from-buffer): Bind edebug-all-defs and edebug-all-forms to nil.
1998-02-02 01:21:18 +00:00
Richard M. Stallman
713ea1de58
Customized.
...
(displaying-byte-compile-warnings):
To avoid error, use (forward-line -1), not previous-line.
1998-01-26 10:28:01 +00:00
Karl Heuer
cb5b843e72
(displaying-byte-compile-warnings): Show
...
entire "Compiling ..." line when recentering.
1997-09-25 01:10:01 +00:00
Richard M. Stallman
36b7e5233a
(byte-compile-output-file-form): Handle custom-declare-variable.
1997-08-31 17:07:28 +00:00
Richard M. Stallman
b077f04568
(byte-compile-output-docform):
...
Bind print-gensym-alist; bind print-gensym to a cons cell.
1997-07-25 03:01:28 +00:00
Richard M. Stallman
2c9210580b
(eql): byte-defop-compiler definition deleted.
1997-07-23 21:41:47 +00:00
Richard M. Stallman
b8ae93ada3
(char-after): Allow 0 args.
1997-07-10 10:55:23 +00:00
Richard M. Stallman
1c57117e75
(byte-compile-file): Doc fix.
...
(batch-byte-compile-file): Return what byte-compile-file returns.
1997-06-22 23:08:47 +00:00