Article View: comp.emacs
Article #8235Is a GNUemacs function defined?
From: Robert Lupton
Date: Fri, 06 Jan 1989 01:24
Date: Fri, 06 Jan 1989 01:24
17 lines
993 bytes
993 bytes
If I want to find if a name is defined as a function how do I do it? Specifically, I have a package of utilities that define functions like malloc (to produce a template for mallocing stuff), fopen, ... and I want to put a line in my c-mode-hook that looks like (if (= malloc nil) (load-file "c-utils.elc")) but it doesn't work (and 'malloc doesn't work either). I don't want to use auto-load as I want to load on any of the functions in the file, and I don't want to wrap all the definitions in a defun and auto-load on that. Mail/News replies gratefully accepted. Robert (lupton@uhccux.uhcc.hawaii.edu)
Technical Details
Message-ID:
<2941@uhccux.uhcc.hawaii.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!nosc!humu!uhccux!luptonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!nosc!humu!uhccux!lupton From: lupton@uhccux.uhcc.hawaii.edu (Robert Lupton) Newsgroups: comp.emacs Subject: Is a GNUemacs function defined? Keywords: GNU lisp Message-ID: <2941@uhccux.uhcc.hawaii.edu> Date: 6 Jan 89 01:24:38 GMT Organization: University of Hawaii Lines: 16