1. 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
  2. 13 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      * src/eval.c (Ffunction): Use simpler format for closures. · 23aba0ea
      Stefan Monnier authored
      (Fcommandp, funcall_lambda):
      * src/doc.c (Fdocumentation, store_function_docstring):
      * src/data.c (Finteractive_form):
      * lisp/help-fns.el (help-function-arglist):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
      * lisp/subr.el (apply-partially): Adjust to new closure format.
      * lisp/emacs-lisp/disass.el (disassemble-internal): Catch closures.
      23aba0ea
  3. 12 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      Try and fix w32 build; misc cleanup. · 2ec42da9
      Stefan Monnier authored
      * lisp/subr.el (apply-partially): Move from subr.el; don't use lexical-let.
      (eval-after-load): Obey lexical-binding.
      * lisp/simple.el (apply-partially): Move to subr.el.
      * lisp/makefile.w32-in: Match changes in Makefile.in.
      (BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS): New vars.
      (.el.elc, compile-CMD, compile-SH, compile-always-CMD)
      (compile-always-SH, compile-calc-CMD, compile-calc-SH): Use them.
      (COMPILE_FIRST): Add pcase, macroexp, and cconv.
      * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Silence warning about
      calling CL's `compiler-macroexpand'.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-preprocess): New function.
      (byte-compile-initial-macro-environment)
      (byte-compile-toplevel-file-form, byte-compile, byte-compile-sexp): Use it.
      (byte-compile-eval, byte-compile-eval-before-compile): Obey lexical-binding.
      (byte-compile--for-effect): Rename from `for-effect'.
      (display-call-tree): Use case.
      * lisp/emacs-lisp/byte-opt.el (for-effect): Don't declare as dynamic.
      (byte-optimize-form-code-walker, byte-optimize-form):
      Revert to old arg name.
      * lisp/Makefile.in (BYTE_COMPILE_FLAGS): New var.
      (compile-onefile, .el.elc, compile-calc, recompile): Use it.
      2ec42da9
  4. 11 Mar, 2011 1 commit
    • 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
  5. 10 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el: Use lexical-binding. · 9ace101c
      Stefan Monnier authored
      (byte-recompile-directory): Remove unused var `bytecomp-dest'.
      (byte-recompile-file): Use derived-mode-p.
      (byte-compile-from-buffer): Remove arg `bytecomp-filename'.
      Use byte-compile-current-file instead.
      (byte-compile-file): Adjust call accordingly.
      (bytecomp-outbuffer): Move declaration before first use.
      (for-effect): Declare dynamic.
      (byte-compile-file-form-defmumble): Use byte-compile-current-file.
      (byte-compile-top-level, byte-compile-out-toplevel, byte-compile-form):
      Move dyn-binding of for-effect from function argument to let binding.
      (byte-compile-out-toplevel): Don't both passing for-effect to
      byte-optimize-lapcode.
      (byte-compile-top-level-body, byte-compile-body):
      Rename for-effect -> for-effect-arg so it's lexical.
      * lisp/subr.el (functionp): Remove, now that it's in src/eval.c.
      9ace101c
  6. 21 Feb, 2011 1 commit
    • Stefan Monnier's avatar
      Use offsets relative to top rather than bottom for stack refs · 3e21b6a7
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-and-error-free-ops):
      Remove interactive-p.
      (byte-optimize-lapcode): Update optimizations now that stack-refs are
      relative to the top rather than to the bottom.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode):
      Turn stack-ref-0 into dup.
      (byte-compile-form): Don't indirect-function since it can signal
      errors.
      (byte-compile-stack-ref, byte-compile-stack-set): Adjust to stack-refs
      being relative to top rather than to bottom in the byte-code.
      (with-output-to-temp-buffer): Remove.
      (byte-compile-with-output-to-temp-buffer): Remove.
      * lisp/emacs-lisp/cconv.el: Use lexical-binding.
      (cconv--lookup-let): Rename from cconv-lookup-let.
      (cconv-closure-convert-rec): Fix handling of captured+mutated
      arguments in defun/defmacro.
      * lisp/emacs-lisp/eieio-comp.el (eieio-byte-compile-file-form-defmethod):
      Rename from byte-compile-file-form-defmethod.
      Don't byte-compile-lambda.
      (eieio-byte-compile-defmethod-param-convert): Rename from
      byte-compile-defmethod-param-convert.
      * lisp/emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):
      Call byte-compile rather than byte-compile-lambda.
      * src/alloc.c (Fgarbage_collect): Don't mark the byte-stack redundantly.
      * src/bytecode.c (exec_byte_code): Change stack_ref and stack_set to use
      offsets relative to top rather than to bottom.
      * lisp/subr.el (with-output-to-temp-buffer): New macro.
      * lisp/simple.el (count-words-region): Don't use interactive-p.
      3e21b6a7
  7. 19 Feb, 2011 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (save-window-excursion): New macro, moved from C. · e0f57e65
      Stefan Monnier authored
      * lisp/emacs-lisp/lisp-mode.el (save-window-excursion): Don't touch.
      * lisp/emacs-lisp/cconv.el (cconv-closure-convert-rec, cconv-analyse-form):
      Don't handle save-window-excursion any more.
      * lisp/emacs-lisp/bytecomp.el (interactive-p, save-window-excursion):
      Don't use the byte-code any more.
      (byte-compile-form): Check macro expansion was done.
      (byte-compile-save-window-excursion): Remove.
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
      Ignore save-window-excursion.  Don't macroepand any more.
      
      * src/window.c (Fsave_window_excursion): Remove.  Moved to Lisp.
      (syms_of_window): Don't defsubr it.
      * src/window.h (Fsave_window_excursion): Don't declare it.
      * src/bytecode.c (exec_byte_code): Inline Fsave_window_excursion.
      e0f57e65
  8. 01 Feb, 2011 3 commits
  9. 25 Jan, 2011 1 commit
  10. 21 Jan, 2011 1 commit
  11. 20 Jan, 2011 1 commit
  12. 15 Jan, 2011 1 commit
    • Mark Diekhans's avatar
      Make last-resort backup file in .emacs.d (Bug#6953). · b024d9f0
      Mark Diekhans authored
      * lisp/files.el (backup-buffer): Make last-resort backup file in
      .emacs.d.
      
      * lisp/subr.el (locate-user-emacs-file): If .emacs.d does not exist,
      make it with permission 700.
      
      * doc/emacs/files.texi (Backup Names): Document the new location of the
      last-resort backup file.
      b024d9f0
  13. 13 Jan, 2011 1 commit
  14. 11 Jan, 2011 1 commit
  15. 09 Jan, 2011 1 commit
  16. 08 Jan, 2011 2 commits
  17. 07 Jan, 2011 1 commit
  18. 02 Jan, 2011 1 commit
  19. 15 Dec, 2010 1 commit
    • Glenn Morris's avatar
      Remove code and comments related to lib-src/fns-*.el; long removed. · 68251e16
      Glenn Morris authored
      * Makefile.in (install-arch-dep, uninstall): Remove code relating to the
      long absent lib-src/fns-*.el.
      
      * lisp/loadup.el (symbol-file-load-history-loaded): Remove; unused.
      Remove related, old, commented-out code.
      
      * lisp/subr.el (symbol-file-load-history-loaded)
        (load-symbol-file-load-history): Remove old, commented-out code.
      68251e16
  20. 13 Dec, 2010 1 commit
    • Stefan Monnier's avatar
      Make the effect of (defvar foo) local. · f07a954e
      Stefan Monnier authored
      * src/eval.c (apply_lambda): Make static.  Remove eval_flag arg.
      (Fsetq): Don't check declared_special.
      (Fdefun, Fdefmacro): Use Ffunction.
      (Fdefvar): Don't set declared_special for (defvar foo).
      (FletX): Check locally-special vars.  Only do specbind once.
      (Flet): Check locally-special vars.
      (Feval): Don't check declared_special.
      (funcall_lambda): Check locally-special vars.
      * src/lisp.h (apply_lambda): Remove extern declaration.
      * src/lread.c (readevalloop): CSE.
      * lisp/subr.el (with-lexical-binding): Remove.
      f07a954e
  21. 12 Dec, 2010 1 commit
  22. 11 Dec, 2010 1 commit
    • Glenn Morris's avatar
      Doc fixes. · 5612fd08
      Glenn Morris authored
      * lisp/subr.el (member-ignore-case, run-mode-hooks, insert-for-yank-1)
      (with-silent-modifications): Doc fixes.
      5612fd08
  23. 05 Dec, 2010 1 commit
  24. 03 Dec, 2010 1 commit
  25. 13 Nov, 2010 1 commit
  26. 02 Nov, 2010 1 commit
  27. 13 Oct, 2010 3 commits
  28. 03 Oct, 2010 3 commits
  29. 02 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Remove some functions, variables and aliases obsolete since at least 21.1. · 3226d6ca
      Glenn Morris authored
      * doc/misc/misc.texi (Shell Mode): Remove reference to old function name.
      
      * src/character.c (Fchar_bytes): Remove obsolete function.
      (syms_of_character): Remove Schar_bytes.
      * lisp/subr.el (char-bytes): Remove obsolete function.
      
      * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-keymap): Remove obsolete alias.
      
      * lisp/isearch.el (isearch-return-char): Remove obsolete function.
      
      * lisp/mouse.el: No longer provide mldrag.
      (mldrag-drag-mode-line, mldrag-drag-vertical-line):
      Remove obsolete aliases.
      
      * lisp/comint.el (comint-kill-output): Remove obsolete alias.
      
      * lisp/shell.el: Comment fix.
      
      * lisp/composite.el (decompose-composite-char): Remove obsolete function.
      * lisp/ps-def.el (decompose-composite-char): Remove unused function.
      
      * lisp/iswitchb.el (iswitchb-default-keybindings): Remove obsolete function.
      
      * lisp/outline.el (outline-visible): Remove obsolete function.
      
      * lisp/term/pc-win.el (x-frob-font-slant, x-frob-font-weight):
      * lisp/faces.el (internal-find-face, internal-get-face)
      (frame-update-faces, frame-update-face-colors)
      (x-frob-font-weight, x-frob-font-slant)
      (internal-frob-font-weight, internal-frob-font-slant)
      (x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
      (x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
      (x-make-font-bold-italic): Remove functions and aliases, obsolete
      since Emacs 21.1.
      * lisp/emulation/viper-util.el (viper-get-face):
      * lisp/obsolete/lucid.el (find-face, get-face): Use facep.
      * lisp/vc/ediff-init.el (ediff-valid-color-p, ediff-get-face):
      Remove unused functions.
      * lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.
      
      * etc/NEWS: Mention above changes.
      3226d6ca
  30. 20 Sep, 2010 1 commit
  31. 17 Sep, 2010 1 commit
  32. 14 Sep, 2010 1 commit
  33. 12 Sep, 2010 1 commit