1. 01 Jun, 2012 1 commit
  2. 18 May, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties to · b581bb5c
      Stefan Monnier authored
      their respective macro declarations.
      * lisp/skeleton.el (define-skeleton):
      * lisp/progmodes/compile.el (define-compilation-mode):
      * lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op)
      (define-ibuffer-filter):
      * lisp/emacs-lisp/generic.el (define-generic-mode):
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
      (define-globalized-minor-mode):
      * lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype):
      * lisp/emacs-lisp/byte-run.el (defsubst):
      * lisp/custom.el (deftheme): Add doc-string metadata.
      b581bb5c
  3. 17 May, 2012 5 commits
  4. 06 May, 2012 1 commit
  5. 26 Apr, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/vc/vc-mtn.el: · 0d42eb3e
      Stefan Monnier authored
      * lisp/vc/vc-hg.el:
      * lisp/vc/vc-git.el:
      * lisp/vc/vc-dir.el:
      * lisp/vc/vc-cvs.el:
      * lisp/vc/vc-bzr.el:
      * lisp/vc/vc-arch.el:
      * lisp/vc/vc.el: Replace lexical-let by lexical-binding.
      * lisp/minibuffer.el (lazy-completion-table): Avoid ((λ ...) ...).
      * lisp/emacs-lisp/cl-macs.el (lexical-let): Fix use in lexical-binding.
      * lisp/emacs-lisp/cconv.el (cconv-analyse-form): Warn use of ((λ ...) ...).
      0d42eb3e
  6. 11 Jan, 2012 1 commit
  7. 05 Jan, 2012 1 commit
  8. 26 Aug, 2011 1 commit
  9. 05 Aug, 2011 1 commit
  10. 03 Aug, 2011 1 commit
  11. 02 Aug, 2011 1 commit
  12. 16 Jul, 2011 1 commit
  13. 15 Jul, 2011 3 commits
  14. 01 Jun, 2011 1 commit
    • Stefan Monnier's avatar
      Miscellaneous tweaks. · 2462470b
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for
      lexical scoping as in subr.el's dolist and dotimes.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf):
      Silence compiler warning.
      * lisp/thingatpt.el (forward-whitespace): Trivial coding style fix.
      * lisp/subr.el (with-output-to-temp-buffer): Provide an edebug spec.
      * lisp/international/ccl.el (ccl-compile): Trivial simplification.
      * lisp/help-fns.el (help-do-arg-highlight): Silence compiler warning.
      * lisp/emacs-lisp/testcover.el (testcover-end): Remove spurious
      `printflag' argument.
      * lisp/emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable):
      Purecopy the whole obsolescence data.
      2462470b
  15. 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
  16. 20 Mar, 2011 1 commit
  17. 19 Mar, 2011 1 commit
  18. 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
  19. 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
  20. 01 Mar, 2011 1 commit
  21. 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
  22. 05 Feb, 2011 1 commit
  23. 25 Jan, 2011 1 commit
  24. 02 Jan, 2011 1 commit
  25. 02 Dec, 2010 1 commit
  26. 08 Nov, 2010 1 commit
  27. 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
  28. 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
  29. 29 Aug, 2010 1 commit
  30. 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
  31. 19 May, 2010 1 commit
  32. 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