aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/use-package/use-package-tests.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
index 3db6f19e901..64f5ab534d3 100644
--- a/test/lisp/use-package/use-package-tests.el
+++ b/test/lisp/use-package/use-package-tests.el
@@ -928,7 +928,25 @@
928 (load "foo" nil t)))) 928 (load "foo" nil t))))
929 (require 'foo nil 'nil) 929 (require 'foo nil 'nil)
930 (config) 930 (config)
931 t)))) 931 t)))
932
933 ;; #529 - :demand should not override an explicit use of :after
934 (match-expansion
935 (use-package foo :demand t :after bar)
936 `(progn
937 (eval-after-load 'bar
938 '(require 'foo nil t))))
939
940 (let ((byte-compile-current-file t))
941 (match-expansion
942 (use-package foo :demand t :after bar)
943 `(progn
944 (eval-and-compile
945 (eval-when-compile
946 (with-demoted-errors "Cannot load foo: %S" nil
947 (load "foo" nil t))))
948 (eval-after-load 'bar
949 '(require 'foo nil t))))))
932 950
933(ert-deftest use-package-test/:config () 951(ert-deftest use-package-test/:config ()
934 (match-expansion 952 (match-expansion