[slime-devel] define-minor-mode autoload problem

(require 'slime) error message: "Autoloading failed to define define-minor-mode" I needed this change on xemacs win32 native, because define-minor-mode is already fboundp: autoloaded. (eval-and-compile (require 'cl) (require 'easy-mmode) ;(unless (fboundp 'define-minor-mode) (defalias 'define-minor-mode 'easy-mmode-define-minor-mode));) (May be a FAQ) How to detect in elisp if the function is autoloaded? I this is bogus I have to do (require 'easy-mmode) (defalias 'define-minor-mode 'easy-mmode-define-minor-mode) in my .emacs -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/

Reini Urban wrote: [...]
(May be a FAQ) How to detect in elisp if the function is autoloaded?
(eq (car-safe (symbol-function 'autoloaded-function)) 'autoload) I think. -- Lawrence Mitchell <wence@gmx.li>
participants (2)
-
Lawrence Mitchell
-
Reini Urban