diff options
| author | Richard M. Stallman | 1997-04-12 19:13:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-12 19:13:07 +0000 |
| commit | a9a44ed170d462f5d634f3e1743dae0791bbb2b7 (patch) | |
| tree | 0c9aaccd238666e844bc052f7d3e4981b3bde123 | |
| parent | 5edc67d37403e0d156ad760c9a0aca9f9cf76661 (diff) | |
| download | emacs-a9a44ed170d462f5d634f3e1743dae0791bbb2b7.tar.gz emacs-a9a44ed170d462f5d634f3e1743dae0791bbb2b7.zip | |
(functionp): New function.
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index a498cea5b37..656f02a1b30 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -973,6 +973,12 @@ configuration." | |||
| 973 | (and (consp object) | 973 | (and (consp object) |
| 974 | (eq (car object) 'frame-configuration))) | 974 | (eq (car object) 'frame-configuration))) |
| 975 | 975 | ||
| 976 | (defun functionp (object) | ||
| 977 | "Non-nil of OBJECT is a type of object that can be called as a function." | ||
| 978 | (or (subrp object) (compiled-function-p object) | ||
| 979 | (eq (car-safe object) 'lambda) | ||
| 980 | (and (symbolp object) (fboundp object)))) | ||
| 981 | |||
| 976 | ;; now in fns.c | 982 | ;; now in fns.c |
| 977 | ;(defun nth (n list) | 983 | ;(defun nth (n list) |
| 978 | ; "Returns the Nth element of LIST. | 984 | ; "Returns the Nth element of LIST. |