Commit graph

402 commits

Author SHA1 Message Date
Stefan Monnier
e3a6b82fc7 (byte-compile-defmacro-declaration): New fun.
(byte-compile-file-form-defmumble, byte-compile-defmacro): Use it.
(byte-compile-defmacro): Use backquotes.
2009-10-01 04:38:52 +00:00
Glenn Morris
88d5190ca2 (byte-compile-form): Always check the function arguments, whether or
not it has a handler.
2009-09-17 07:29:43 +00:00
Glenn Morris
8480fc7c63 (byte-compile-not-obsolete-vars): Rename from byte-compile-not-obsolete-var.
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.
2009-09-16 03:13:03 +00:00
Stefan Monnier
8fed6934e5 * Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded.
* emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Don't autoload.
2009-09-15 15:29:50 +00:00
Stefan Monnier
49fec53141 (byte-compile-refresh-preloaded): New function. 2009-09-15 04:03:35 +00:00
Glenn Morris
c276856990 (byte-compile-keep-pending, byte-compile-file-form, byte-compile-lambda)
(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.
2009-09-15 02:34:32 +00:00
Glenn Morris
cb4fb1d065 (byte-compile-function-environment): Doc fix.
(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.
2009-09-10 06:22:30 +00:00
Glenn Morris
3f12e5bd4c (emacs-lisp-file-regexp): Doc fix.
(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.
2009-09-05 19:10:37 +00:00
Stefan Monnier
6444d64a4d (byte-compile-interactive-only-functions): Add comint-run. 2009-08-30 05:22:50 +00:00
Stefan Monnier
d988dbf687 (byte-compile-const-symbol-p):
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.
2009-08-29 14:44:45 +00:00
Stefan Monnier
14acf2f55e * gnus/nnheader.el (nnheader-find-file-noselect):
* 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.
2009-08-28 17:02:53 +00:00
Stefan Monnier
636a36a070 (byte-compile-lapcode): Fix up last change. 2009-08-26 14:47:23 +00:00
Stefan Monnier
8476cfaf3d (byte-compile-lapcode): Signal overflow. 2009-08-26 02:56:05 +00:00
Glenn Morris
d280e2c3f0 (byte-compile-file-form-require): Tweak previous change. 2009-08-25 07:36:49 +00:00
Glenn Morris
bac9c66cc7 (byte-compile-eval): Fix test for cl in load-history for absolute file-names.
(byte-compile-file-form-require): Warn about use of the cl package.
2009-08-25 07:28:16 +00:00
Stefan Monnier
dfd4e69361 (byte-compile-interactive-only-functions): Add goto-line. 2009-08-10 16:28:18 +00:00
Seiji Zenitani
8c914fdb18 fix message: new multibyte format requires 23 2009-08-06 00:07:12 +00:00
Glenn Morris
a2b3fdbf3a (byte-compile-from-buffer, byte-compile-output-file-form)
(byte-compile-output-docform, byte-compile-file-form-defmumble)
(byte-compile-output-as-comment):
Give some more local variables with common names a "bytecomp-" prefix,
so as not to shadow things during compilation.
2009-07-23 02:53:29 +00:00
Stefan Monnier
5692cc8c4f (emacs-lisp-file-regexp): Fix up EOB. 2009-02-02 03:27:30 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Juanma Barranquero
2b9c3b1284 * emacs-lisp/bytecomp.el (byte-compile-dynamic-docstrings)
(byte-compile-output-docform): Reflow docstrings.
  (no-byte-compile): Fix typo in docstring.
  (byte-recompile-directory, compile-defun): Doc fixes.
  (emacs-lisp-file-regexp, byte-compile-verbose)
  (byte-compile-compatibility, byte-optimize, byte-compile-delete-errors)
  (byte-compile-dynamic-docstrings, byte-optimize-log)
  (byte-compile-error-on-warn, byte-compile-warnings)
  (byte-compile-generate-call-tree, byte-compile-call-tree-sort):
  Remove * from defcustom docstrings.
2008-11-20 12:13:49 +00:00
Chong Yidong
24ae8da4b3 (byte-compile-associative)
(byte-compile-minus, byte-compile-quo): If there are more than two
operands, don't use binary operation code (bug#1334).
2008-11-14 18:08:10 +00:00
Dan Nicolaescu
7c2fb837ec * bitmaps/README:
* xfns.c:
* termcap.c:
* term.c:
* syswait.h:
* systty.h:
* systime.h:
* syssignal.h:
* sysdep.c:
* process.h:
* process.c:
* print.c:
* ndir.h:
* lread.c:
* keyboard.c:
* getpagesize.h:
* floatfns.c:
* fileio.c:
* emacs.c:
* doc.c:
* dispnew.c:
* dired.c:
* data.c:
* callproc.c:
* buffer.c:
* README:
* Makefile.in:
* s/template.h:
* s/msdos.h:
* m/vax.h: Remove VMS support.
* s/vms.h:
* vlimit.h:
* uaf.h:
* temacs.opt:
* param.h:
* ioctl.h: Remove file.

* descrip.mms:
* compile.com: Remove file.
* Create.c: Remove VMS support.

* message.el (Module):

* gnus-start.el (Module):

* gnus-registry.el (Module):

* textmodes/texinfmt.el:
* nxml/nxml-enc.el:
* mail/feedmail.el:
* international/mule.el:
* international/latexenc.el:
* emulation/viper-util.el:
* emulation/viper-init.el:
* emulation/viper-ex.el:
* emacs-lisp/bytecomp.el:
* version.el:
* subr.el:
* startup.el:
* sort.el:
* shadowfile.el:
* recentf.el:
* printing.el:
* paths.el:
* minibuffer.el:
* ls-lisp.el:
* loadup.el:
* hippie-exp.el:
* finder.el:
* files.el:
* ediff-util.el:
* ediff-ptch.el:
* ediff-init.el:
* ediff-diff.el:
* dired.el:
* dired-aux.el:
* cus-edit.el:
* bindings.el:
* arc-mode.el:
* add-log.el: Remove VMS support.
* obsolete/vmsproc.el:
* obsolete/vms-pmail.el:
* obsolete/vms-patch.el: Remove file.

* etags.c:
* emacsclient.c: Remove VMS support.

* termcap.src: Remove file.
* README:
* PROBLEMS:
* MACHINES: Remove VMS info.

* ediff.texi: Remove VMS support.

* os.texi:
* intro.texi:
* files.texi: Remove VMS support.

* emacs.texi: Remove VMS support.

* make-dist:
* README: Remove VMS support.
* vms: Remove directory.
2008-07-31 05:33:56 +00:00
Glenn Morris
d6dc41d523 (byte-compile-maybe-guarded): Doc fix. 2008-06-13 04:16:23 +00:00
Stefan Monnier
ab5111e3df (byte-compile-current-group): New var.
(byte-compile-file): Initialize it.
(byte-compile-nogroup-warn): Keep track of the current group.
2008-06-08 02:07:25 +00:00
Glenn Morris
d6cba7ae45 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:21:21 +00:00
Glenn Morris
f279aaab80 (byte-compile-file): Doc fix. 2008-04-27 01:41:46 +00:00
Glenn Morris
212df36327 Johan Bockg� <bojohan at gnu.org>
(byte-compile-find-cl-functions): Simplify.  Collect `defun' and
`autoload' entries.  Avoid modifying load-history.
2008-04-27 01:17:03 +00:00
Glenn Morris
5791bedf99 (byte-compile-warn-obsolete): New function.
(byte-compile-obsolete, byte-compile-variable-ref): Use it.
2008-04-26 02:32:51 +00:00
Juanma Barranquero
daedb19635 (byte-compile-warnings-safe-p): Use `byte-compile-warning-types'.
Add docstring.
2008-03-31 11:02:04 +00:00
Juanma Barranquero
d87e5a2565 (byte-compile-obsolete): If no replacement is provided,
don't print "use nil instead".
2008-03-26 12:18:17 +00:00
Stefan Monnier
86408b246c (byte-compile-maybe-guarded):
Remove optimization that was working around the form-code-walker bug.
2008-03-03 03:40:04 +00:00
Glenn Morris
1c3b663ff9 This is Dan's patch from
http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00134.html
changed to use a common `bytecomp' prefix.

(byte-recompile-directory, byte-compile-file, batch-byte-compile)
(batch-byte-compile-file): Give a `bytecomp-' prefix to local
variables with common names.
2008-03-01 21:11:37 +00:00
Glenn Morris
c01e3aa1dd (byte-compile-maybe-guarded): Restore code commented out 2007-11-10. 2008-03-01 20:07:28 +00:00
Kenichi Handa
da9e269f68 (byte-compile-lapcode): Use
unibyte-string instead of string-make-unibyte.
2008-02-12 11:25:01 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Dan Nicolaescu
b38f5e6fea * mouse.el (mouse-popup-menubar): Fix typo.
* emacs-lisp/bytecomp.el (byte-compile-from-buffer): Move one more
form inside with-current-buffer.

* progmodes/antlr-mode.el (provide): Move to the end of file.
(require): Don't require font-lock and compile.
(outline-level, imenu-use-markers, imenu-create-index-function):
Move declarations to top level.
(cond-emacs-xemacs-macfn): Declare for compiler.

* vc-bzr.el (vc-bzr-root):
* vc-arch.el (vc-arch-root): Only set a property if the file is
managed by this backend.

* vc-hg.el (vc-hg-state): Support the new status code for
up-to-date.
2008-01-04 08:34:15 +00:00
Richard M. Stallman
a5832373fd (byte-compile-from-buffer): Call byte-compile-warn-about-unresolved-functions
outside the with-current-buffer.
(byte-compile-insert-header): Use with-current-buffer.
2008-01-04 05:35:12 +00:00
Miles Bader
0bd5084171 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
2007-12-06 09:51:45 +00:00
Glenn Morris
2c52d7a3b2 Remove directory part from filenames in function declarations. 2007-12-06 04:05:51 +00:00
Glenn Morris
a342aca45c (byte-compile-declare-function): Remove declared function from
byte-compile-noruntime-functions.
2007-12-05 03:36:23 +00:00
Glenn Morris
7628b337d8 (byte-compile-declare-function): Reverse branches of if statement. 2007-12-02 21:41:33 +00:00
Glenn Morris
abc11cbb56 (byte-compile-declare-function): Third argument to declare-function
must be a list to specify arglist.
2007-11-30 07:45:18 +00:00
Juanma Barranquero
516b365326 (batch-byte-recompile-directory): Doc fix. 2007-11-26 15:38:18 +00:00
Juanma Barranquero
2867910524 (batch-byte-recompile-directory): Doc fix. 2007-11-26 15:37:00 +00:00
Stefan Monnier
2546bcdd94 (byte-compile-file-form-custom-declare-variable): Simplify. 2007-11-22 18:03:05 +00:00
Glenn Morris
db28340206 (compilation-forget-errors): Declare as function. 2007-11-19 00:10:38 +00:00
Glenn Morris
d97362d779 (byte-compile-declare-function): New function, byte-hunk-handler for
declare-function.
(byte-compile-callargs-warn): Handle declared functions.
2007-11-17 03:46:23 +00:00