Commit graph

309 commits

Author SHA1 Message Date
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
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
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
Glenn Morris
6a83140588 (byte-compile-warnings): Autoload the safe-local-variable property. 2007-10-26 07:35:31 +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
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
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
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
Martin Rudalics
7940bf7dc0 (byte-compile-find-cl-functions): Match
against file-name-nondirectory.
Fix text on user customization variables.
2007-06-10 16:15:10 +00:00
Glenn Morris
15ce9dcfa1 (byte-compile-warnings): Add new option `make-local'.
(byte-compile-warnings-safe-p): Add `make-local'.
(byte-compile-make-variable-buffer-local): Allow
byte-compile-warnings to suppress this warning.
2007-06-07 07:00:00 +00:00
Glenn Morris
a746fb658b Markus Triska <markus.triska at gmx.at>:
(byte-compile-char-before): Improve numeric argument case.
(byte-compile-backward-char, byte-compile-backward-word): New
functions, performing rewriting previously done in byte-opt.el.
Fix their "Fixme" item (restriction to numeric arguments).
2007-04-11 03:59:20 +00:00
Glenn Morris
ec448ae2df Markus Triska <markus.triska at gmx.at>:
(byte-compile-char-before): New function (modified replacement for
byte-optimize-char-before in byte-opt.el).
2007-04-10 03:54:36 +00:00
Richard M. Stallman
8bd91fd08d (byte-compile-file-form-defmumble): Use prin1 instead of princ. 2007-03-26 03:30:53 +00:00
Richard M. Stallman
b0aa2c6515 (byte-compile-warning-prefix): Correctly compute line number. 2007-03-11 21:16:09 +00:00
Juanma Barranquero
f9b4b5d865 (byte-compile-dest-file, byte-compile-file): Doc fixes. 2007-02-13 12:07:26 +00:00
Kenichi Handa
0e66b003a7 (byte-compile-disable-print-circle): New
variable.
(byte-compile-output-file-form): Bing print-circle to nil if
byte-compile-output-file-form is not nil.
(byte-compile-output-docform): Likewise.
2007-01-29 01:22:53 +00:00
Miles Bader
5e51de792c Make byte compiler correctly write circular constants
2007-01-24  Miles Bader  <miles@gnu.org>

   * lisp/emacs-lisp/bytecomp.el (byte-compile-output-file-form)
   (byte-compile-output-docform): Bind `print-circle' to t.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-614
2007-01-24 13:57:38 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Juanma Barranquero
9bb2e9f86b (byte-optimize, byte-compile-warnings): Doc fixes. 2006-11-30 16:26:37 +00:00
Richard M. Stallman
7fb4fa10a8 (byte-compile-get-constant):
Replace incorrect use of assoc-default with a loop.
2006-11-28 02:22:17 +00:00
Chong Yidong
8195ef65f0 (byte-compile-if): Revert last change. 2006-11-19 15:19:39 +00:00
Chong Yidong
26cc7ed550 (byte-compile-maybe-guarded): Check `and' conditions for function or
variable bindings.
2006-11-18 21:07:17 +00:00
Stefan Monnier
e0b4be6cc0 (byte-compile-form): The `byte-compile'
property may contain an anonymous function rather than a symbol.
2006-07-07 16:34:44 +00:00
Reiner Steib
0027258d1e (byte-compile-warnings-safe-p): New
function.
(byte-compile-warnings): Fix safe-local-variable property.
2006-05-16 10:05:09 +00:00
Reiner Steib
631c8020a5 Move `safe-local-variable' declarations to the respective files. 2006-05-11 15:01:41 +00:00
Richard M. Stallman
aa9addfa93 (byte-compile-file): Bind enable-local-variables to :safe,
and make normal-mode obey it.
2006-04-11 17:58:58 +00:00
Stefan Monnier
67438f773f (byte-compile-form): Only call cl-byte-compile-compiler-macro if it exists. 2006-04-08 14:56:21 +00:00
Eli Zaretskii
defe3b4124 (batch-byte-recompile-directory): Doc fix. 2006-01-13 09:56:23 +00:00
Stefan Monnier
b7a5a20839 (byte-compile-file-form-defalias):
Optimize the body of a defalias like any other code.
2006-01-03 18:35:58 +00:00