[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit Compiler warnings



In zwei in System 79.8, ZMail 40.7, Remote-File 2.0, LMFILE-Remote 5.0,
microcode 849, on Lisp Machine Six:


If you have a function defining macro, which expands into a defun, like:

	  (DEFMACRO DEFSPRITE (NAME ARGS &REST BODY)
	    `(DEFUN (,NAME SPRITE-FUNCTION)
		    (CAULDRON NEW-FORM . ,ARGS)
	       . ,BODY))
		       
   and then somewhere have a definition using that macro, such as:

	  (DEFSPRITE RULE (PATTERN &REST CONSEQUENTS)
	    (LET ((BINDINGS (MATCH? PATTERN NEW-FORM
				    (VAR-BIND '?THIS-FACT NEW-FORM
					      (LOCAL-VARS CAULDRON)))))
	      (AND BINDINGS
		   (ADD-ASSERTIONS CAULDRON
				   (MAPCAR #'VAR-SUBST
					   CONSEQUENTS
					   (CIRCULAR-LIST BINDINGS))))))

If the compilation of the above produces some error, M-X Edit Compiler Warnings
cannot find the "defsprite" because it is look for the DEFUN of
	(PROPERTY RULE SPELL-FUNCTION) which is how it what it expanded into-

How can I tell ZWEI or whatever mechanism is used to look for things the right
way?