Commit graph

79 commits

Author SHA1 Message Date
Stefan Monnier
7200d79c65 Miscellanous cleanups in preparation for the merge.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Remove debug statement.
* lisp/emacs-lisp/bytecomp.el (byte-compile-single-version)
(byte-compile-version-cond, byte-compile-delay-out)
(byte-compile-delayed-out): Remove, unused.
* src/bytecode.c (Fbyte_code): Revert to old calling convention.
* src/lisp.h (COMPILED_PUSH_ARGS): Remove, unused.
2011-04-01 11:16:50 -04:00
Stefan Monnier
ca1055060d Remove bytecomp- prefix, plus misc changes.
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Make it work to
inline lexbind interpreted functions into lexbind code.
(bytedecomp-bytes): Not a dynamic var any more.
(disassemble-offset): Get the bytes via an argument instead.
(byte-decompile-bytecode-1): Use push.
* lisp/emacs-lisp/bytecomp.el: Remove the bytecomp- prefix now that we use
lexical-binding.
(byte-compile-outbuffer): Rename from bytecomp-outbuffer.
* lisp/emacs-lisp/cl-macs.el (load-time-value):
* lisp/emacs-lisp/cl.el (cl-compiling-file): Adjust to new name.
* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
Add byte-code-function-p.
(pcase--u1): Remove left-over code from early development.
Fix case of variable shadowing in guards and predicates.
(pcase--u1): Add a new `let' pattern.
* src/image.c (parse_image_spec): Use Ffunctionp.
* src/lisp.h: Declare Ffunctionp.
2011-03-16 16:08:39 -04:00
Stefan Monnier
ba83908c4b Misc fixes, and use lexical-binding in more files.
* lisp/subr.el (letrec): New macro.
(with-wrapper-hook): Move from lisp/simple.el and don't use CL.
* simple.el (with-wrapper-hook): Move with-wrapper-hook to subr.el.
* lisp/help-fns.el (help-function-arglist): Handle subroutines as well.
(describe-variable): Use special-variable-p to filter completions.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't expand `declare'
in defmacros.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Handle `declare'.
* lisp/emacs-lisp/cl.el (pushnew): Silence unfixable warning.
* lisp/emacs-lisp/cl-macs.el (defstruct, define-compiler-macro):
Mark unused arg as unused.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Use memq.
* lisp/emacs-lisp/autoload.el (make-autoload): Don't assume the macro's
first sexp is a list.
(autoload-generate-file-autoloads): Improve error message.
* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist
to understand the new byte-code arg format.
* lisp/vc/smerge-mode.el:
* lisp/vc/log-view.el:
* lisp/vc/log-edit.el:
* lisp/vc/cvs-status.el:
* lisp/uniquify.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/bibtex-style.el:
* lisp/reveal.el:
* lisp/newcomment.el:
* lisp/emacs-lisp/smie.el:
* lisp/abbrev.el: Use lexical-binding.
* src/eval.c (Fprog1, Fprog2): Simplify and use XCDR/XCAR.
(Fdefvar): Remove redundant SYMBOLP check.
(Ffunctionp): Don't signal an error for undefined aliases.
* doc/lispref/variables.texi (Converting to Lexical Binding): New node.
2011-03-11 15:04:22 -05:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
4583e7960f * lisp/emacs-lisp/cl.el: No longer provide cl-19.
* etc/NEWS: Mention this change.
2010-10-05 19:30:53 -07:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Stefan Monnier
7eb73debbb (cl-macro-environment): Don't define it here. 2009-08-30 14:18:59 +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
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
ec30259371 (floor*, ceiling*, truncate*, round*, mod*): Declare. 2008-11-19 04:33:52 +00:00
Glenn Morris
7467c796a1 (cl-do-pop, cl-mapcar-many): Declare for compiler.
(cl-hack-byte-compiler): Load cl-macs and run cl-hack-bytecomp-hook
directly.  Provide cl before loading cl-macs.
2008-07-16 02:49:35 +00:00
Stefan Monnier
4ded1ddb22 (cl-set-nthcdr): Make it a defsubst so that
(setf (nthcdr ..) ..) doesn't require CL at runtime.
2008-05-12 01:45:41 +00:00
Glenn Morris
d6cba7ae45 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:21:21 +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
Juanma Barranquero
66eed8276d (cl-cannot-unload): Remove function.
(cl-unload-hook): Remove variable.
(cl-unload-function): New-style unload function,
adapted from `cl-cannot-unload'.
2007-10-31 12:46:47 +00:00
Glenn Morris
8778731969 Move local variables to end of file, and set byte-compile-warnings to
`(not cl-functions)'.
2007-10-29 00:22:36 +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
Stefan Monnier
1cd643e793 Load cl-loaddefs.el quietly. 2007-07-10 21:01:20 +00:00
Stefan Monnier
b68f6e48fa Set edebug and indentation before loading
cl-loaddefs.el so that its use of dolist doesn't load cl-macs.
2007-06-28 15:09:21 +00:00
Stefan Monnier
dbc65a5e5b Use cl-loaddefs.el rather than manual autoloads. 2007-06-27 19:17:53 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Glenn Morris
d59c31376c Update copyright years. 2006-12-07 05:06:17 +00:00
Kim F. Storm
fcecceea0f (pushnew-internal): Remove defvar.
(pushnew): Fix last change.
2006-10-03 09:19:17 +00:00
Kim F. Storm
5bde639f47 (pushnew): Rework 2006-09-10 change. Use memql
instead of add-to-list in the simple case.
2006-09-20 23:12:15 +00:00
Reiner Steib
e027c6e48d (pushnew): Add missing `,'. 2006-09-11 11:15:54 +00:00
Richard M. Stallman
6b34950fad (pushnew): Use add-to-list when convenient. 2006-09-10 17:47:39 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
John Paul Wallington
c45c309fe2 (toplevel): Remove definition of `cl-assertion-failed' condition --
it's defined in subr.el instead.
2006-01-30 19:58:41 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
868904eb92 (acons, pairlis): Add docstring. 2005-05-23 00:05:40 +00:00
Stefan Monnier
6cd0254fe9 (eql): Remove. It's a builtin already. 2005-05-22 20:15:05 +00:00
Juanma Barranquero
708c63a689 (pushnew, cl-macroexpand, floatp-safe, plusp, minusp, oddp, evenp, mapcar*,
list*, copy-list, adjoin, subst): Improve argument/docstring consistency.
2005-05-22 17:46:50 +00:00
Juanma Barranquero
f4db41fcbb (eql, floatp-safe, plusp, minusp, oddp, evenp, list*): Doc fixes. 2005-05-17 00:26:26 +00:00
Richard M. Stallman
61f1ca4e1d (cl-unload-hook): Don't defvar it, just set it. 2004-10-16 15:21:10 +00:00
Richard M. Stallman
7a21fef9ec (cl-cannot-unload): New function.
(cl-unload-hook): Defvar this to run cl-cannot-unload.
2004-01-16 18:20:00 +00:00
Luc Teirlinck
3e7274ae13 *** empty log message *** 2004-01-16 01:48:11 +00:00
Luc Teirlinck
637692f434 Add fmakunbound' for declare'. 2004-01-16 01:13:41 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
a2e74caa23 (multiple-value-call): Add docstring. 2002-11-19 15:56:28 +00:00
Stefan Monnier
87dd507f6a (cl-set-substring): Fix thinko.
(cl-hack-byte-compiler): Avoid infinite require loop.
2002-07-13 23:08:01 +00:00
Richard M. Stallman
f988b54154 (multiple-value-call): Add alias. 2002-07-12 17:41:00 +00:00
Richard M. Stallman
8f7ef36641 (values): Simplify definition. 2002-06-26 09:03:37 +00:00
Richard M. Stallman
6b25a2f544 (copy-list): Moved back from subr.el. 2002-06-10 09:00:52 +00:00
Colin Walters
06bc5dbf8e (copy-list): Moved to subr.el. 2002-06-08 21:42:00 +00:00