Commit graph

2843 commits

Author SHA1 Message Date
Glenn Morris
6974be68b6 (elint-file, elint-directory): New autoloaded commands.
(elint-current-buffer): Set mode-line-process.
(elint-init-env): Handle define-derived-mode.
Fix declare-function with unspecified arglist.  Guard against odd
defalias statements (eg iso-insert's 8859-1-map).
(elint-add-required-env): Use a temp buffer.
(elint-form): Just print the function/macro name, not the whole form.
Return env unchanged if we fail to parse a macro.
(elint-forms): Guard against parse errors.
(elint-output): New function, to handle batch mode.
(elint-log-message): Add optional argument.  Use elint-output.
(elint-set-mode-line): New function.
2009-09-12 02:41:39 +00:00
Chong Yidong
30194d4d1b * emacs-lisp/elp.el (elp-not-profilable): Add more functions (Bug#4233). 2009-09-12 01:40:11 +00:00
Juanma Barranquero
b4587710d3 * emacs-lisp/cl-macs.el (help-add-fundoc-usage): Declare. 2009-09-11 22:59:36 +00:00
Juanma Barranquero
7e0aa125bc Update. 2009-09-11 12:05:45 +00:00
Glenn Morris
ae2fd0421f (define-compiler-macro): Add a property that records where a macro was
defined.
2009-09-11 03:39:28 +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
ba661bf005 (degrees-to-radians): Mark as free from side effects. 2009-09-10 06:21:48 +00:00
Glenn Morris
b43704f2d7 (define-derived-mode): Give the mode's map, and syntax and abbrev
tables basic docs, if they don't have any.
2009-09-10 06:21:23 +00:00
Glenn Morris
117fdd32c7 (easy-mmode-defmap): Add doc-string. 2009-09-10 06:20:51 +00:00
Juanma Barranquero
3b814ebcdb Update. 2009-09-07 15:25:38 +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
Glenn Morris
5b66944704 Comment. 2009-09-02 03:17:18 +00:00
Glenn Morris
95ed0f1100 (define-obsolete-face-alias): New macro. 2009-08-31 01:32:36 +00:00
Stefan Monnier
a1bf889a14 (lisp-complete-symbol): Use minibuffer-complete. 2009-08-30 21:45:36 +00:00
Stefan Monnier
73ebf88f15 (field-complete): Use minibuffer-complete. 2009-08-30 15:13:35 +00:00
Stefan Monnier
5ca4661e53 (define-minor-mode): Don't use symbol-value with constant argument. 2009-08-30 14:20:43 +00:00
Stefan Monnier
c61dc887f8 (debugger-setup-buffer): Make it multibyte. 2009-08-30 14:19:25 +00:00
Stefan Monnier
7eb73debbb (cl-macro-environment): Don't define it here. 2009-08-30 14:18:59 +00:00
Stefan Monnier
f9a9e6ea08 (cl-macro-environment): Provide a docstring. 2009-08-30 14:18:25 +00:00
Stefan Monnier
5fe443deae (checkdoc-force-history-flag):
Change default, since most of our files don't have a history.
(checkdoc-display-status-buffer): Don't use hidden buffers to show to the user.
2009-08-30 13:59:48 +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
Juanma Barranquero
1e8eecea4b * arc-mode.el (archive-mode):
* emacs-lisp/re-builder.el (re-builder-unload-function):
  Protect against the default value of `major-mode' being nil.
2009-08-28 18:35:25 +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
72f16325c1 * textmodes/ispell.el (ispell-check-version, ispell-send-string):
* international/mule.el (load-with-code-conversion):
* emacs-lisp/debug.el (debug):
* ediff-vers.el (ediff-rcs-get-output-buffer):
* dired.el (dired-internal-noselect): Don't let-bind
default-major-mode around code that doesn't use it.
E.g. buffer creation via get-buffer-create doesn't use it.
2009-08-28 16:29:25 +00:00
Stefan Monnier
de70529f66 (edebug-display, edebug-outside-excursion):
Replace uses of default-cursor-in-non-selected-windows
with (default-value 'cursor-in-non-selected-windows).  Use with-current-buffer.
2009-08-28 04:12:49 +00:00
Juanma Barranquero
81cc988b44 Update. 2009-08-27 20:10:56 +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
Glenn Morris
9167757662 Unify local variables at end.
Don't warn about use of cl functions in this file.
2009-08-25 06:52:09 +00:00
Glenn Morris
bc3b785303 Kevin Ryde <user42 at zip.com.au>
Fix keywords: comment.
2009-08-25 03:12:27 +00:00
Glenn Morris
9b89e3ee32 Kevin Ryde <user42 at zip.com.au>
(checkdoc-force-history-flag, checkdoc-arguments-in-order-flag):
Add safe-local-variable booleanp.
(checkdoc-symbol-words): Add safe-local-variable for list of strings.
Clarify docstring that the value is strings not symbols.
(checkdoc-list-of-strings-p): New function.
2009-08-22 23:02:14 +00:00
Glenn Morris
f43e88d459 (authors-fixed-entries): Remove cvtmail. 2009-08-19 02:53:53 +00:00
Stefan Monnier
1ae7942754 (lisp-indent-region): Remove unused function. 2009-08-16 15:40:50 +00:00
Stefan Monnier
dfd4e69361 (byte-compile-interactive-only-functions): Add goto-line. 2009-08-10 16:28:18 +00:00
Andreas Schwab
897dbdc17e Updated. 2009-08-06 15:49:29 +00:00
Seiji Zenitani
8c914fdb18 fix message: new multibyte format requires 23 2009-08-06 00:07:12 +00:00
Glenn Morris
7a8ae96435 (elint-current-buffer, elint-defun):
Add autoload cookies.  If necessary, initialize.
(elint-log): Handle non-file buffers.
(elint-initialize): Add optional argument to reinitialize.
(elint-find-builtin-variables): Save excursion.
2009-07-24 03:52:42 +00:00
Dan Nicolaescu
a707eb0542 (emacs-lisp-mode-map): Add menu entries
for Lint.
2009-07-23 07:09:28 +00:00
Glenn Morris
e2d5a67f9e (elint-standard-variables): Remove most members,
since the next two variables cover them automatically now.
(elint-builtin-variables, elint-autoloaded-variables): New.
(elint-unknown-builtin-args): Remove all members, since they can be
parsed automatically now.
(elint-extra-errors): New.
(elint-env-add-env, elint-env-add-macro): Use cadr.
(elint-current-buffer): Use or.  Change final message.
(elint-get-top-forms): Use line-end-position.
(elint-init-env): Use cadr.  Handle autoload, declare-function,
and defalias.
(elint-add-required-env): Doc fix.  Use or.  Standardize error.
(regexp-assoc): Remove unused function.
(elint-top-form): Set elint-current-pos, to record the start of the
top-level form, for compilation-mode.
(elint-form): Trap errors in macro expansion.  Use dolist.
(elint-unbound-variable): Use elint-builtin-variables and
elint-autoloaded-variables.
(elint-get-args): Use cadr, or.
(elint-check-cond-form): Use dolist, cadr.
(elint-check-condition-case-form): Doc fix.  Use cadr.
Use elint-extra-errors.
(elint-log): New function.
(elint-error, elint-warning): Use elint-log for a bytecomp-style format.
Distinguish errors and warnings.
(elint-log-message): Use with-current-buffer.  Inhibit read-only.
Use a bytecomp-style format.
(elint-clear-log): Preserve default-directory.  Inhibit read-only.
(elint-get-log-buffer): Use compilation mode.  Disable undo.
Don't truncate lines.
(elint-initialize): Set builtin and autoloaded variable lists.
Only process elint-unknown-builtin-args if non-nil.
(elint-find-builtin-variables, elint-find-autoloaded-variables):
New functions.
(elint-find-builtin-args): Doc fix.  Handle "BODY...)".
2009-07-23 02:54:39 +00:00
Glenn Morris
4b94906242 (cl-compiling-file): Update for the name-change `outbuffer' to
`bytecomp-outbuffer'.
2009-07-23 02:54:15 +00:00
Glenn Morris
924bfe49d8 (load-time-value): Update for the name-change `outbuffer' to
`bytecomp-outbuffer'.
2009-07-23 02:54:00 +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
Glenn Morris
cb71155600 Remove leading * from defcustom docs. 2009-07-22 02:45:34 +00:00
Glenn Morris
7ba65108e5 (shadows-compare-text-p): Remove leading * from defcustom doc.
(list-load-path-shadows): Optionally, just return shadows as a string.
2009-07-22 02:34:11 +00:00
Glenn Morris
08ee620074 (cl-debug-env): Only define for compiler.
(edebug-eval): Check cl-debug-env is bound.
(print-level, print-circle): Don't redefine built-in variables.
2009-07-21 04:42:16 +00:00
Glenn Morris
4befa5993f Remove leading * from defcustom docs.
(custom-print-vectors): Remove old comments from doc.
2009-07-21 04:40:17 +00:00
Stefan Monnier
ed2a52e9ee (copyright-update): Save match-data across y-or-n-p, for safety. 2009-07-16 02:01:31 +00:00