1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

613 commits

Author SHA1 Message Date
Alex Branham
4c3abcf4eb Fix byte compiler warnings 2018-01-27 10:19:42 -06:00
Alex Branham
88bcb8b96d Use lexical bindings and remove cl package 2018-01-27 10:01:10 -06:00
John Wiegley
fd8a3510fd Merge pull request from jabranham/system-packages-update
System packages update
GitHub-reference: https://github.com/jwiegley/use-package/issues/616
2018-01-27 00:46:16 -08:00
Alex Branham
b7252f8e63 lexical binding 2018-01-26 22:37:47 -06:00
Alex Branham
46ee100327 Prefer non-obsolete var names 2018-01-26 22:37:31 -06:00
John Wiegley
567df21f26 Merge pull request from jabranham/fix-byte-compiler
Prefer org-table-align to orgtbl-ctrl-c-ctrl-c
GitHub-reference: https://github.com/jwiegley/use-package/issues/611
2018-01-08 17:54:04 -08:00
Alex Branham
8a6430835f Prefer org-table-align to orgtbl-ctrl-c-ctrl-c
org-table-align is an autoloaded function so the byte compiler can
find it. orgtbl-ctrl-c-ctrl-c isn't so we get a warning about
undefined functions.
2018-01-08 19:21:46 -06:00
John Wiegley
13a9e339f2 Merge pull request from justbur/elisp-cap
Handle automatic macro expansion by elisp-completion-at-point
GitHub-reference: https://github.com/jwiegley/use-package/issues/599
2017-12-26 11:04:41 -08:00
John Wiegley
44cb99fcc7 Merge pull request from nickmccurdy/render-report-table
Render the use-package-report table using Org
GitHub-reference: https://github.com/jwiegley/use-package/issues/592
2017-12-26 11:04:13 -08:00
wouter bolsterlee
1fdfd46fb2 Fix sanity check for correct :custom-face format
Instead of testing the length of each form passed to :custom-face,
the sanity check would test the number of forms passed to :custom-face,
causing it to fail when more than 2 face customisations are used.

Fixes https://github.com/jwiegley/use-package/issues/600.

Copyright-paperwork-exempt: yes
2017-12-20 08:31:56 +01:00
Justin Burkett
9638870f53 Handle automatic macro expansion by elisp-completion-at-point
The function `elisp--local-variables' inserts an unbound variable,
`elisp--witness--lisp', into macro forms to determine the locally bound
variables for `elisp-completion-at-point'. It ends up throwing a lot of errors
since it can occupy the position of a keyword (or look like a second argument to
a keyword that takes one). Deleting it when it's at the top level should be
harmless since there should be no locally bound variables to discover here
anyway.
2017-12-19 22:30:59 -05:00
John Wiegley
13fb5f4f2e Guard a call to display-warning with ignore
Fixes https://github.com/jwiegley/use-package/issues/589
2017-12-17 00:35:01 -08:00
Nick McCurdy
cb15dffbd7 Render the use-package-report table using Org
I noticed that the "Gathering Statistics" instructions for rendering the Org
table could be automated for convenience. Now the table is reformatted
automatically, and you can still manually sort it. I'm not sorting it by default
to maintain the same order of use-package forms for easier troubleshooting.
2017-12-16 14:54:08 -05:00
John Wiegley
2d226310f1 All the second argument in use-package-defaults lists to be a function
Address the question raised in https://github.com/jwiegley/use-package/issues/591
2017-12-15 22:48:42 -08:00
John Wiegley
51eceb4238 Add a test related to
GitHub-reference: https://github.com/jwiegley/use-package/issues/589
2017-12-13 17:03:05 -08:00
John Wiegley
31fa2f24a1 Add more tests related to issue
GitHub-reference: https://github.com/jwiegley/use-package/issues/572
2017-12-13 17:02:55 -08:00
John Wiegley
4aa9b0cd6a Minor simplification of a function 2017-12-10 21:36:41 -08:00
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
5a02d61ac6 Start building a use-package linter in use-package-lint.el 2017-12-08 00:44:29 -08:00
John Wiegley
7e458c640c use-package-normalize/:disabled has the wrong number of arguments 2017-12-08 00:28:14 -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
e6c54b54ab Add further note to NEWS.md 2017-12-07 15:50:07 -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
8cf7b17dae Clarify a note in NEWS.md 2017-12-07 13:22:57 -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
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