branch: externals/leaf
commit edb220a17ba2f050fc58525d2d13865117b11326
Author: Naoya Yamashita <con...@gmail.com>
Commit: Naoya Yamashita <con...@gmail.com>

    use eval-after-load for old Emacs<=24.3
---
 leaf.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/leaf.el b/leaf.el
index 46c2398..21ac969 100644
--- a/leaf.el
+++ b/leaf.el
@@ -730,9 +730,10 @@ see `alist-get'."
 
 ;;;; find-function
 
-(with-eval-after-load 'find-func
-  (defvar find-function-regexp-alist)
-  (add-to-list 'find-function-regexp-alist '(leaf . leaf-find-regexp)))
+(eval-after-load 'find-func
+  (lambda ()
+    (defvar find-function-regexp-alist)
+    (add-to-list 'find-function-regexp-alist '(leaf . leaf-find-regexp))))
 
 (defun leaf-find (name)
   "Find the leaf block of NAME."

Reply via email to