summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/advice.el
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/advice.el (ad-read-advised-function):Kevin Ryde2011-05-231-2/+13
| | | | | Use `function-called-at-point' as the default default, if it has advice and passes PREDICATE.
* Preserve arg names for advice of subr and lexical functions.Stefan Monnier2011-04-131-126/+15
| | | | | | | | | | | | * 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
* Misc fixes, and use lexical-binding in more files.Stefan Monnier2011-03-111-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix help-mode highlighting of advice warning (Bug#6304).Leo Liu2011-01-281-3/+1
| | | | | | | | * 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).
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
|/
* * lisp/emacs-lisp/advice.el (ad-compile-function):Stefan Monnier2010-06-081-0/+2
| | | | | | Define warning-suppress-types before we let-bind it. Fixes: debbugs:6275
* (ad-compile-function): Fix last change.Stefan Monnier2010-02-151-1/+1
|
* (ad-compile-function): Suppress byte-compiler warnings, since it is annoyingStefan Monnier2010-02-151-1/+3
| | | | for the user to see them each time he runs the code.
* * emacs-lisp/advice.el (ad-set-orig-definition): Fix typo (Bug#3541).Chong Yidong2010-01-231-1/+1
|
* * emacs-lisp/advice.el (ad-add-advice): Doc fix (Bug#5274)Chong Yidong2010-01-161-10/+22
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Use `called-interactively-p' instead of `interactive-p'.Juanma Barranquero2009-10-021-3/+3
|
* * image-mode.el (image-toggle-display):Juanma Barranquero2009-10-021-1/+1
| | | | | | | | | * emacs-lisp/elp.el (elp-instrument-function): * emacs-lisp/advice.el (ad-make-advised-definition): * emacs-lisp/easy-mmode.el (define-minor-mode): * net/browse-url.el (browse-url-maybe-new-window): * progmodes/sh-script.el (sh-learn-buffer-indent): Pass new argument 'any to `called-interactively-p'.
* * emacs-lisp/advice.el (ad-get-argument, ad-set-argument): DocChong Yidong2009-09-191-2/+4
| | | | fix (Bug#3932).
* Remove leading * from defcustom docs.Glenn Morris2009-07-221-2/+2
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (ad-special-form-p): Don't use `iff' in docstring.Juanma Barranquero2008-05-081-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-04-051-1/+4
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
| * (defadvice): Add usage pattern.Richard M. Stallman2008-03-131-1/+4
| |
* | 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
| |
| * (ad-get-advice-info): Change to a function.Richard M. Stallman2007-10-161-6/+9
| | | | | | | | | | | | (ad-get-advice-info-macro): New macro, like old ad-get-advice-info. (ad-is-advised, ad-get-advice-info-field) (ad-set-advice-info-field): Use ad-get-advice-info-macro.
* | (ad-compile-function): Use byte-compile-disable-warning.Glenn Morris2007-10-281-5/+2
| |
* | (ad-make-advised-docstring): Add ad-advice-info text property to doc string.Juanma Barranquero2007-10-231-2/+4
| |
* | (ad-get-advice-info): Change to a function.Richard M. Stallman2007-10-161-6/+9
| | | | | | | | | | | | (ad-get-advice-info-macro): New macro, like old ad-get-advice-info. (ad-is-advised, ad-get-advice-info-field) (ad-set-advice-info-field): Use ad-get-advice-info-macro.
* | (documentation): Advice deleted. Doc for advised functionsRichard M. Stallman2007-10-141-31/+4
| | | | | | | | | | | | | | | | | | | | 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.
* | Johan Bockg� <bojohan at dd.chalmers.se>Glenn Morris2007-09-051-1/+3
| | | | | | | | (ad-make-advised-docstring): Highlight note in doc string.
* | (ad-interactive-form): Re-introduce.Stefan Monnier2007-07-281-2/+10
| | | | | | | | (ad-body-forms, ad-advised-interactive-form): Revert this part of last change.
* | (ad-interactive-p, ad-interactive-form): Remove.Stefan Monnier2007-07-261-29/+12
| | | | | | | | | | | | (ad-body-forms, ad-advised-interactive-form, ad-make-cache-id) (ad-make-advised-definition, ad-cache-id-verification-code): Use commandp and interactive-form instead.
* | 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
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
| * (defadvice): Doc fix.Juanma Barranquero2007-07-161-1/+1
| |
* | (defadvice): Doc fix.David Kastrup2007-07-141-1/+1
| |
* | (ad-special-forms): Remove.Stefan Monnier2007-05-081-17/+5
|/ | | | (ad-special-form-p): Use subr-arity.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-071-1/+1
|
* (ad-remove-advice, ad-parse-arglist, ad-make-mapped-call):Juanma Barranquero2006-10-051-3/+3
| | | | Use `let', not `let*'.
* (ad-enable-advice, ad-activate, ad-disable-advice): Add autoloads.Richard M. Stallman2006-05-251-0/+3
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (ad-make-advised-definition): Fix arg-order.Stefan Monnier2005-10-241-3/+4
| | | | (defadvice): Add `doc-string' declaration.
* 2005-09-24 Emilio C. Lopes <eclig@gmx.net>Romain Francoise2005-09-241-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * woman.el (woman-file-name): * wid-edit.el (widget-file-prompt-value) (widget-coding-system-prompt-value): * w32-fns.el (set-w32-system-coding-system): * vc.el (vc-version-diff, vc-annotate): * textmodes/reftex-auc.el (reftex-arg-cite) (reftex-arg-index-tag): * textmodes/refer.el (refer-get-bib-files): * textmodes/artist.el (artist-figlet-choose-font): * terminal.el (terminal-emulator): * replace.el (occur-read-primary-args): * rect.el (string-rectangle, string-insert-rectangle): * ps-print.el (ps-print-preprint): * progmodes/pascal.el (pascal-goto-defun): * progmodes/etags.el (visit-tags-table, visit-tags-table-buffer): * progmodes/compile.el (compilation-find-file): * printing.el (pr-interactive-n-up): * play/animate.el (animate-birthday-present): * net/rcompile.el (remote-compile): * man.el (man, Man-goto-section, Man-follow-manual-reference): * mail/rmailsum.el (rmail-summary-search-backward) (rmail-summary-search): * mail/rmailout.el (rmail-output-read-rmail-file-name) (rmail-output-read-file-name): * mail/rmail.el (rmail-search, rmail-search-backwards): * mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs): * locate.el (locate): * international/quail.el (quail-show-keyboard-layout): * international/mule.el (set-buffer-file-coding-system) (revert-buffer-with-coding-system, set-file-name-coding-system) (set-terminal-coding-system, set-keyboard-coding-system) (set-next-selection-coding-system): * international/mule-diag.el (describe-coding-system) (describe-font, describe-fontset): * international/mule-cmds.el (universal-coding-system-argument) (search-unencodable-char, describe-input-method) (set-language-environment, describe-language-environment): * international/codepage.el (codepage-setup): * international/code-pages.el (codepage-setup): * info.el (Info-search, Info-follow-reference) (Info-search-backward): * emacs-lisp/advice.el (ad-read-advised-function) (ad-read-advice-class, ad-clear-cache, ad-activate) (ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name) (ad-enable-advice, ad-disable-advice, ad-remove-advice) (ad-read-regexp): * ediff-util.el (ediff-toggle-regexp-match): * ediff-ptch.el (ediff-prompt-for-patch-file): * dired-aux.el (dired-diff): * diff.el (diff): * cus-edit.el (custom-variable-prompt): * calendar/timeclock.el (timeclock-ask-for-project): * calc/calcalg3.el (calc-get-fit-variables): * calc/calc-store.el (calc-edit-variable) (calc-permanent-variable): * vc-mcvs.el (vc-mcvs-register): * shadowfile.el (shadow-define-literal-group): * woman.el (woman-file-name): * vc.el (vc-version-diff, vc-merge): * textmodes/reftex-index.el (reftex-index-complete-tag): * format.el (format-decode-buffer, format-decode-region): * emulation/viper-cmd.el (viper-read-string-with-history): * emacs-lisp/debug.el (cancel-debug-on-entry): * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * ediff.el (ediff-merge-revisions) (ediff-merge-revisions-with-ancestor, ediff-revision): * completion.el (interactive-completion-string-reader): * calc/calc-prog.el (calc-user-define-formula): Follow convention for reading with the minibuffer.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* * emacs-lisp/advice.el: Replace `legal' with `valid'.Werner LEMBERG2005-03-251-7/+7
|
* (ad-make-advised-definition): Use called-interactively-p.Richard M. Stallman2004-11-021-1/+1
|