Next: , Previous: , Up: Hemlock’s Lisp Environment   [Contents][Index]


14.5 Definition Editing

Hemlock provides commands for finding the definition of a function, macro, or command and placing the user at the definition in a buffer. This, of course, is implementation dependent, and if an implementation does not associate a source file with a routine, or if Hemlock cannot get at the information, then these commands do not work. If the Lisp system does not store an absolute pathname, independent of the machine on which the maintainer built the system, then users need a way of translating a source pathname to one that will be able to locate the source.

Function: add-definition-dir-translation dir1 dir2

This maps directory pathname dir1 to dir2. Successive invocations using the same dir1 push into a translation list. When Hemlock seeks a definition source file, and it has a translation, then it tries the translations in order. This is useful if your sources are on various machines, some of which may be down. When Hemlock tries to find a translation, it first looks for translations of longer directory pathnames, finding more specific translations before shorter, more general ones.

Function: delete-definition-dir-translation dir

This deletes the mapping of dir to all directories to which it has been mapped.


Next: Event Scheduling, Previous: Interface to the Error System, Up: Hemlock’s Lisp Environment   [Contents][Index]