Commit graph

371 commits

Author SHA1 Message Date
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
Miles Bader
f23d76bdef Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
2007-11-11 00:56:44 +00:00
Dan Nicolaescu
70f4194508 * emacs-lisp/byte-opt.el (byte-optimize-featurep): Optimize
(featurep 'emacs) to t.

* emacs-lisp/bytecomp.el (byte-compile-find-bound-condition): New
function.
(byte-compile-maybe-guarded): Use it to also look for bound
symbols inside `and' forms.  Comment out non-working code that was
trying to avoid warnings for XEmacs code.
2007-11-10 08:05:15 +00:00
Stefan Monnier
b7c76a30f9 (byte-compile-file-form-define-abbrev-table): New function. 2007-11-09 15:57:46 +00:00
Glenn Morris
798bd43727 (byte-compile-disable-warning)
(byte-compile-enable-warning): Doc fix.
2007-10-30 06:23:06 +00:00
Glenn Morris
cf637a3431 (byte-compile-warnings): Document `not'.
(byte-compile-warnings-safe-p): Handle `not'.
(byte-compile-warning-enabled-p, byte-compile-disable-warning)
(byte-compile-enable-warning): New functions.
(byte-compile-eval-before-compile)
(byte-compile-file-form-require): Use byte-compile-disable-warning.
(byte-compile-close-variables): Locally bind byte-compile-warnings,
but do not modify it.
(byte-compile-eval, byte-compile-obsolete)
(byte-compile-warn-about-unresolved-functions)
(byte-compile-file-form-defvar)
(byte-compile-file-form-custom-declare-variable)
(byte-compile-file-form-require)
(byte-compile-file-form-defmumble, byte-compile-lambda)
(byte-compile-form, byte-compile-normal-call)
(byte-compile-variable-ref, byte-compile-defvar)
(byte-compile-make-variable-buffer-local):
Use byte-compile-warning-enabled-p.
2007-10-28 23:53:06 +00:00
Miles Bader
18cd1f1a08 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 902-908)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 131-137)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 261-262)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-278
2007-10-27 09:12:07 +00:00
Glenn Morris
6a83140588 (byte-compile-warnings): Autoload the safe-local-variable property. 2007-10-26 07:35:31 +00:00
Glenn Morris
b1ac90c50a (byte-compile-warnings): Autoload the safe-local-variable property. 2007-10-26 07:34:46 +00:00
Miles Bader
c73bd236f7 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 866-879)

   - Merge multi-tty branch
   - Update from CVS
   - Merge from emacs--rel--22

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-257
2007-10-11 16:24:58 +00:00
Glenn Morris
8accceac6a (byte-compile-warning-types): Add mapcar and make-local. 2007-09-21 07:17:23 +00:00
Glenn Morris
86da2828de (byte-compile-warnings)
(byte-compile-warnings-safe-p): Add `mapcar'.
(byte-compile-normal-call): Add option to suppress mapcar warning.
(top-level): Use mapc rather than mapcar in eval-when-compile.
2007-09-21 07:13:28 +00:00
Glenn Morris
89c91fdb59 Markus Triska <markus.triska at gmx.at>
(byte-compile-normal-call): Warn when `mapcar' is called for effect.
2007-09-21 04:24:53 +00:00
Stefan Monnier
5c7ffa0488 (byte-compile-log-file): Check major-mode via derived-mode-p. 2007-09-07 15:04:09 +00:00
Thien-Thi Nguyen
ea1cb2bdd6 (byte-recompile-directory): Fix bug:
Don't expand top-level file name more than once.
2007-09-01 23:33:15 +00:00
Thien-Thi Nguyen
b99cc8534d (byte-recompile-directory): Fix bug:
Don't expand top-level file name more than once.
2007-09-01 23:32:36 +00:00
Miles Bader
1bb9a689ac Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 857-865)

   - Update from CVS
   - Merge from emacs--rel--22
   - Update from CVS: lisp/emacs-lisp/avl-tree.el: New file.
   - Remove RCS keywords

 * emacs--rel--22  (patch 97-100)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 246-247)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-252
2007-08-29 05:03:40 +00:00
Miles Bader
7f22a76506 Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 97-100)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 246-247)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-860
2007-08-27 04:00:19 +00:00
Stefan Monnier
9ec5dfe64b (byte-compile-output-docform, byte-compile-output-as-comment):
Use with-current-buffer rather than a weird set-buffer&prog1 combination.
2007-08-23 19:58:31 +00:00
Stefan Monnier
36e65f7059 (byte-compile-from-buffer): Check old-style backquotes after each `read'
rather than once per buffer to get more precise location info.
2007-08-23 18:19:56 +00:00
Stefan Monnier
ff11045092 (byte-compile-from-buffer): Display a big fat warning for old style backquotes. 2007-08-22 16:08:42 +00:00
Stefan Monnier
008e2c2a69 (byte-compile-log-file, byte-recompile-directory, byte-compile-file)
(byte-compile-from-buffer): Use with-current-buffer.
2007-08-22 15:51:13 +00:00
Stefan Monnier
7a252d11f3 (byte-compile-interactive-only-functions): Add previous-line and next-line. 2007-08-21 15:53:39 +00:00
Miles Bader
e468b87f91 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 824-831)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 70-74)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-238
2007-07-27 10:52:18 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Alan Mackenzie
2cb63a7c23 (byte-compile-from-buffer): initialise byte-compile-unresolved-functions
before rather than after a compilation.
(byte-compile-unresolved-functions): Amplify doc string.
2007-07-24 08:18:12 +00:00
Alan Mackenzie
65e1b2a105 (byte-compile-from-buffer): initialise byte-compile-unresolved-functions before
rather than after a compilation.
(byte-compile-unresolved-functions): Amplify doc string.
2007-07-24 07:12:18 +00:00
Miles Bader
b361539260 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 793-802)

   - Update from CVS
   - Remove RCS keywords
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 42-50)

   - Update from CVS
   - Merge from gnus--rel--5.10
   - Gnus ChangeLog tweaks

 * gnus--rel--5.10  (patch 229-232)

   - Merge from emacs--devo--0, emacs--rel--22
   - ChangeLog tweak
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-223
2007-06-16 22:32:13 +00:00
Stefan Monnier
3ab6a7ae05 (byte-compile-current-group, byte-compile-nogroup-warn, byte-compile-file):
Revert part of last change.  Apparently the "warning even if the group is
implicit" is a feature rather than a bug.
2007-06-14 21:25:12 +00:00
Stefan Monnier
b8104a2bf5 (byte-compile-current-group): New var.
(byte-compile-file): Bind it.
(byte-compile-nogroup-warn): Use it to avoid spurious warnings when the
group argument is provided implicitly.
(byte-compile-format-warn, byte-compile-from-buffer)
(byte-compile-insert-header): Don't hardcode point-min==1.
(byte-compile-file-form-require): Remove unused var old-load-list.
(byte-compile-eval): Remove unused vars old-autoloads and hist-nil-new.
2007-06-12 21:03:32 +00:00
Miles Bader
fb9a13e3dc Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 781-792)

   - Update from CVS
   - Merge from gnus--rel--5.10
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 33-41)
 * gnus--rel--5.10  (patch 226-228)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-219
2007-06-11 00:58:11 +00:00