Browse Source

do not autoload function if it is already available

pull/1/head
10sr 11 years ago
parent
commit
918df6e6df
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      emacs.el

+ 9
- 8
emacs.el View File

@@ -84,17 +84,18 @@ found, otherwise returns nil."
(and libpath
`(progn
,@(mapcar (lambda (f)
`(autoload (quote ,f)
,libname
,(concat "Autoloaded function defined in \""
libpath
"\".")
t))
(or (fboundp f)
`(autoload (quote ,f)
,libname
,(concat "Autoloaded function defined in \""
libpath
"\".")
t)))
(or (eval functions)
`(,(eval feature))))
(eval-after-load ,feature
`(progn
,@body))
(quote (progn
,@body)))
,libpath))))
(put 'lazy-load-eval 'lisp-indent-function 2)



Loading…
Cancel
Save