Justin Burkett
c980371f6f
Correct prefix keys after use-package-autoload-keymap
...
By adding events of the form (cons t event) to unread-command-events, Emacs
correctly updates this-command-keys for the subsequent use of the prefix.
Before this change, packages like my which-key were not getting the correct
prefix after use-package-autoload-keymap loaded the relevant package.
See https://github.com/justbur/emacs-which-key/issues/192
2018-06-03 21:38:20 -04:00
John Wiegley
36f9a9b9b4
Merge pull request from akhramov/fix/ensure-system-package-cleanup
...
ensure-system-package cleanup
GitHub-reference: https://github.com/jwiegley/use-package/issues/683
2018-05-19 14:48:47 -07:00
Artyom Khramov
f38a100917
Ensure system package cleanup
...
The function introduced in https://github.com/jwiegley/use-package/issues/673 wasn't declared at compile time, and
it made byte compiler unhappy. Moreover, it was forgotten to remove
redundant compile time variables. Thanks @tarsius for pointing that
out.
This change
* Removes redundant variable declarations
* Adds `system-packages-get-command` function declaration.
Copyright-paperwork-exempt: yes
2018-05-20 00:53:08 +06:00
Justin Talbott
642417ac05
Merge pull request from andschwa/remap-command
...
Document that remapping commands is supported with bind-key
GitHub-reference: https://github.com/jwiegley/use-package/issues/674
2018-05-13 00:30:24 -04:00
Andrew Schwartzmeyer
d2fec5e5e3
Document that remapping commands is supported with bind-key
...
Copyright-paperwork-exempt: yes
2018-04-30 09:55:27 -07:00
Justin Talbott
85e580a5e4
Merge pull request from akhramov/fix/ensure-system-package-noconfirm
...
[Fix https://github.com/jwiegley/use-package/issues/661 ] ensure-system-package: honor system-packages customizations
GitHub-reference: https://github.com/jwiegley/use-package/issues/673
2018-04-26 14:21:50 -04:00
Artyom Khramov
9f034a0bcf
[] ensure-system-package: honor system-packages customizations
...
ensure-system-package doesn't honor system-packages
customizations (https://github.com/jwiegley/use-package/issues/661 ), because system-packages didn't provide an API
to retrieve shell command to be executed.
This change makes use of the new system-packages'
`system-package-get-command` function and therefore fixes the issue.
GitHub-reference: fix https://github.com/jwiegley/use-package/issues/661
Copyright-paperwork-exempt: yes
2018-04-26 03:01:19 +06:00
Justin Talbott
e2a322d870
Merge pull request from waymondo/master
...
:ensure-system-package - allow cdr of cons to be a package name symbol
GitHub-reference: https://github.com/jwiegley/use-package/issues/654
2018-03-16 16:07:41 -04:00
Justin Talbott
e5d3826b62
:ensure-system-package allow cdr of cons to be a package name symbol
...
closes https://github.com/jwiegley/use-package/issues/652
2018-03-16 12:29:20 -04:00
John Wiegley
ad601fb49a
Merge pull request from valignatev/master
...
Encourage installation via https instead of http
GitHub-reference: https://github.com/jwiegley/use-package/issues/651
2018-03-14 11:43:35 -07:00
Valentin Ignatev
8a27cd3a8b
Encourage installation via https instead of http
2018-03-14 21:27:09 +10:00
John Wiegley
742cf27b0e
Merge pull request from DamienCassou/fix-report-again
...
Fix report again after revert
GitHub-reference: https://github.com/jwiegley/use-package/issues/647
2018-03-12 23:35:01 -07:00
Damien Cassou
69a561b86b
Fix compile-time warnings due to the statistics-reporting code
...
The code worked because the file is using dynamic binding.
2018-03-12 08:42:16 +01:00
Damien Cassou
2a47998844
Add missing require
...
This is used for `hash-table-keys`.
Fix https://github.com/jwiegley/use-package/issues/644 .
2018-03-12 08:42:16 +01:00
John Wiegley
dd8ef12112
Merge pull request from jwiegley/revert-645-fix-report
...
Revert "Fix report"
GitHub-reference: https://github.com/jwiegley/use-package/issues/646
2018-03-11 21:37:34 -07:00
John Wiegley
cba5a11368
Revert "Fix report"
2018-03-11 21:37:02 -07:00
John Wiegley
b1429951b1
Merge pull request from DamienCassou/fix-report
...
Fix report
GitHub-reference: https://github.com/jwiegley/use-package/issues/645
2018-03-11 21:34:23 -07:00
Damien Cassou
b28efb4847
Fix compile-time warnings due to the statistics-reporting code
...
The code worked because the file is using dynamic binding.
2018-03-11 13:24:08 +01:00
Damien Cassou
bce655f616
Add missing require
...
This is used for `hash-table-keys`.
Fix https://github.com/jwiegley/use-package/issues/644 .
2018-03-11 13:23:49 +01:00
John Wiegley
4cc7f91270
Merge pull request from DamienCassou/tabulated-list
...
Use a tabulated-list to display package configuration statistics
GitHub-reference: https://github.com/jwiegley/use-package/issues/642
2018-03-08 14:45:02 -08:00
Damien Cassou
ae22d74a16
Use a tabulated-list to display package configuration statistics
...
Fix https://github.com/jwiegley/use-package/issues/641
2018-03-08 21:00:31 +01:00
John Wiegley
76e6d3e8bc
Merge pull request from matthewbauer/patch-1
...
Support ":package" in use-package
GitHub-reference: https://github.com/jwiegley/use-package/issues/633
2018-03-05 10:09:44 -08:00
Matthew Justin Bauer
2250f89ac0
Support ":package" in use-package
...
bind-key supports the keyword ":package" but use-package does not know that. Adding this should be helpful. In the future, maybe we could automatically fill in with the use-package package, but that could be a breaking change.
2018-02-25 15:03:43 -06:00
John Wiegley
10b4dcb53a
Merge pull request from justbur/normalize-fix
...
Fix usage of plist argument in use-package-normalize-plist
GitHub-reference: https://github.com/jwiegley/use-package/issues/625
2018-02-06 14:14:51 -08:00
Justin Burkett
46503b194c
Fix usage of plist argument in use-package-normalize-plist
...
Previously the argument was never used.
2018-02-06 12:48:51 -05:00
John Wiegley
e379221166
Merge pull request from justbur/ignore-keywords
...
Add use-package-ignore-unknown-keywords option
GitHub-reference: https://github.com/jwiegley/use-package/issues/624
2018-02-06 09:36:33 -08:00
Justin Burkett
09266283b9
Add use-package-ignore-unknown-keywords option
...
This option allows use-package to skip over keywords it doesn't recognize.
2018-02-06 11:42:06 -05:00
John Wiegley
ab918196fa
Revert "Merge pull request from jabranham/lexical-bindings"
...
This reverts commit d21787f1d6 , reversing
changes made to fd8a3510fd .
GitHub-reference: https://github.com/jwiegley/use-package/issues/617
2018-01-27 14:13:48 -08:00
John Wiegley
566a2ea3a1
Revert "Move variable bindings to the bottom of each file"
...
This reverts commit c29193bf07 .
2018-01-27 14:09:10 -08:00
John Wiegley
c29193bf07
Move variable bindings to the bottom of each file
2018-01-27 14:07:11 -08:00
John Wiegley
d21787f1d6
Merge pull request from jabranham/lexical-bindings
...
[WIP] Lexical bindings
GitHub-reference: https://github.com/jwiegley/use-package/issues/617
2018-01-27 14:04:57 -08:00
Alex Branham
109167e8f5
Don't remove sharp quotes
2018-01-27 15:17:26 -06:00
Alex Branham
2274130b40
Test still requires cl
2018-01-27 11:11:40 -06:00
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