summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-23Stefan Monnier2010-11-171-13/+4
|\
| * * lisp/files.el (safe-local-variable-p): Gracefully handle errors.Stefan Monnier2010-11-111-13/+4
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Simplify the safety predicate.
* | bytecomp trivia.Glenn Morris2010-11-111-9/+13
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-log-buffer): New constant. Use it to replace all instances of "*Compile-Log*"
* | (byte-recompile-file): If bytecomp-arg is nil, do not ask to recompile files ↵Noah Friedman2010-11-021-3/+4
| | | | | | | | that are not already compiled, and do not recompile them.
* | * lisp/emacs-lisp/bytecomp.el (byte-recompile-file): Fix previous change.Glenn Morris2010-10-311-2/+1
| |
* | * lisp/emacs-lisp/bytecomp.el (byte-recompile-file): New fun.Julien Danjou2010-10-311-17/+58
| | | | | | | | | | | | | | | | | | | | (byte-recompile-directory): * lisp/emacs-lisp/lisp-mode.el (emacs-lisp-byte-compile-and-load): * cedet/ede/proj-elisp.el (project-compile-target): * cedet/semantic/ede-grammar.el (project-compile-target): Use `byte-recompile-file'. Fixes: debbugs:7297
* | Remove obsolete use of binary-overwrite-mode in bytecomp (Bug#7001).Chong Yidong2010-10-031-9/+1
| | | | | | | | | | * emacs-lisp/bytecomp.el (byte-compile-from-buffer): Remove obsolete use of binary-overwrite-mode (Bug#7001).
* | Add minor comment (Bug#7001).Chong Yidong2010-10-021-3/+4
| |
* | Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.Glenn Morris2010-10-011-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See thread http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00795.html * src/emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT. (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal in batch-mode. (Fkill_emacs): Doc fix. Also run the hook in batch mode. (kill-emacs-hook): Doc fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use kill-emacs-hook to delete tempfile if interrupted during compilation. * doc/lispref/os.texi (Killing Emacs): Hook now runs in batch mode. * etc/NEWS: Mention these changes.
* | Trivial bytecomp.el change.Glenn Morris2010-09-231-3/+3
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar): (byte-compile-defvar, byte-compile-cl-warn): Start warnings with lower-case, like the majority.
* | * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)Stefan Monnier2010-09-171-2/+2
| | | | | | | | (byte-compile-defvar): "foo/bar" does not lack a prefix.
* | * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): New typeStefan Monnier2010-09-151-1/+11
| | | | | | | | | | | | | | `lexical' for warnings related to lexical scoping. (byte-compile-file-form-defvar, byte-compile-defvar): Warn about global vars which don't have a prefix and could hence affect lexical scoping in unrelated files.
* | * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change.Glenn Morris2010-09-111-2/+3
| | | | | | | | Write out the name of the .elc file, rather than the temp-file.
* | Close bug#4196.Glenn Morris2010-09-111-9/+16
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Create .elc files atomically, to avoid parallel build errors.
* | Very minor bytecomp fix.Glenn Morris2010-09-081-0/+2
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER.
* | * emacs-lisp/bytecomp.el (byte-recompile-directory): Ignore dir-locals-file.Glenn Morris2010-09-081-1/+5
| |
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | Merge from emacs-23Stefan Monnier2010-05-241-1/+1
|\|
| * * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):Stefan Monnier2010-05-241-1/+1
| | | | | | | | Add delete-backward-char.
* | Provide byte-compiler warnings when set-default a read-only var.Stefan Monnier2010-04-231-15/+25
|/ | | | | | | * emacs-lisp/bytecomp.el (byte-compile-set-default): New function. (byte-compile-setq-default): Optimize for the single-var case and don't call byte-compile-form in this case to avoid inf-loop with byte-compile-set-default.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Ulrich Mueller <ulm at gentoo.org>Glenn Morris2009-12-071-1/+2
| | | | | (byte-compile-insert-header): Put the version number comment back on its own line, for easier parsing by external tools.
* (byte-compile-save-excursion): Make message consistent with others (noGlenn Morris2009-12-011-1/+1
| | | | final period).
* (byte-compile-warning-types): New type `suspicious'.Stefan Monnier2009-11-271-6/+7
| | | | | | (byte-compile-warnings): Use byte-compile-warning-types. (byte-compile-save-excursion): Warn about use of set-buffer right after save-excursion.
* (byte-compile-output-file-form):YAMAMOTO Mitsuharu2009-11-161-3/+4
| | | | | Quote doc string reference in defvaralias as it is not in special form. (byte-compile-output-docform): Doc fix.
* (byte-compile-single-version): Remove, unused.Glenn Morris2009-11-141-129/+2
| | | | | | | | (baud-rate, byte-code-function-p) (byte-compile-generate-emacs19-bytecodes, byte-compile-overwrite-file) (byte-compiler-valid-options, byte-compiler-options-handler) (byte-compile-and-load-file, byte-compile-buffer): Remove commented-out code.
* (byte-compile-insert-header): Drop test for Emacs 19. (Bug#1531)Glenn Morris2009-11-051-98/+78
| | | | | (byte-compile-fix-header): Update for the above change. Drop test for epoch::version.
* * emacs-lisp/bytecomp.el (byte-compile-output-file-form): Handle defvaralias.Dan Nicolaescu2009-11-041-1/+1
| | | | * make-docfile.c (scan_lisp_file): Also look for `defvaralias'.
* (byte-defop-compiler19): Remove.Glenn Morris2009-11-041-53/+40
| | | | | Without byte-compile-compatibility, the 'emacs19-opcode property is not used by anything. Replace all calls with byte-defop-compiler.
* (byte-compile-version-cond): Remove macro.Glenn Morris2009-11-041-123/+63
| | | | | | | | | | | (byte-compile-compatibility): Remove option. (byte-compile-close-variables, byte-compile-fix-header) (byte-compile-insert-header, byte-compile-output-docform) (byte-compile-file-form-defmumble, byte-compile-byte-code-maker) (byte-compile-lambda, byte-compile-form, byte-defop-compiler19) (byte-compile-list, byte-compile-concat, byte-compile-function-form) (byte-compile-insert, byte-compile-defun): Remove support for byte-compile-compatibility and Emacs 18. (Bug#4571)
* (byte-compile-file-form-defvar)Glenn Morris2009-11-031-29/+25
| | | | | | | | | (byte-compile-file-form-define-abbrev-table) (byte-compile-file-form-custom-declare-variable) (byte-compile-variable-ref, byte-compile-defvar): Whether or not a warning is enabled should only affect whether we issue the warning, not whether or not we collect the relevant data. Eg warnings can be turned on and off throughout the course of a file.
* (byte-compile-warning-types, byte-compile-warnings): Add `constants'Glenn Morris2009-10-311-85/+64
| | | | | | | | | as an option. (byte-compile-callargs-warn, byte-compile-arglist-warn) (display-call-tree): Update for byte-compile-fdefinition possibly returning `(macro lambda ...)'. (Bug#4778) (byte-compile-variable-ref, byte-compile-setq-default): Respect `constants' member of byte-compile-warnings.
* * eval.c (Fcalled_interactively_p): Add `kind' argument.Stefan Monnier2009-10-011-9/+13
| | | | | | | * subr.el (interactive-p): Mark obsolete. (called-interactively-p): Make the optional-ness of `kind' obsolete. * emacs-lisp/bytecomp.el (byte-compile-fdefinition): Make it obey advertised-signature-table for subroutines as well.
* * emacs-lisp/byte-run.el (advertised-signature-table): New var.Stefan Monnier2009-10-011-14/+16
| | | | | | | | | | | (set-advertised-calling-convention): New function. (make-obsolete, define-obsolete-function-alias) (make-obsolete-variable, define-obsolete-variable-alias): Make the optional-ness of `when' obsolete. (define-obsolete-face-alias): Make `when' non-optional. * help-fns.el (help-function-arglist): * emacs-lisp/bytecomp.el (byte-compile-fdefinition): Use advertised-signature-table.
* (byte-compile-defmacro-declaration): New fun.Stefan Monnier2009-10-011-18/+29
| | | | | (byte-compile-file-form-defmumble, byte-compile-defmacro): Use it. (byte-compile-defmacro): Use backquotes.
* (byte-compile-form): Always check the function arguments, whether orGlenn Morris2009-09-171-6/+6
| | | | not it has a handler.
* (byte-compile-not-obsolete-vars): Rename from byte-compile-not-obsolete-var.Glenn Morris2009-09-161-15/+28
| | | | | | | | | | | It's a list now. (byte-compile-not-obsolete-funcs): New variable. (byte-compile-warn-obsolete): Don't warn about functions if they are in byte-compile-not-obsolete-funcs. (byte-compile-variable-ref, byte-compile-defvar): Update for byte-compile-not-obsolete-vars name-change and list nature. (byte-compile-maybe-guarded): Suppress warnings about obsolete functions and variables behind (f)boundp tests.
* * Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded.Stefan Monnier2009-09-151-1/+0
| | | | * emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Don't autoload.
* (byte-compile-refresh-preloaded): New function.Stefan Monnier2009-09-151-1/+22
|
* (byte-compile-keep-pending, byte-compile-file-form, byte-compile-lambda)Glenn Morris2009-09-151-111/+122
| | | | | | | | | (byte-compile-top-level-body, byte-compile-form) (byte-compile-variable-ref, byte-compile-setq) (byte-compile-setq-default, byte-compile-body) (byte-compile-body-do-effect, byte-compile-and, byte-compile-or) (batch-byte-compile): Give some more local variables with common names a "bytecomp-" prefix to avoid masking warnings about free variables.
* (byte-compile-function-environment): Doc fix.Glenn Morris2009-09-101-5/+26
| | | | | | | (byte-compile-file-form-autoload): Don't warn about unknown functions where the autoload statement comes after the use. (with-no-warnings): Give it a byte-hunk-handler like than of progn, so that any handlers inside the body (eg require) are in turn respected.
* (emacs-lisp-file-regexp): Doc fix.Glenn Morris2009-09-051-31/+70
| | | | | | | | | | | | | (byte-compile-dest-file-function): New option. (byte-compile-dest-file): Doc fix. Obey byte-compile-dest-file-function. (byte-compile-cl-file-p): New function. (byte-compile-eval): Only suppress noruntime warnings about cl functions if the cl-functions warning is enabled. Use byte-compile-cl-file-p. (byte-compile-eval): Check for non-nil byte-compile-cl-functions rather than for file being previously loaded. (byte-compile-find-cl-functions): Use byte-compile-cl-file-p. (byte-compile-file-form-require): Handle the case where requiring a file indirectly causes CL to be loaded.
* (byte-compile-interactive-only-functions): Add comint-run.Stefan Monnier2009-08-301-1/+1
|
* (byte-compile-const-symbol-p):Stefan Monnier2009-08-291-4/+17
| | | | | | Recognize immutable variables like most-positive-fixnum. (byte-compile-setq-default): Check and warn if trying to assign to an immutable variable, or a non-variable.
* * gnus/nnheader.el (nnheader-find-file-noselect):Stefan Monnier2009-08-281-6/+7
| | | | | | | | | | | | | | | | | | * gnus/mm-util.el (mm-insert-file-contents): * org/org-html.el (org-export-as-html): * org/org-docbook.el (org-export-as-docbook): * textmodes/reftex.el (reftex-get-file-buffer-force): * progmodes/verilog-mode.el (verilog-batch-execute-func): * emulation/viper.el (viper-go-away, viper-set-hooks): * emacs-lisp/re-builder.el (re-builder-unload-function): * emacs-lisp/bytecomp.el (byte-compile-file): * ses.el (ses-unload-function): * hexl.el (hexl-find-file): * files.el (normal-mode): * ehelp.el (with-electric-help): * autoinsert.el (auto-insert-alist): * arc-mode.el (archive-mode): Use (default-value 'major-mode) instead of default-major-mode.
* (byte-compile-lapcode): Fix up last change.Stefan Monnier2009-08-261-1/+1
|
* (byte-compile-lapcode): Signal overflow.Stefan Monnier2009-08-261-1/+3
|
* (byte-compile-file-form-require): Tweak previous change.Glenn Morris2009-08-251-3/+3
|
* (byte-compile-eval): Fix test for cl in load-history for absolute file-names.Glenn Morris2009-08-251-4/+8
| | | | (byte-compile-file-form-require): Warn about use of the cl package.
* (byte-compile-interactive-only-functions): Add goto-line.Stefan Monnier2009-08-101-1/+2
|