Commit graph

585 commits

Author SHA1 Message Date
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
80e8a599b4 Introduce new customization variable `use-package-merge-key-alist' 2017-12-07 13:13:49 -08:00
John Wiegley
96ecfab9e4 Use cl-gentemp in another place
This avoids "Variable unknown" errors if a byte-compiled init.elc happening to
encounter an error while evaluating an :init or :config block.
2017-12-06 22:52:34 -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
71fc224961 Add documentation for `use-package-report' 2017-12-06 11:53:21 -08:00
John Wiegley
beee6b8d4d use-package-defaults predicate must also receive the package name 2017-12-06 10:51:24 -08:00
John Wiegley
75428f870d Remove Package-Requires for diminish and delight, as these are optional 2017-12-06 10:45:34 -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
b001edf162 Add missing autoload cookie, and make lack of a normalizer an error
Fixes https://github.com/jwiegley/use-package/issues/566
2017-12-06 10:20:51 -08:00
John Wiegley
ce36e68817 Don't compute the verbose debug text unless it's requested 2017-12-06 09:37:00 -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
2a85d81c47 Add support for gathering statistics on use-package declarations 2017-12-06 08:27:31 -08:00
John Wiegley
894e95aa4b Respect keyword ordering in use-package-deferring-keywords
Relates to https://github.com/jwiegley/use-package/issues/565
2017-12-06 06:37:07 -08:00
John Wiegley
0939993935 Clarify :config with setq versus :custom
Fixes https://github.com/jwiegley/use-package/issues/564
2017-12-06 06:22:52 -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
de12a5ae86 Several changes as suggested by flycheck 2017-12-05 16:13:03 -08: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
0c110ebd67 Allow `:load t' to mean the same as :load of the package name 2017-12-05 15:46:55 -08:00
John Wiegley
4882df8285 Whitespace change 2017-12-05 15:46:44 -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
b5a0cd4f30 Add note in NEWS.md about :requires vs. :if 2017-12-05 13:33:11 -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
725d749b7c Normalize errors should be errors, that are then caught by :catch 2017-12-05 13:11:17 -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
10fd4577d0 Add missing autoload cookies
Fixes https://github.com/jwiegley/use-package/issues/555
2017-12-05 10:29:51 -08:00
Radon Rosborough
f037c2daeb Fix function accidentally made interactive 2017-12-04 22:44:22 -08:00
John Wiegley
43f1be12b7 Use cl-gensym 2017-12-04 17:03:59 -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
afdf1c3638 Some Emacsen don't have gensym
Fixes https://github.com/jwiegley/use-package/issues/544
2017-12-04 16:42:56 -08:00
John Wiegley
2892c026f4 Add note in NEWS.md about :after and autoloaded keybindings 2017-12-04 16:36:56 -08:00
John Wiegley
277384d151 Add a note to bind-key on the usage of the KEYMAP argument
Fixes https://github.com/jwiegley/use-package/issues/542
2017-12-04 15:55:41 -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
e34fdb580a Add several missing comments 2017-12-04 15:24:31 -08:00
John Wiegley
6c836985b1 Swap the order of two definitions 2017-12-04 15:22:08 -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
f869036115 Merge branch 'split-bind-key' 2017-12-04 13:13:02 -08:00