summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
Commit message (Collapse)AuthorAgeFilesLines
* Merge from trunkStefan Monnier2011-03-061-1/+1
|\
| * lisp/emacs-lisp/cl-macs.el (lexical-let*): Fix argument name in docstring.Juanma Barranquero2011-03-011-1/+1
| |
* | Various compiler bug-fixes. MPC seems to run correctly now.Stefan Monnier2011-02-171-1/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (lexical-binding): Add a safe-local-variable property. * lisp/emacs-lisp/byte-opt.el (byte-inline-lapcode): Check how many elements are added to the stack. (byte-compile-splice-in-already-compiled-code): Don't touch lexical nor byte-compile-depth now that byte-inline-lapcode does it for us. (byte-compile-inline-expand): Don't inline dynbind byte code into lexbind code, since it has to be done differently. * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn): Correctly extract arglist from `closure's. (byte-compile-cl-warn): Compiler-macros are run earlier now. (byte-compile-top-level): Bind byte-compile-lexical-environment to nil, except for lambdas. (byte-compile-form): Don't run the compiler-macro expander here. (byte-compile-let): Merge with byte-compile-let*. Don't preserve-body-value if the body's value was discarded. * lisp/emacs-lisp/cconv.el (cconv--set-diff, cconv--set-diff-map) (cconv--map-diff, cconv--map-diff-elem, cconv--map-diff-set): New funs. (cconv--env-var): New constant. (cconv-closure-convert-rec): Use it and use them. Fix a typo that ended up forgetting to remove entries from lmenvs in `let'. For `lambda' use the outer `fvrs' when building the closure and don't forget to remove `vars' from the `emvrs' and `lmenvs' of the body. * lisp/emacs-lisp/cl-macs.el (cl-byte-compile-block): Disable optimization in lexbind, because it needs a different implementation. * src/bytecode.c (exec_byte_code): Fix handling of &rest. * src/eval.c (Vinternal_interpreter_environment): Remove. (syms_of_eval): Do declare Vinternal_interpreter_environment as a global lisp var, but unintern it to hide it. (Fcommandp): * src/data.c (Finteractive_form): Understand `closure's.
* Merge from emacs-23; up to 2010-05-26T14:19:15Z!monnier@iro.umontreal.ca.Glenn Morris2011-02-051-1/+1
|\
| * * lisp/emacs-lisp/cl-macs.el (return-from): Fix doc typo.Glenn Morris2011-02-051-1/+1
| |
* | Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
| |
* | Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\ \ | |/
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | cl-macs `loop' fix for bug#7492.Glenn Morris2010-12-021-2/+11
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-parse-loop-clause): Avoid infinite loop over windows.
* | * lisp/emacs-lisp/cl-macs.el (extent-data, extent-face, extent-priority)Stefan Monnier2010-11-081-9/+0
| | | | | | | | | | | | | | (extent-end-position, extent-start-position): Remove setf method for non-existing functions. Fixes: debbugs:7319
* | Silence cl-macs.el compilation.Glenn Morris2010-11-051-110/+109
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (loop): Give local variable args a prefix. (cl-parse-loop-clause, cl-loop-handle-accum): Update for above change.
* | Removed cut-buffer code.Jan Djärv2010-09-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse-sel.el (mouse-sel-get-selection-function): x-cut-buffer-or-selection-value renamed to x-selection-value. (x-select-text): Optional push removed. * lisp/select.el (x-get-cut-buffer, x-set-cut-buffer): Remove. * lisp/simple.el (interprogram-cut-function): Remove mention of PUSH. * lisp/w32-fns.el (x-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value. (x-cut-buffer-max): Remove. (x-select-text): Remove argument PUSH, update documentation. * lisp/emacs-lisp/cl-macs.el (x-get-cutbuffer, x-get-cut-buffer): Remove. * lisp/term/ns-win.el (x-setup-function-keys, ns-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value (x-selection-value): Renamed from x-cut-buffer-or-selection-value. (x-select-text): Remove argument PUSH, update documentation. * lisp/term/pc-win.el (x-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value (x-select-text): Remove argument PUSH, update documentation. * lisp/term/x-win.el: Update documentation for x-last-selected-text-*. (x-last-selected-text-cut, x-last-selected-text-cut-encoded) (x-last-cut-buffer-coding, x-cut-buffer-max): Remove. (x-select-text): Remove argument PUSH, update documentation. Remove cut-buffer code. (x-selection-value-internal): Was previously x-selection-value. (x-selection-value): Renamed from x-cut-buffer-or-selection-value. Update documentation, remove cut-buffer code. Call x-selection-value-internal. (x-clipboard-yank): Call x-selection-value-internal. (x-initialize-window-system): Remove setting of x-cut-buffer-max. * src/xselect.c: Remove declaration of cut-buffer objects and functions. (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn. (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn. (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal) (Fx_rotate_cut_buffers_internal): Remove. (syms_of_xselect): Remove defsubr of above. Remove intern of QCUT_BUFFERn. * src/xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized. * src/xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | Merge from emacs-23Stefan Monnier2010-06-161-1/+1
|\ \ | |/
| * Close bug#6408.Helmut Eller2010-06-121-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (destructuring-bind): Bind `bind-enquote', used by cl-do-arglist.
* | * emacs-lisp/cl-macs.el (window-parameter): Add defsetf withJuri Linkov2010-05-191-0/+1
| | | | | | | | set-window-parameter.
* | Use define-minor-mode in more cases.Stefan Monnier2010-05-041-1/+11
| | | | | | | | | | | | | | | | | | | | * term/tvi970.el (tvi970-set-keypad-mode): * simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode) (normal-erase-is-backspace-mode): * scroll-bar.el (scroll-bar-mode): Use it and define-minor-mode. (set-scroll-bar-mode-1): (Re)move to its sole caller. (get-scroll-bar-mode): New function. * emacs-lisp/cl-macs.el (eq): Handle a non-variable first arg.
* | Use define-minor-mode for less obvious cases.Stefan Monnier2010-05-041-3/+10
| | | | | | | | | | | | | | | | * emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword. * emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method. * international/iso-ascii.el (iso-ascii-mode): * frame.el (auto-raise-mode, auto-lower-mode): * composite.el (global-auto-composition-mode): Use define-minor-mode.
* | Fix some of the problems in defsubst* (bug#5728).Stefan Monnier2010-04-081-9/+30
|/ | | | | * emacs-lisp/cl-macs.el (defsubst*): Don't substitute non-trivial args. (cl-defsubst-expand): Do the substitutions simultaneously (bug#5728).
* Close bug#4427.Glenn Morris2010-03-111-2/+3
| | | | | * emacs-lisp/cl-macs.el (defsubst*): Add autoload cookie. (Bug#4427) * emacs-lisp/cl-loaddefs.el: Regenerate.
* * emacs-lisp/cl-macs.el (defstruct): Doc fix (Bug#5267).Chong Yidong2010-01-161-4/+14
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (define-compiler-macro): Purecopy the file name.Dan Nicolaescu2009-11-121-1/+1
|
* * menu-bar.el: Remove menu-bar-ediff-misc-menu from the ToolsChong Yidong2009-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | menu. * ediff-hook.el: Move menu-bar-ediff-misc-menu into menu-bar-ediff-menu. * emacs-lisp/lisp-mode.el: Add doc-string-elt property to define-overloadable-function. * progmodes/autoconf.el: Provide autoconf as well, so that this file can be `require'd. * emacs-lisp/cl-macs.el (deftype): Add to cl-loaddefs. * emacs-lisp/autoload.el (generated-autoload-feature) (generated-autoload-load-name): New vars. (autoload-rubric, autoload-generate-file-autoloads): Use them. (make-autoload): Recognize define-overloadable-function and defclass forms (for EIEIO). * Makefile.in (update-subdirs): Exclude cedet directory.
* * emacs-lisp/cl-macs.el (help-add-fundoc-usage): Declare.Juanma Barranquero2009-09-111-0/+2
|
* (define-compiler-macro): Add a property that records where a macro wasGlenn Morris2009-09-111-2/+16
| | | | defined.
* (cl-macro-environment): Provide a docstring.Stefan Monnier2009-08-301-1/+5
|
* (load-time-value): Update for the name-change `outbuffer' toGlenn Morris2009-07-231-1/+1
| | | | `bytecomp-outbuffer'.
* * emacs-lisp/cl-macs.el (lexical-let*): Doc fix (Bug#3178).Chong Yidong2009-05-101-2/+4
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* Comment.Glenn Morris2008-11-201-0/+2
|
* (flet): Throw an error when trying to byte-compile a redefinition of aGlenn Morris2008-10-231-4/+8
| | | | function with special byte-compile handling. (Bug#411)
* Simply require 'cl (silences spurious warnings).Glenn Morris2008-07-161-8/+1
| | | | (cl-compile-time-init): Remove function.
* (ignore-errors): Move to subr.el.Glenn Morris2008-05-071-7/+0
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (get-setf-method): Use `string-match-p'.Juanma Barranquero2008-04-081-2/+1
|
* (defsetf): Accept a lambda for the 2-arg form.Stefan Monnier2008-04-031-1/+1
|
* (frame-parameter) <defsetf>: Make it return the assigned value.Johan Bockgård2008-04-011-1/+1
|
* Merge from emacs--devo--0Miles Bader2008-01-301-5/+6
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
| * Trivial change.Richard M. Stallman2008-01-251-5/+6
| |
* | Merge from emacs--devo--0Miles Bader2008-01-091-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
| |\ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| | |
* | | Merge from emacs--devo--0Miles Bader2007-11-111-8/+5
|\ \ \ | |/ / | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
| * | Unify local variable section, and setGlenn Morris2007-10-281-8/+5
| | | | | | | | | | | | | | | | | | byte-compile-warnings to `(not cl-functions)'. (cl-do-proclaim): Use byte-compile-disable-warning and byte-compile-enable-warning.
* | | Merge from emacs--devo--0Miles Bader2007-08-211-9/+13
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 852-856) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 93-96) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 245) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-249
| * | Merge from emacs--rel--22Miles Bader2007-08-211-9/+13
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 93-96) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 245) - Update from CVS Revision: emacs@sv.gnu.org/emacs--devo--0--patch-856
| | * (cl-transform-lambda): Preserve the match-data.Stefan Monnier2007-08-161-9/+13
| | |
* | | Merge from emacs--devo--0Miles Bader2007-07-271-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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