Commit graph

414 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
4b83f9525c Rename up-* files to use-package-* for consistency 2017-12-04 21:21:54 +00:00
John Wiegley
d5feff862a Split key binding functionality out into its own file 2017-12-04 11:55:35 -08:00
John Wiegley
d771e8d719 Please the byte-compiler 2017-12-04 11:53:52 -08:00
John Wiegley
ac906479a7 Normalize some whitespace and ordering in new code 2017-12-04 09:31:13 -08:00
Justin Talbott
5d9c854a6c Add use-package-chords and use-package-ensure-system-package
Also update docs on usage

connect to https://github.com/jwiegley/use-package/issues/516
2017-12-04 10:57:23 -05:00
John Wiegley
7c95d0a0e0 Move optional jumping functionality to its own module 2017-12-03 13:13:30 -08:00
John Wiegley
fff47a1331 Break out ensure/diminish/delight into their own support files 2017-12-03 11:54:19 -08:00
John Wiegley
cdbb2cbe97 Move the use-package-keywords defcustom to the top of the file 2017-12-03 11:44:56 -08:00
John Wiegley
0c148eb777 Move functions around for better logical grouping 2017-12-03 11:43:16 -08:00
John Wiegley
149c4878fc Change most use-package-- prefixes to just use-package- 2017-12-03 10:58:06 -08:00
John Wiegley
d5c1fdf4e8 Remove a local variable binding 2017-12-03 10:57:55 -08:00
John Wiegley
223c321a1d Always catch errors during configuration 2017-12-03 10:57:42 -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
Radon Rosborough
a9429350d5 Fix `use-package-ensure-function' docstring typo 2017-12-02 11:48:12 -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
9e8e9aa4ee Remove some debug code that crept in 2017-12-01 11:17:34 -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
6954c3f582 Don't factor out a volatile variable
Possibly fixes https://github.com/jwiegley/use-package/issues/527
2017-12-01 01:36:36 -08:00
John Wiegley
88f8c1bb8f Generate :defines and :functions correctly
So they actually inhibit byte-compilation warnings as they were meant to.
2017-12-01 01:05:16 -08:00