diff options
| author | Stefan Monnier | 2004-03-29 00:48:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-03-29 00:48:07 +0000 |
| commit | a21aa1650a4a5ebd8ac6459328a810c837aa642e (patch) | |
| tree | 1b64394171dd64944b71d82a6f8441155a501940 | |
| parent | 6ca94f87ae5d3cd053c2f30f6bcbaa4c29bb152b (diff) | |
| download | emacs-a21aa1650a4a5ebd8ac6459328a810c837aa642e.tar.gz emacs-a21aa1650a4a5ebd8ac6459328a810c837aa642e.zip | |
(interactive-form): Delete. Now implemented in C.
| -rw-r--r-- | lisp/subr.el | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 2c39a8447cf..74809c678eb 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2274,28 +2274,6 @@ macros." | |||
| 2274 | (subrp object) (byte-code-function-p object) | 2274 | (subrp object) (byte-code-function-p object) |
| 2275 | (eq (car-safe object) 'lambda))) | 2275 | (eq (car-safe object) 'lambda))) |
| 2276 | 2276 | ||
| 2277 | (defun interactive-form (function) | ||
| 2278 | "Return the interactive form of FUNCTION. | ||
| 2279 | If function is a command (see `commandp'), value is a list of the form | ||
| 2280 | \(interactive SPEC). If function is not a command, return nil." | ||
| 2281 | (setq function (indirect-function function)) | ||
| 2282 | (when (commandp function) | ||
| 2283 | (cond ((byte-code-function-p function) | ||
| 2284 | (when (> (length function) 5) | ||
| 2285 | (let ((spec (aref function 5))) | ||
| 2286 | (if spec | ||
| 2287 | (list 'interactive spec) | ||
| 2288 | (list 'interactive))))) | ||
| 2289 | ((subrp function) | ||
| 2290 | (subr-interactive-form function)) | ||
| 2291 | ((eq (car-safe function) 'lambda) | ||
| 2292 | (setq function (cddr function)) | ||
| 2293 | (when (stringp (car function)) | ||
| 2294 | (setq function (cdr function))) | ||
| 2295 | (let ((form (car function))) | ||
| 2296 | (when (eq (car-safe form) 'interactive) | ||
| 2297 | (copy-sequence form))))))) | ||
| 2298 | |||
| 2299 | (defun assq-delete-all (key alist) | 2277 | (defun assq-delete-all (key alist) |
| 2300 | "Delete from ALIST all elements whose car is KEY. | 2278 | "Delete from ALIST all elements whose car is KEY. |
| 2301 | Return the modified alist. | 2279 | Return the modified alist. |