1. 18 Oct, 2012 1 commit
  2. 14 Sep, 2012 2 commits
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/edebug.el: Miscellaneous cleanup. · 2de39f08
      Stefan Monnier authored
      Remove obsolete byte-compiler hack that tried to silence some warnings.
      (edebug-submit-bug-report): Remove.
      (edebug-get-buffer-window, edebug-sit-for, edebug-input-pending-p):
      Remove aliases, use the un-prefixed name instead.
      (edebug-pop-to-buffer): Consider other frames.
      (edebug-original-read):: Make it more obvious that it's always defined.
      (edebug--make-form-data-entry, edebug--form-data-name)
      (edebug--form-data-begin, edebug--form-data-end): Rename from the
      single-dashed name, and implement with cl-defstruct.
      (edebug-set-form-data-entry): Use the standard accessors.
      (edebug-make-top-form-data-entry): Use push.
      (edebug-no-match): Drop useless `funcall'.
      (mapcar, mapconcat, mapatoms, apply, funcall): Don't add debug specs
      to functions.
      (defsubst, dont-compile, eval-when-compile, eval-and-compile)
      (delay-mode-hooks, with-temp-file, with-temp-message, ad-dolist)
      (with-syntax-table, push, pop, 1value, noreturn, defadvice)
      (easy-menu-define, with-custom-print): Remove redundant specs.
      (edebug-outside-overriding-local-map)
      (edebug-outside-overriding-terminal-local-map): Remove, unused.
      (edebug--display): Bind unread-command-events directly to nil rather
      than binding it to unread-command-events and later setting it to nil.
      (edebug--display): Kill edebug-eval-buffer here...
      (edebug--recursive-edit): ...rather than here.
      Bind standard-output and standard-input.
      (edebug-eval): Check cl-macroexpand-all is fboundp.
      (edebug-temp-display-freq-count): Fix last change.
      
      * lisp/emacs-lisp/easymenu.el (easy-menu-define): Add `debug' spec.
      * lisp/subr.el (noreturn, 1value): Add `debug' spec.
      * lisp/emacs-lisp/advice.el: Require cl-lib.
      (ad-copy-tree): Remove, use copy-tree instead.
      (ad-dolist): Remove use dolist or cl-dolist instead.
      (ad-do-return): Remove, use cl-return instead.
      (defadvice): Add `debug' spec.
      2de39f08
  3. 26 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Autoload more carefully from Lisp. Follow aliases for function properties. · 7abaf5cc
      Stefan Monnier authored
      * lisp/subr.el (autoloadp): New function.
      (symbol-file): Use it.
      (function-get): New function.
      * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Use function-get and
      autoload-do-load.
      * lisp/emacs-lisp/lisp-mode.el (lisp-font-lock-syntactic-face-function)
      (lisp-indent-function):
      * lisp/emacs-lisp/gv.el (gv-get):
      * lisp/emacs-lisp/edebug.el (get-edebug-spec, edebug-basic-spec):
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
      * lisp/emacs-lisp/autoload.el (make-autoload, autoload-print-form):
      Use function-get.
      * lisp/emacs-lisp/cl.el: Don't propagate function properties any more.
      
      * src/eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,
      add argument, tune behavior, and adjust all callers.
      
      * lisp/speedbar.el (speedbar-add-localized-speedbar-support):
      * lisp/emacs-lisp/disass.el (disassemble-internal):
      * lisp/desktop.el (desktop-load-file):
      * lisp/help-fns.el (help-function-arglist, find-lisp-object-file-name)
      (describe-function-1):
      * lisp/emacs-lisp/find-func.el (find-function-noselect):
      * lisp/emacs-lisp/elp.el (elp-instrument-function):
      * lisp/emacs-lisp/advice.el (ad-has-proper-definition):
      * lisp/apropos.el (apropos-safe-documentation, apropos-macrop):
      * lisp/emacs-lisp/debug.el (debug-on-entry):
      * lisp/emacs-lisp/cl-macs.el (cl-compiler-macroexpand):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
      * lisp/calc/calc.el (name): Use autoloadp & autoload-do-load.
      7abaf5cc
  4. 10 Feb, 2012 1 commit
    • Chong Yidong's avatar
      Update Compilation and Advice chapters in Lisp manual. · 25dec365
      Chong Yidong authored
      * doc/lispref/advice.texi (Defining Advice): Clarify ad-unadvise.
      (Activation of Advice): Specifying the ACTIVATE flag in defadvice
      is not abnormal.
      (Advising Primitives): Node deleted; ad-define-subr-args has been
      removed.
      
      * doc/lispref/compile.texi (Speed of Byte-Code): Use float-time in example.
      (Compilation Functions): Note that the log uses Compilation mode.
      Don't discuss the contents of byte-code function object here.
      (Compilation Functions): De-document internal function byte-code.
      (Docs and Compilation): Minor clarifications.
      
      * doc/lispref/objects.texi (Byte-Code Type): Add xref to Byte-Code Function
      Objects.
      
      * lisp/emacs-lisp/advice.el: Update commentary to reflect deletion of
      ad-define-subr-args
      25dec365
  5. 11 Jan, 2012 1 commit
  6. 05 Jan, 2012 1 commit
  7. 27 Nov, 2011 1 commit
  8. 19 Nov, 2011 1 commit
  9. 17 Nov, 2011 1 commit
  10. 23 May, 2011 1 commit
  11. 13 Apr, 2011 1 commit
    • Stefan Monnier's avatar
      Preserve arg names for advice of subr and lexical functions. · c2bd2ab0
      Stefan Monnier authored
      * lisp/help-fns.el (help-function-arglist): Consolidate the subr and
      new-byte-code cases.  Add argument `preserve-names' to extract names
      from the docstring when needed.
      * lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
      (ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
      (ad-arglist): Use help-function-arglist's new arg.
      (ad-definition-type): Use cond.
      
      Fixes: debbugs:8457
      c2bd2ab0
  12. 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
  13. 28 Jan, 2011 1 commit
    • Leo Liu's avatar
      Fix help-mode highlighting of advice warning (Bug#6304). · b1ea593c
      Leo Liu authored
      * emacs-lisp/advice.el (ad-make-advised-docstring): Don't apply
      highlighting to the "this function is advisted" message.
      
      * help-mode.el (help-mode-finish): Apply highlighting here, to
      avoid clobbering by substitute-command-keys (Bug#6304).
      b1ea593c
  14. 25 Jan, 2011 1 commit
  15. 15 Jan, 2011 1 commit
  16. 02 Jan, 2011 1 commit
  17. 29 Aug, 2010 1 commit
  18. 09 Jun, 2010 1 commit
  19. 15 Feb, 2010 2 commits
  20. 23 Jan, 2010 1 commit
  21. 16 Jan, 2010 1 commit
  22. 13 Jan, 2010 1 commit
  23. 02 Oct, 2009 2 commits
  24. 19 Sep, 2009 1 commit
  25. 22 Jul, 2009 1 commit
  26. 05 Jan, 2009 1 commit
  27. 08 May, 2008 1 commit
  28. 06 May, 2008 1 commit
  29. 13 Mar, 2008 1 commit
  30. 07 Jan, 2008 1 commit
  31. 28 Oct, 2007 1 commit
  32. 23 Oct, 2007 1 commit
  33. 16 Oct, 2007 2 commits
  34. 14 Oct, 2007 1 commit
    • Richard M. Stallman's avatar
      (documentation): Advice deleted. Doc for advised functions · 15975e35
      Richard M. Stallman authored
      is now handled at C level.
      (ad-stop-advice, ad-start-advice): Don't enable or disable
      advice for `documentation'.
      (ad-advised-definition-docstring-regexp): Var deleted.
      (ad-make-advised-definition-docstring): Store orig name
      as text property of string.
      (ad-advised-definition-p): Check for text property of docstring.
      15975e35
  35. 05 Sep, 2007 1 commit
  36. 28 Jul, 2007 1 commit