summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
Commit message (Collapse)AuthorAgeFilesLines
* (byte-compile-lambda): Handle progn like let, inside interactive spec.Richard M. Stallman2002-11-061-4/+2
|
* Fix typo.Juanma Barranquero2002-10-171-6/+6
|
* (byte-compile-output-docform): Don't make the definition dynamic if itRichard M. Stallman2002-09-181-2/+13
| | | | shares structure with the arg list.
* (byte-compile-file): Don't switch buffer.Stefan Monnier2002-09-091-3/+5
|
* (byte-recompile-directory): Set and then bind default-directory.Richard M. Stallman2002-09-091-57/+61
|
* (byte-compile-delete-errors): Default to nil.Richard M. Stallman2002-09-091-2/+2
|
* (byte-compile-warning-prefix):Richard M. Stallman2002-08-291-45/+72
| | | | | | | | | | | | | 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.
* (byte-compile-log-file): Use \f.Richard M. Stallman2002-08-291-6/+13
| | | | | (byte-compile-cl-warn): Add cl-macroexpand-all, cl-compiling-file to don't-warn list.
* (byte-compile-find-cl-functions):Richard M. Stallman2002-07-311-2/+3
| | | | Check that (car elt) is a string.
* (byte-compile-set-symbol-position): Don't recompute `entry' on each iteration.Richard M. Stallman2002-07-251-13/+11
| | | | (byte-compile-delete-first): Make it defsubst.
* (byte-compile-cl-functions): New variable.Richard M. Stallman2002-07-241-10/+28
| | | | | | | (byte-compile-cl-warn): Use that variable. (byte-compile-find-cl-functions): New function. (displaying-byte-compile-warnings): Call byte-compile-find-cl-functions.
* Use warnings.el:Richard M. Stallman2002-07-201-70/+59
| | | | | | | | | | | | | | | (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.
* (byte-compile-cl-warn): Delete `values'Richard M. Stallman2002-07-191-4/+4
| | | | | | and `values-list' from list of CL functions. (compile-defun): Bind `read-with-symbol-positions' to current buffer.
* (unread-command-char, executing-macro, post-command-idle-hook,Juanma Barranquero2002-07-191-9/+1
| | | | post-command-idle-delay): Move obsolescence declarations to subr.el.
* (dot, dot-max, dot-min, dot-marker, buffer-flush-undo, baud-rate,Juanma Barranquero2002-07-191-10/+1
| | | | | compiled-function-p, define-function): Move obsolescence declarations to subr.el.
* (byte-compile-warning-types):Richard M. Stallman2002-07-021-9/+57
| | | | | | | | | | | | | | 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.
* (baud-rate): Fix obsolescence declaration.Juanma Barranquero2002-06-271-3/+3
| | | | (meta-flag): Likewise.
* (byte-compile-callargs-warn):Stefan Monnier2002-06-251-22/+24
| | | | | | 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.
* (byte-recompile-directory): Doc fix.Richard M. Stallman2002-06-151-7/+8
| | | | (batch-byte-recompile-directory): Undo previous change.
* (batch-byte-compile-file): Delete the output file if we get a file-error.Richard M. Stallman2002-05-291-1/+12
|
* (byte-compile-last-line): Deleted.Colin Walters2002-05-281-66/+160
| | | | | | | | | | | | | | | | | | | | | (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.
* (byte-compile-file-form-defmumble):Gerd Moellmann2002-03-241-2/+18
| | | | Handle declarations in macro definitions.
* (batch-byte-compile-if-not-done): Add autoload cookie.Stefan Monnier2002-03-221-1/+2
|
* (batch-byte-compile): New arg noforce.Richard M. Stallman2002-02-011-5/+20
| | | | (batch-byte-compile-if-not-done): New function.
* (byte-compile-call-tree, byte-code-vector)Stefan Monnier2001-11-171-10/+17
| | | | | | | | (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.
* (byte-recompile-directory): Report numbers of files skipped and failed too.Sam Steingold2001-10-291-17/+24
|
* Put the *Compile-Log* buffer in `compilation-mode'.Sam Steingold2001-10-181-18/+20
|
* (byte-compile-check-lambda-list):Gerd Moellmann2001-10-121-2/+2
| | | | Turn error for repeated variables into warning.
* (byte-compile-check-lambda-list): NewGerd Moellmann2001-10-121-1/+28
| | | | | | | | 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.
* (byte-compile-display-log-head-p): NewGerd Moellmann2001-10-111-104/+95
| | | | | | | | | | | | | 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.
* (byte-compile-file): Return success when the file says no-byte-compile.Stefan Monnier2001-10-071-48/+48
|
* (byte-recompile-directory): Make sure the file is readable.Gerd Moellmann2001-10-051-60/+71
| | | | | | (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.
* (byte-compile-file): Remove TARGET-FILE before writing it, so thatMiles Bader2001-08-211-2/+9
| | | | hard-links don't see new version.
* Some fixes to follow coding conventions in files maintained by FSF.Pavel Janík2001-07-151-2/+2
|
* (byte-compile-file-form-autoload): Use theStefan Monnier2001-05-271-6/+6
| | | | | same definition in byte-compile-function-environment as `autoload' would put in `symbol-function'.
* (byte-compile-log-1): In non-batch case, don't mention the file nameRichard M. Stallman2001-01-081-9/+15
| | | | or the date here, because they are logged at the start of the file.
* (byte-compiling-files-p): New function.Gerd Moellmann2000-11-091-4/+2
|
* (byte-compile-current-file): Don't bindGerd Moellmann2000-11-091-2/+4
| | | | | it, so that a boundp test can be used to determine if we're currently byte-compiling.
* (byte-compile-file): Bind `byte-compile-last-logged-file' to nil.Miles Bader2000-10-231-1/+2
|
* [the following changes fix a bug where `define-minor-mode' didn'tMiles Bader2000-10-231-6/+13
| | | | | | | | | | | | 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.
* (byte-compile-defvar-or-defconst): Only cons ontoGerd Moellmann2000-09-251-18/+27
| | | | | current-load-list in top-level forms. Else this leaks a cons cell every time a defun is called.
* Undo last changeGerd Moellmann2000-09-121-10/+13
| | | | | because it breaks '(make-variable-buffer-local (defvar ...)' which is used at least in dired.
* (byte-compile-defvar): Only cons ontoGerd Moellmann2000-09-111-14/+11
| | | | | current-load-list in top-level forms. Else this leaks a cons cell every time a defun is called.
* (mapc): Use byte-compile-funarg.Dave Love2000-08-271-1/+2
|
* (byte-compile-beginning-of-line):Miles Bader2000-08-191-15/+1
| | | | | Compiler macro removed; beginning-of-line is no longer always equivalent to forward-line, in the presence of fields.
* (byte-compile-fix-header): Fix the way of checking the existence ofKenichi Handa2000-08-071-3/+1
| | | | any multibyte characters.
* * byte-run.el (make-obsolete, make-obsolete-variable):Stefan Monnier2000-06-011-35/+45
| | | | | | | | | 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.
* (byte-compile-callargs-warn): Use subr-arity to check primitives.Dave Love2000-05-261-16/+24
| | | | | | | (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.
* (byte-compile-file-form-autoload): Re-enable new code.Gerd Moellmann2000-03-311-2/+2
|
* (byte-compile-file-form-autoload): Disable new code.Gerd Moellmann2000-03-301-2/+2
|