Mercurial > hg > xemacs-beta
diff lisp/utils/advice.el @ 169:15872534500d r20-3b11
Import from CVS: tag r20-3b11
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:46:53 +0200 |
| parents | ac2d302a0011 |
| children |
line wrap: on
line diff
--- a/lisp/utils/advice.el Mon Aug 13 09:45:48 2007 +0200 +++ b/lisp/utils/advice.el Mon Aug 13 09:46:53 2007 +0200 @@ -2608,7 +2608,10 @@ ;;"Returns the interactive form of DEFINITION." (cond ((ad-compiled-p definition) (and (commandp definition) - (list 'interactive (aref (ad-compiled-code definition) 5)))) + ;; XEmacs: we have an accessor function so don't use aref. + (if (fboundp 'compiled-function-interactive) + (compiled-function-interactive (ad-compiled-code definition)) + (list 'interactive (aref (ad-compiled-code definition) 5))))) ((or (ad-advice-p definition) (ad-lambda-p definition)) (commandp (ad-lambda-expression definition)))))
