1. 01 Apr, 2011 1 commit
    • Stefan Monnier's avatar
      Miscellanous cleanups in preparation for the merge. · 7200d79c
      Stefan Monnier authored
      * 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.
      7200d79c
  2. 20 Mar, 2011 1 commit
  3. 19 Mar, 2011 1 commit
  4. 16 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      Remove bytecomp- prefix, plus misc changes. · ca105506
      Stefan Monnier authored
      * 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.
      ca105506
  5. 11 Mar, 2011 2 commits
    • Stefan Monnier's avatar
      Misc fixes, and use lexical-binding in more files. · ba83908c
      Stefan Monnier authored
      * 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.
      ba83908c
    • Juanma Barranquero's avatar
      Backport 2011-03-01T03:59:31Z!lekktu@gmail.com from trunk. · 9c5047fb
      Juanma Barranquero authored
      *lisp/emacs-lisp/cl-macs.el (lexical-let*): Fix argument name in docstring.
      9c5047fb
  6. 01 Mar, 2011 1 commit
  7. 17 Feb, 2011 1 commit
    • Stefan Monnier's avatar
      Various compiler bug-fixes. MPC seems to run correctly now. · b38b1ec0
      Stefan Monnier authored
      * 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.
      b38b1ec0
  8. 05 Feb, 2011 1 commit
  9. 25 Jan, 2011 1 commit
  10. 02 Jan, 2011 1 commit
  11. 02 Dec, 2010 1 commit
  12. 08 Nov, 2010 1 commit
  13. 05 Nov, 2010 1 commit
    • Glenn Morris's avatar
      Silence cl-macs.el compilation. · 215461a8
      Glenn Morris authored
      * 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.
      215461a8
  14. 02 Sep, 2010 1 commit
    • Jan Djärv's avatar
      Removed cut-buffer code. · 6d7cc563
      Jan Djärv authored
      * 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.
      6d7cc563
  15. 29 Aug, 2010 1 commit
  16. 12 Jun, 2010 1 commit
    • Helmut Eller's avatar
      Close bug#6408. · 37a7e764
      Helmut Eller authored
      * lisp/emacs-lisp/cl-macs.el (destructuring-bind): Bind `bind-enquote',
      used by cl-do-arglist.
      37a7e764
  17. 19 May, 2010 1 commit
  18. 05 May, 2010 2 commits
    • Stefan Monnier's avatar
      Use define-minor-mode in more cases. · 80ac5d4d
      Stefan Monnier authored
      * 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.
      80ac5d4d
    • Stefan Monnier's avatar
      Use define-minor-mode for less obvious cases. · f44379e7
      Stefan Monnier authored
      * 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.
      f44379e7
  19. 08 Apr, 2010 1 commit
  20. 12 Mar, 2010 1 commit
    • Glenn Morris's avatar
      Close bug#4427. · eb123b12
      Glenn Morris authored
      * emacs-lisp/cl-macs.el (defsubst*): Add autoload cookie.  (Bug#4427)
      * emacs-lisp/cl-loaddefs.el: Regenerate.
      eb123b12
  21. 16 Jan, 2010 1 commit
  22. 13 Jan, 2010 1 commit
  23. 12 Nov, 2009 1 commit
  24. 27 Sep, 2009 1 commit
    • Chong Yidong's avatar
      * menu-bar.el: Remove menu-bar-ediff-misc-menu from the Tools · 15120dec
      Chong Yidong authored
      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.
      15120dec
  25. 11 Sep, 2009 2 commits
  26. 30 Aug, 2009 1 commit
  27. 22 Aug, 2009 1 commit
  28. 23 Jul, 2009 1 commit
  29. 10 May, 2009 1 commit
  30. 05 Jan, 2009 1 commit
  31. 20 Nov, 2008 1 commit
  32. 23 Oct, 2008 1 commit
  33. 16 Jul, 2008 1 commit
  34. 07 May, 2008 1 commit
  35. 06 May, 2008 1 commit
  36. 08 Apr, 2008 1 commit
  37. 03 Apr, 2008 1 commit