summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/advice.el
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* (ad-subr-arglist): Undo part of last patch.Stefan Monnier2004-03-231-1/+4
|
* (ad-subr-arglist): Simplify.Stefan Monnier2004-03-221-24/+23
|
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (ad-make-advised-docstring): Adjust usage for new help-add-fundoc-usage.Stefan Monnier2003-05-061-1/+1
|
* (ad-get-enabled-advices, ad-special-forms)Stefan Monnier2003-05-041-31/+24
| | | | | (ad-arglist, ad-subr-arglist): Use push and match-string. (ad-make-advised-docstring): Extract & reinsert the usage info.
* (ad-compile-function): Disable cl-function warnings if cl is loaded.Richard M. Stallman2002-07-071-1/+8
|
* (documentation): Add ad-define-subr-args call.Richard M. Stallman2002-04-301-0/+4
|
* (ad-compile-function):Richard M. Stallman2001-12-111-1/+4
| | | | Byte compile the function under another (uninterned) name.
* Converted backquote to the new style.Sam Steingold2001-11-271-255/+254
|
* (ad-make-advised-definition): If theGerd Moellmann2001-07-091-2/+6
| | | | | | original definition has an interactive form, but is Elp instrumented, use the interactive form of the function called by elp-wrapper.
* (ad-make-advised-definition): ConstructGerd Moellmann2001-04-101-9/+9
| | | | advice for subrs differently.
* (ad-make-advised-definition): CallGerd Moellmann2001-03-291-7/+2
| | | | interactive-form to obtain the interactive spec of subrs.
* (ad-special-forms): Correct the conditional inclusion of `track-mouse'.Miles Bader2000-11-211-1/+1
|
* (ad-advice-class-completion-table)Stefan Monnier2000-06-121-3/+3
| | | | (ad-make-freeze-definition): Don't quote lambda.
* Fix last change.Dave Love1999-11-261-1/+1
|
* Many doc fixes.Richard M. Stallman1999-11-261-15/+25
|
* (ad-activate-on): Make it an alias for ad-activate.Gerd Moellmann1999-10-301-0/+2
|
* Doc fixes.Dave Love1999-10-271-225/+215
| | | | | (ad-lemacs-p): Removed. (advice): Add :link to defgroup.
* (ad-activate-internal): Renamed fromGerd Moellmann1999-10-261-31/+31
| | | | | | | | | ad-activate. All callers changed, including those in data.c. (ad-activate-internal-off): Renamed from ad-activate-off. All uses changed. (ad-activate): Renamed from ad-activate-on. All uses changed. (ad-start-advice, ad-stop-advice, ad-recover-normality): Alter the definition of ad-activate-internal, not ad-activate.
* (ad-special-forms): Use track-mouse iff bound.Karl Heuer1999-08-141-7/+10
|
* (ad-make-single-advice-docstring): Treat case with no doctring specially.Dave Love1999-08-101-4/+8
|
* Comment fix.Karl Heuer1999-06-221-1/+1
|
* (ad-special-forms): Add save-current-bufferAndreas Schwab1998-12-281-5/+5
| | | | and track-mouse.
* (ad-redefinition-action,Andreas Schwab1998-06-241-3/+4
| | | | ad-default-compilation-action): Use `other' widget type.
* (ad-handle-definition, defadvice): Fix error messages.Richard M. Stallman1998-05-141-5/+5
|
* Customized.Stephen Eglen1998-04-051-4/+15
|
* Update FSF's address.Erik Naggum1996-01-141-2/+3
|
* Comment change.Richard M. Stallman1995-03-161-1/+1
|
* (ad-subr-arglist): Adapted to new DOC file format.Richard M. Stallman1994-08-051-7/+16
|
* New handling of automatic advice activation thatRichard M. Stallman1994-08-041-594/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exploits modified built-in versions of `fset' and `defalias' which take care of this functionality directly: (ad-start-advice-on-load, ad-activate-on-definition) (ad-definition-hooks, ad-enable-definition-hooks, ad-defined-function) (ad-advised-definers, ad-advised-byte-compilers, byte-constant) (byte-constant-limit, byte-constant2, byte-fset) (ad-byte-code-fset-regexp): Variables deleted. (ad-activate-defined-function, ad-find-fset-in-byte-code) (ad-scan-byte-code-for-fsets, ad-advised-byte-code) (ad-recover-byte-code, ad-enable-definition-hooks) (ad-disable-definition-hooks): Functions deleted. (defun, defmacro, fset, defalias, define-function) (byte-compile-from-buffer, byte-compile-top-level): Removed `defadvice' for these functions. (ad-save-real-definitions): Removed saving of `byte-code'. (ad-activate-off): New dummy function. (ad-activate-on): New name for `ad-activate'. All calls changed. (ad-with-auto-activation-disabled): New macro prevents automatic advice activation. (ad-safe-fset): New function, used instead of `ad-real-fset'. (ad-compile-function): Disable automatic advice activation while compiling, because `byte-compile' uses `fset'. (ad-activate-on): Renamed from `ad-activate'. Avoid recursive calls. (ad-activate-on-top-level): New variable. (ad-start-advice, ad-stop-advice, ad-recover-normality): Modified to achieve de/activation of automatic advice activation by setting the definition of `ad-activate' to `ad-activate-on' or `ad-activate-off'. (ad-start-advice): Is now called unconditionally when Advice is loaded. Made compilation behavior of advised definitions customizable, since loading the byte-compiler takes some time and is not always worth the cost, e.g., if one only wants to make a few simple modifications: (ad-default-compilation-action): New variable which specifies whether to compile an advised definition in case the COMPILE argument to `ad-activate-on' or one of its friends was supplied as nil. (ad-preactivate-advice): Supply negative COMPILE argument to prevent compilation. (ad-should-compile): New function. (ad-activate-advised-definition): Use `ad-should-compile' to determine whether an advised definition should get compiled. (ad-activate-on, ad-update, ad-activate-regexp, ad-update-regexp) (ad-activate-all): Doc fixes. (ad-update): Leave handling of COMPILE up to `ad-activate-on'. Extracted construction of freeze-advices from `defadvice': (ad-make-freeze-definition): New function. (defadvice): Use `ad-make-freeze-definition' to construct frozen defs.
* (byte-compile-from-buffer, byte-compile-top-level):Richard M. Stallman1994-02-251-108/+28
| | | | | | | | | | Removed advice. Byte-compilation problem is now taken care of directly by the compiler. (ad-advised-byte-compilers): Removed. (ad-enable-definition-hooks, ad-disable-definition-hooks): Removed activation of the advised byte-compiler entry points. (ad-lemacs-p): Removed variable. (ad-lemacs-p): New macro for compile-time conditionalization.
* Removed all support for Emacs-18:Richard M. Stallman1994-02-231-479/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed autoload for `backquote'. Removed arglist specifications for `documentation' and `fset'. (ad-emacs19-p, ad-use-jwz-compiler): Removed these variables. (ad-lemacs-p, ad-v19-compiled-p, ad-subr-arglist, ad-make-advised-docstring): Removed reference to `ad-emacs19-p'. (ad-compiled-p): Renamed from `ad-v19-compiled-p'. Removed old definition of `ad-compiled-p'. (ad-compiled-code): Renamed from `ad-v19-compiled-code'. (ad-arglists, ad-docstring, ad-interactive-form): Use new names. (ad-body-forms): Always return nil for compiled definitions. (ad-compile-function): Simplified, because the v19 incarnation of `byte-compile' can compile macros. (ad-real-byte-codify): Removed. (ad-execute-defadvices): Removed. The `defadvice's it contained are now at the top level. (ad-advised-byte-code-definition): Renamed to `ad-advised-byte-code' and removed the definition of `ad-advised-byte-code' via `fset'. (ad-advised-byte-code-definition, ad-recover-byte-code, ad-stop-advice, ad-recover-normality): Removed `ad-real-byte-codify'-cation of their definitions. (ad-adjust-stack-sizes): Removed. (ad-enable-definition-hooks, ad-disable-definition-hooks): Removed v19 conditionalization. Fixed the problematic interaction between the byte-compiler and Advice when `ad-activate-on-definition' was t which resulted in erroneous compilation of nested `defun/defmacro's: (byte-compile-from-buffer, byte-compile-top-level): Advised to temporarily deactivate the advice of `defun/defmacro'. (ad-advised-definers, ad-advised-byte-compilers): New variables. (ad-enable-definition-hooks, ad-disable-definition-hooks): En/disable the advised byte-compiler entry points. (defadvice): Implement a `freeze' option which expands the `defadvice' into a redefining and dumpable `defun/defmacro' whose documentation can be written to the `DOC' file. Frozen advices cannot be undone, hence, they do not need any Advice runtime support. (ad-defadvice-flags): Add `freeze' flag. (ad-make-advised-docstring, ad-make-single-advice-docstring): New STYLE option for `plain' and `freeze' styles. Slightly changed the default formatting of advised docstrings. (ad-make-plain-docstring, ad-make-freeze-docstring): New functions. (ad-recover-all, ad-scan-byte-code-for-fsets): Removed unused condition variable `ignore-errors'. (ad-save-real-definition): New macro to save real definitions of functions used by Advice. Use `ad-save-real-definition' to save definitions of `fset', `byte-code' and now also `documentation'. (ad-subr-arglist, ad-docstring, ad-make-advised-docstring): Use `ad-real-documentation' to avoid interference with the advised version of `documentation'. (ad-execute-defadvices): Copy advice infos. (ad-start-advice-on-load): Default changed to t.
* (ad-execute-defadvices): Don't allocate advice-infos in pure space, in case weKarl Heuer1994-02-021-1/+6
| | | | want to preload this file.
* Comment change.Richard M. Stallman1993-11-231-1/+1
|
* Comment change.Richard M. Stallman1993-11-231-1/+1
|
* Doc fix.Brian Fox1993-10-051-1/+1
|
* (ad-start-advice-on-load): Initialize to t.Roland McGrath1993-07-161-1/+1
|
* Initial revisionRoland McGrath1993-07-161-0/+4329