diff options
| author | Stefan Monnier | 2012-11-09 17:20:47 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-09 17:20:47 -0500 |
| commit | 32e5c58ca969ec30d31520da52c9866cafa62927 (patch) | |
| tree | aab212d158443e5a04d5828b78a26eca4d5db88c /etc | |
| parent | da03ef8a9d38ef6f059aaeddb8c97dc7e76d3917 (diff) | |
| download | emacs-32e5c58ca969ec30d31520da52c9866cafa62927.tar.gz emacs-32e5c58ca969ec30d31520da52c9866cafa62927.zip | |
Provide new `defalias-fset-function' symbol property.
* src/lisp.h (AUTOLOADP): New macro.
* src/eval.c (Fautoload): Don't attach to loadhist, call Fdefalias instead.
* src/data.c (Ffset): Remove special ad-advice-info handling.
(Fdefalias): Handle autoload definitions and new Qdefalias_fset_function.
(Fsubr_arity): CSE.
(Finteractive_form): Simplify.
(Fquo): Don't insist on having at least 2 arguments.
(Qdefalias_fset_function): New var.
* lisp/emacs-lisp/advice.el (ad-set-advice-info): Set defalias-fset-function.
(ad--defalias-fset): New function.
(ad-safe-fset): Remove.
(ad-make-freeze-definition): Use cl-letf*.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -38,6 +38,9 @@ spurious warnings about an unused var. | |||
| 38 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' | 38 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' |
| 39 | text-property on the first char. | 39 | text-property on the first char. |
| 40 | 40 | ||
| 41 | ** The `defalias-fset-function' property lets you catch calls to defalias | ||
| 42 | and redirect them to your own function instead of `fset'. | ||
| 43 | |||
| 41 | * Changes in Emacs 24.4 on non-free operating systems | 44 | * Changes in Emacs 24.4 on non-free operating systems |
| 42 | 45 | ||
| 43 | 46 | ||