瀏覽代碼

form -> body

pull/1/head
10sr 11 年之前
父節點
當前提交
cc3fef1451
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. +3
    -4
      emacs.el

+ 3
- 4
emacs.el 查看文件

@@ -72,10 +72,10 @@ otherwise the path where the library installed."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; autoload

(defmacro lazy-load-eval (feature &optional functions &rest form)
(defmacro lazy-load-eval (feature &optional functions &rest body)
"Define FUNCTIONS to autoload from FEATURE.
FEATURE is a symbol. FUNCTIONS is a list of symbols. If FUNCTIONS is nil,
the function same as FEATURE is defined as autoloaded function. FORM is passed
the function same as FEATURE is defined as autoloaded function. BODY is passed
to `eval-after-load'.
When this macro is evaluated, this returns the path to library if FEATURE
found, otherwise returns nil."
@@ -93,9 +93,8 @@ found, otherwise returns nil."
`(,(eval feature))))
(eval-after-load ,feature
'(progn
,@form))
,@body))
,libpath)))

(put 'lazy-load-eval 'lisp-indent-function 2)

;; (macroexpand '(f-autoload 'autosave '(a-f b-f) (message "1") (message "2")))


Loading…
取消
儲存