diff options
author | John Wiegley <johnw@newartisans.com> | 2017-12-05 15:47:53 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2017-12-05 15:47:53 -0800 |
commit | 3343cca33bd7b167cb01471be278bb9b5e6c910a (patch) | |
tree | 5f16a4822dce100dbfdd0472859fa7125e633cb4 /test/lisp/use-package/use-package-tests.el | |
parent | 2a9904b9e8793b66145723a13634d41edf49fed9 (diff) | |
download | emacs-3343cca33bd7b167cb01471be278bb9b5e6c910a.tar.gz emacs-3343cca33bd7b167cb01471be278bb9b5e6c910a.tar.bz2 emacs-3343cca33bd7b167cb01471be278bb9b5e6c910a.zip |
Don't auto-defer if the package itself was given to :load
Otherwise, we'd be senselessly waiting for the package to load.
Diffstat (limited to 'test/lisp/use-package/use-package-tests.el')
-rw-r--r-- | test/lisp/use-package/use-package-tests.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 1169de5147a..cbfb98da0c0 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el @@ -1044,6 +1044,27 @@ (ignore (add-hook 'hook-special #'fun)))))) +(ert-deftest use-package-test/:hook-5 () + (match-expansion + (use-package erefactor + :load-path "foo" + :after elisp-mode + :load t + :hook (emacs-lisp-mode + . (lambda () + (bind-key "\C-c\C-v" erefactor-map emacs-lisp-mode-map)))) + `(progn + (eval-and-compile + (add-to-list 'load-path ,(pred stringp))) + (eval-after-load 'elisp-mode + '(progn + (require 'erefactor nil nil) + (ignore + (add-hook + 'emacs-lisp-mode-hook + #'(lambda nil + (bind-key "" erefactor-map emacs-lisp-mode-map))))))))) + (ert-deftest use-package-test-normalize/:custom () (flet ((norm (&rest args) (apply #'use-package-normalize/:custom |