diff options
| author | Richard M. Stallman | 1997-04-12 19:15:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-12 19:15:11 +0000 |
| commit | b5ca6f92e7535a1432e93d07c621e47990cb9eea (patch) | |
| tree | c45d84000ebf91fe6810286ca6abec48425942b7 | |
| parent | 9b267ebada375513f5c87319ac70f718b13203d7 (diff) | |
| download | emacs-b5ca6f92e7535a1432e93d07c621e47990cb9eea.tar.gz emacs-b5ca6f92e7535a1432e93d07c621e47990cb9eea.zip | |
(elp-functionp): Definitions deleted; use functionp.
| -rw-r--r-- | lisp/emacs-lisp/elp.el | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index 52084311124..d6bac0697a6 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el | |||
| @@ -206,22 +206,6 @@ This variable is set by the master function.") | |||
| 206 | (defvar elp-master nil | 206 | (defvar elp-master nil |
| 207 | "Master function symbol.") | 207 | "Master function symbol.") |
| 208 | 208 | ||
| 209 | |||
| 210 | ;; Emacs/XEmacs compatibility. | ||
| 211 | (if (fboundp 'functionp) | ||
| 212 | (defalias 'elp-functionp 'functionp) | ||
| 213 | ;; Lift XEmacs 19.13's functionp from subr.el | ||
| 214 | (defun elp-functionp (obj) | ||
| 215 | "Returns t if OBJ is a function, nil otherwise." | ||
| 216 | (cond | ||
| 217 | ((symbolp obj) (fboundp obj)) | ||
| 218 | ((subrp obj)) | ||
| 219 | ((compiled-function-p obj)) | ||
| 220 | ((consp obj) | ||
| 221 | (if (eq (car obj) 'lambda) (listp (car (cdr obj))))) | ||
| 222 | (t nil)))) | ||
| 223 | |||
| 224 | |||
| 225 | ;;;###autoload | 209 | ;;;###autoload |
| 226 | (defun elp-instrument-function (funsym) | 210 | (defun elp-instrument-function (funsym) |
| 227 | "Instrument FUNSYM for profiling. | 211 | "Instrument FUNSYM for profiling. |
| @@ -321,7 +305,7 @@ Argument FUNSYM is the symbol of a defined function." | |||
| 321 | ;; we don't want to destroy the new definition. can it ever be | 305 | ;; we don't want to destroy the new definition. can it ever be |
| 322 | ;; the case that a lisp function can be compiled instrumented? | 306 | ;; the case that a lisp function can be compiled instrumented? |
| 323 | (and info | 307 | (and info |
| 324 | (elp-functionp funsym) | 308 | (functionp funsym) |
| 325 | (not (compiled-function-p (symbol-function funsym))) | 309 | (not (compiled-function-p (symbol-function funsym))) |
| 326 | (assq 'elp-wrapper (symbol-function funsym)) | 310 | (assq 'elp-wrapper (symbol-function funsym)) |
| 327 | (fset funsym (aref info 2))))) | 311 | (fset funsym (aref info 2))))) |