defdefiner

Macro

Package: common-graphics

Arguments: new-definer standard-definer

The IDE's find-definition facility (see the description of the Definitions dialog) finds definitions in source code. The facility knows about standard defining macros such as defun, defvar, defgeneric, defmacro, etc. (they are listed below) but developers may define their own macros for defining things in their application and those defining forms will not, in the default, be found with the find-definition facility.

This macro enables the IDE's find-definitions facility to find the location within a source code file of definitions that are defined by an application's custom definer macros.

new-definer is an unevaluated symbol naming a custom definer such as my-defun. standard-definer may be any of the following unevaluated symbols if the new definer is based on that standard definer:

For example, if an application uses code such as the following:

(defmacro my-defun (name varlist &rest body)
   (format t "~&New definition for ~s!~%" name)
   `(defun ,name ,varlist ,@body))

(my-defun foo (a b)
  (+ a b))

Then if the following top-level form is included in the application source code, then Find Defintions in the IDE will be able to find the definition of foo within its source code file (or anything else defined with a my-defun form). The #-runtime-system reader macro prevents this form from being read in a standalone executable, where the IDE is not present.

#-runtime-system (defdefiner my-defun defun)


Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.