Commit graph

115 commits

Author SHA1 Message Date
John Wiegley
a4d2e77961 bind-keys fixes related to
GitHub-reference: https://github.com/jwiegley/use-package/issues/482
2017-12-10 21:25:37 -08:00
John Wiegley
3850281f88 Add a clarifying test for
GitHub-reference: https://github.com/jwiegley/use-package/issues/482
2017-12-10 09:53:13 -08:00
John Wiegley
ec84ed0dfb Fix a scoping issues with multiple occurrences of :bind
Fixes https://github.com/jwiegley/use-package/issues/585
2017-12-09 16:29:11 -08:00
John Wiegley
0068501aa0 Remove several unnecessary calls to `ignore' 2017-12-07 22:40:48 -08:00
John Wiegley
ae0d243681 Add another :bind test 2017-12-07 22:04:24 -08:00
John Wiegley
4714380696 Add tests for two more issues 2017-12-07 15:06:08 -08:00
John Wiegley
93231ecbab Fix the tests 2017-12-07 13:23:36 -08:00
John Wiegley
8fefa49d39 Changes to the way auto-deferral is indicated
This change adds a new extension hook `use-package-autoloads/<KEYWORD>` for
specifying exactly which autoloads a keyword should imply. This is the proper
way to indicate autoloads, rather than adding to the `:commands` entry as was
done before.

Further, autoloading now must occur in order to cause implied deferred
loading; if :bind is used with only lambda forms, for example, this will not
cause deferred loading without `:defer t`.
2017-12-07 13:14:32 -08:00
John Wiegley
7803571280 Correctly fix the problem of unreferenced symbols after compilation
Fixes https://github.com/jwiegley/use-package/issues/571
2017-12-06 20:59:10 -08:00
John Wiegley
20694696b2 Revert "Pre-expand lexical-let, since otherwise it requires cl to be loaded"
This reverts commit 7cc17cee8f.
2017-12-07 04:53:10 +00:00
John Wiegley
7cc17cee8f Pre-expand lexical-let, since otherwise it requires cl to be loaded
Fixes https://github.com/jwiegley/use-package/issues/571
2017-12-06 16:56:25 -08:00
John Wiegley
9a6d8a4cf2 Add a comment as to why max-lisp-eval-depth is set in -tests.el 2017-12-06 10:31:47 -08:00
John Wiegley
e8a7ae1ea1 Add :bind test for a single cons cell
Relates to https://github.com/jwiegley/use-package/issues/566
2017-12-06 08:30:47 -08:00
John Wiegley
c272c6b56b Update some GPL version references
Fixes https://github.com/jwiegley/use-package/issues/563
2017-12-06 06:19:15 -08:00
John Wiegley
2cd3ebd5d5 Allow the expansion of :after (:or foo bar) to be byte-compiled 2017-12-06 06:02:28 +00:00
John Wiegley
b2b91af2e5 Make the expanded text for :after cleaner 2017-12-06 06:02:28 +00:00
John Wiegley
3343cca33b Don't auto-defer if the package itself was given to :load
Otherwise, we'd be senselessly waiting for the package to load.
2017-12-05 15:47:53 -08:00
John Wiegley
2a9904b9e8 Enable all tests on Travis 2017-12-05 15:47:41 -08:00
John Wiegley
7b8e94a61a Default running-on-travis to t 2017-12-05 14:51:44 -08:00
John Wiegley
5f13924885 Enable 4 tests that work when not run on Travis 2017-12-05 14:36:56 -08:00
John Wiegley
cdb250e766 For now, stub out test that breaks Travis 2017-12-05 14:34:15 -08:00
John Wiegley
7c3a6cd70b Stub some referenced variables, for Travis 2017-12-05 14:27:49 -08:00
John Wiegley
b25a305c58 Lower the priority of :if/:when/:unless in use-package-keywords
Fixes https://github.com/jwiegley/use-package/issues/560
2017-12-05 13:26:32 -08:00
John Wiegley
64ffdb6863 Enhance fix-expansion to take surrounding let bindings into account 2017-12-05 13:26:03 -08:00
John Wiegley
65caa3b423 Rewrite normalization of :bind and :bind*
Fixes https://github.com/jwiegley/use-package/issues/550
2017-12-05 13:11:30 -08:00
John Wiegley
0a628a2767 Avoid using pcase and many other macros in macro-expanded forms
This is related to https://github.com/jwiegley/use-package/issues/550
2017-12-05 11:10:16 -08:00
John Wiegley
a090961f10 Fix bad interaction between bind-keys* and the :package keyword
Fixes https://github.com/jwiegley/use-package/issues/558
2017-12-05 10:29:51 -08:00
John Wiegley
ee07e709ea Fix the case where :ensure is given no arguments
Fixes https://github.com/jwiegley/use-package/issues/543
2017-12-04 16:46:46 -08:00
John Wiegley
2790bfc006 Add a bind-key test 2017-12-04 15:43:10 -08:00
John Wiegley
62d33b2143 Support :ensure (pkg :pin archive)
Fixes https://github.com/jwiegley/use-package/issues/506
2017-12-04 15:39:31 -08:00
John Wiegley
6470eaf3d5 Fix an argument process problem with bind-key
Fixes https://github.com/jwiegley/use-package/issues/334
2017-12-04 15:21:41 -08:00
John Wiegley
a2ddc18065 Comment out two tests that break on Travis 2017-12-04 13:27:57 -08:00
John Wiegley
4b83f9525c Rename up-* files to use-package-* for consistency 2017-12-04 21:21:54 +00:00
John Wiegley
fff47a1331 Break out ensure/diminish/delight into their own support files 2017-12-03 11:54:19 -08:00
John Wiegley
22fb8f8c4b Disable a test that is not working on Travis 2017-12-03 11:43:53 -08:00
John Wiegley
3625b3f712 More variable renaming needed in the tests 2017-12-03 11:00:41 -08:00
John Wiegley
e5aa510d48 Separate out all tests, the better to identify which one failed 2017-12-03 10:49:33 -08:00
John Wiegley
4c1b82aed5 Define macroexpand-1 for older Emacsen 2017-12-03 10:33:12 -08:00
John Wiegley
9ab797cccd A great deal of internal reorganization and simplification
All handlers now address their own domain of work; :after has become safer;
keyword normalization is multi-stage process; setting use-package-verbose to
`debug' produces useful output in the *use-package* buffer in the case of load
time errors; use-package errors (even internal) won't stop Emacs from
starting (though a serious internal bug that errors out every use-package form
may stop anything from being configured!); and more.
2017-12-03 03:09:26 -08:00
John Wiegley
dee6b36286 If use-package-verbose is t, show loading times when :after is used 2017-12-01 13:39:05 -08:00
John Wiegley
af3b34b022 Remove the :defer-install keyword
This may reappear as its own add-on to use-package in the future. See https://github.com/jwiegley/use-package/issues/442.
2017-12-01 11:44:31 -08:00
John Wiegley
09be976c18 :demand should not override an explicit use of :after
Fixes https://github.com/jwiegley/use-package/issues/529
2017-12-01 11:30:11 -08:00
John Wiegley
cb846d188a Add tests for the last two keywords 2017-12-01 11:16:19 -08:00
John Wiegley
cd4790b3df Add many more tests 2017-12-01 11:07:08 -08:00
John Wiegley
f5b034154f Always wrap the expanded body from use-package in (progn) 2017-12-01 10:23:21 -08:00
John Wiegley
21b9b6551d Comment out :no-require test for now
It works on my machine, but not with what Travis runs.
2017-12-01 01:40:58 -08:00
John Wiegley
7f2eec9e65 Add many new tests 2017-12-01 01:33:01 -08:00
John Wiegley
dfd3194d80 Allow match-expansion to take multiple cases 2017-11-30 19:40:54 -08:00
John Wiegley
7a562f10cb Add test for use-package-test-normalize/:ensure 2017-11-30 18:37:27 -08:00
John Wiegley
9465b915a8 Add the missing plist-delete 2017-11-30 18:36:45 -08:00