Commit graph

2672 commits

Author SHA1 Message Date
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
Glenn Morris
1e46f9e42b (edebug-setup-hook, edebug-all-forms)
(edebug-eval-macro-args, edebug-save-displayed-buffer-points)
(edebug-print-length, edebug-print-level, edebug-print-circle)
(edebug-sit-for-seconds, edebug-view-outside)
(edebug-bounce-point, edebug-set-global-break-condition)
(edebug-Go-nonstop-mode, edebug-trace-mode)
(edebug-Trace-fast-mode, edebug-continue-mode)
(edebug-Continue-fast-mode, edebug-forward-sexp, edebug-help)
(edebug-visit-eval-list): Doc fixes.
2009-07-14 08:01:50 +00:00
Johan Bockgård
00242b07fd (defstruct): Fix :conc-name spec. 2009-06-27 22:09:39 +00:00
Dan Nicolaescu
2764748c42 (elp-output-insert-symname): Add a link face to make it obvious item
can be clicked.
2009-06-23 05:54:33 +00:00
Glenn Morris
c66cd0ff65 Remove leading "*" from defcustom docs.
Refill.
2009-06-22 06:27:00 +00:00
Glenn Morris
3fde45afdd (lisp-indent-offset): Fix safe-local-variable property.
(lisp-indent-function): Make it a defcustom.
2009-06-22 06:24:32 +00:00
Glenn Morris
c4ea8f0049 (lisp-indent-function): Add doc string. 2009-06-21 01:39:43 +00:00
Glenn Morris
0ae8ebe848 (lisp-indent-defun-method, common-lisp-indent-function): Add doc strings. 2009-06-21 01:16:55 +00:00
Martin Rudalics
5249a62d0b (lisp-mode-variables): Fix doc-string. 2009-06-07 07:21:23 +00:00
Juanma Barranquero
ae232225a9 Update. 2009-05-12 12:28:40 +00:00
Chong Yidong
143770f236 * emacs-lisp/cl-macs.el (lexical-let*): Doc fix (Bug#3178). 2009-05-10 22:01:20 +00:00
Chong Yidong
22d47d5e2b * emacs-lisp/bindat.el (bindat-pack): Allocate and set a string
directly (Bug#2878).
2009-05-04 01:18:11 +00:00
Chong Yidong
05fcb8daf6 * emacs-lisp/lisp-mode.el: Give `deftype' a doc-string-elt
property (Bug#2984).
2009-04-16 04:31:13 +00:00
Juanma Barranquero
e597afcb8b * emacs-lisp/benchmark.el (benchmark): Reflow docstring. 2009-03-17 10:32:20 +00:00
Chong Yidong
abb3c752e2 (crm--choose-completion-string): New function.
(completing-read-multiple): Set and restore
choose-completion-string-functions (Bug#1080).
2009-03-16 00:44:02 +00:00
Stefan Monnier
7bbab3e051 (end-of-defun-function): Make it more clear that
the function takes no argument.
2009-03-03 16:12:02 +00:00
Glenn Morris
16ac2e615c (eval-last-sexp): Mention truncation in doc. 2009-02-25 08:18:00 +00:00
Glenn Morris
92bd667f24 (elint-unknown-builtin-args): Fix encode-time spec. (Bug#2453)
(elint-find-builtin-args): Make the match more restrictive.
Handle errors.  Return a result actually containing the function name.
2009-02-24 03:32:19 +00:00
Stefan Monnier
4114bc4975 (beginning-of-defun): Fix harmless paren typo. 2009-02-19 17:31:51 +00:00
Stefan Monnier
f2a8252af4 (end-of-defun): Consider the ".*\n" after the end of
the function as being part of the function.
2009-02-19 16:55:24 +00:00
Miles Bader
24a517fc67 Tweak copyright-regexp
Tweaked to match copyright statements where the years follow the name.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1549
2009-02-17 10:13:59 +00:00
Glenn Morris
4431546e80 (copyright-update-year): Don't let y-or-n-p move point. (Bug#2209) 2009-02-17 03:02:25 +00:00