Browse Source

show message on autoload defined

pull/1/head
10sr 12 years ago
parent
commit
5fa25097db
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      emacs.el

+ 6
- 2
emacs.el View File

@@ -104,13 +104,17 @@ found, otherwise returns nil."
(and libpath (and libpath
`(progn `(progn
,@(mapcar (lambda (f) ,@(mapcar (lambda (f)
(or (fboundp f)
(unless (fboundp f)
(progn
(message "Autoloaded function `%S' defined (%s)"
f
libpath)
`(autoload (quote ,f) `(autoload (quote ,f)
,libname ,libname
,(concat "Autoloaded function defined in \"" ,(concat "Autoloaded function defined in \""
libpath libpath
"\".") "\".")
t)))
t))))
(or (eval functions) (or (eval functions)
`(,(eval feature)))) `(,(eval feature))))
(eval-after-load ,feature (eval-after-load ,feature


Loading…
Cancel
Save