Browse Source

Check fboundp on evaluating

And not when expanding macro
pull/15/head
10sr 9 years ago
parent
commit
8ebfaae03d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      emacs.el

+ 2
- 3
emacs.el View File

@@ -59,8 +59,8 @@ found, otherwise returns nil."
`(progn `(progn
(when (locate-library ,libname) (when (locate-library ,libname)
,@(mapcar (lambda (f) ,@(mapcar (lambda (f)
(unless (fboundp f)
`(progn
`(unless (fboundp ',f)
(progn
(message "Autoloaded function `%S' defined (%s)" (message "Autoloaded function `%S' defined (%s)"
(quote ,f) (quote ,f)
,libpath) ,libpath)
@@ -76,7 +76,6 @@ found, otherwise returns nil."
(quote (progn (quote (progn
,@body))) ,@body)))
(locate-library ,libname)))) (locate-library ,libname))))

(put 'autoload-eval-lazily 'lisp-indent-function 2) (put 'autoload-eval-lazily 'lisp-indent-function 2)


(when (autoload-eval-lazily 'tetris nil (when (autoload-eval-lazily 'tetris nil


Loading…
Cancel
Save