John Wiegley
6c35742992
Merge pull request from tarsius/outline
...
Support outline-minor-mode
GitHub-reference: https://github.com/jwiegley/use-package/issues/420
2016-12-18 15:20:42 -08:00
John Wiegley
ba3064ed80
Merge pull request from tarsius/bind-later
...
Delay decision whether to use eval-after-load until run-time
GitHub-reference: https://github.com/jwiegley/use-package/issues/419
2016-12-18 15:17:20 -08:00
Jonas Bernoulli
75e0cd93c5
Delay decision whether to use eval-after-load until run-time
...
Just because a keymap variable is bound at macro-expansion-time
doesn't mean that it must be bound at run-time too.
Change `bind-keys-form', which is used by `bind-keys' and other
macros, to return a form which delays the decision on whether to
wrap the binding forms with `eval-after-load' until run-time.
Fixes https://github.com/jwiegley/use-package/issues/378 .
2016-12-18 15:47:36 +01:00
Jonas Bernoulli
134ecb3c88
Support outline-minor-mode
...
In "use-package.el" prefix headings with ";;;" instead of just
";;". In "bind-key.el" add the missing ";;; Code:" heading.
In both libraries set `outline-regexp' to an appropriate value.
2016-12-17 15:26:15 +01:00
John Wiegley
42b7a774cf
Merge pull request from phst/bug398
...
Declare package-read-all-archive-contents
GitHub-reference: https://github.com/jwiegley/use-package/issues/402
2016-10-31 10:25:04 -07:00
Philipp Stephani
baa9e25a6b
Declare package-read-all-archive-contents
...
Fixes https://github.com/jwiegley/use-package/issues/398
2016-10-31 18:22:03 +01:00
Philipp Stephani
c15c616eb1
Remove tests, which don’t work
...
Fixes https://github.com/jwiegley/use-package/issues/399
2016-10-31 18:16:50 +01:00
John Wiegley
fc7fc42f13
Bump version to 2.3
2016-10-17 16:40:29 -07:00
John Wiegley
bcfb149517
Merge pull request from appleby/master
...
Ensure package-pinned-packages is bound before referencing it.
GitHub-reference: https://github.com/jwiegley/use-package/issues/376
2016-08-15 11:37:44 -07:00
Mike Appleby
ef0cbfdc73
Ensure package-pinned-packages is bound before referencing it
...
Add a bound-and-true-p guard to package-pinned-packages before
referencing it in use-package-ensure-elpa.
Package pinning was introduced in Emacs 24.4, and hence
package-pinned-packages in unbound by default in earlier versions.
Relevant commits:
72452b5 Merge pull request https://github.com/jwiegley/use-package/issues/367 from ketbra/master
5053f75 Make pin and ensure compatible
Fixes https://github.com/jwiegley/use-package/issues/375
Copyright-paperwork-exempt: yes
2016-08-15 11:48:33 -05:00
John Wiegley
4629e86240
Remove the use of a tab
2016-07-22 11:23:10 -07:00
John Wiegley
72452b5548
Merge pull request from ketbra/master
...
Update use-package.el
GitHub-reference: https://github.com/jwiegley/use-package/issues/367
2016-07-22 11:22:39 -07:00
Matthew Feinberg
5053f75e00
Make pin and ensure compatible
...
`:pin` does not work with `:ensure`, because it doesn't add the package to package-pinned-packages until after reading the package archive contents. This change causes the package archive contents to be reread if the package is pinned and `:ensure` is being used.
Copyright-paperwork-exempt: yes
2016-07-21 08:38:30 -04:00
John Wiegley
811c99da52
Merge pull request from npostavs/state-noconst
...
Some minor fixes
GitHub-reference: https://github.com/jwiegley/use-package/issues/342
2016-07-18 09:10:49 -07:00
Noam Postavsky
79c38c5184
Fix declare-function call: FILE must be a string
2016-07-17 22:28:25 -04:00
Noam Postavsky
71057bc20f
use-package-as-string: use noerror parameter
2016-07-17 22:27:13 -04:00
Noam Postavsky
be7a0e4649
Don't pass a constant as the state
...
for use-package-process-keywords, because the function may modify the
list object. Modifying a quoted constant can lead to unexpected side
effects (e.g. values from previous use-package forms end up in
subsequent ones).
2016-07-17 22:26:40 -04:00
John Wiegley
758739e6db
Version 2.2
2016-07-06 15:20:41 -07:00
John Wiegley
1f03bec96b
Merge pull request from justbur/bump-init
...
Move :init forms before :after and :demand
GitHub-reference: https://github.com/jwiegley/use-package/issues/360
2016-07-05 13:31:15 -07:00
Justin Burkett
59d34cf9ce
Move :init forms before :after and :demand
...
The docstring of use-package says that :init should run before the
package is loaded but using :after moves the require statement ahead of
:init when any package specified in :after is already loaded. In the
following example, in the first case bar-x might get set before or after
bar is loaded depending on if foo is already loaded at the time, while
the second case always sets bar-x first.
(use-package bar
:after (foo)
:init (setq bar-x 2)
:config (bar-mode))
(use-package bar
:init (setq bar-x 2)
:config (bar-mode))
This commit fixes the issue and makes sure that bar-x is set before bar
is loaded by use-package. Fixes https://github.com/jwiegley/use-package/issues/352 .
2016-06-23 10:01:33 -04:00
John Wiegley
ff0a5e281d
Merge pull request from justbur/imenu2
...
Fix imenu support for older versions
GitHub-reference: https://github.com/jwiegley/use-package/issues/355
2016-06-14 08:03:16 -07:00
Justin Burkett
da08a04652
Fix imenu support for older versions
...
lisp-mode-symbol-regexp was not defined in Emacs 24.5.
2016-06-13 21:02:14 -04:00
John Wiegley
1d6b3174f5
Merge pull request from justbur/imenu
...
Add imenu support for use-package forms
GitHub-reference: https://github.com/jwiegley/use-package/issues/354
2016-06-13 09:57:20 -07:00
John Wiegley
2b5668df20
Merge pull request from robario/patch-1
...
Fix to ignore load error caused via :after
GitHub-reference: https://github.com/jwiegley/use-package/issues/350
2016-06-13 09:13:21 -07:00
Justin Burkett
d34fb2bdc9
Add imenu support for use-package forms
...
Also add require forms and group both under menu "Package".
2016-06-13 09:45:27 -04:00
robario
858a7f9b7c
Fix to ignore load error caused via :after
...
Copyright-paperwork-exempt: yes
2016-06-05 14:58:40 +09:00
John Wiegley
153b542421
Merge pull request from xuchunyang/fix-package-install
...
Mark package as selected with package-install
GitHub-reference: https://github.com/jwiegley/use-package/issues/336
2016-04-03 11:29:36 -07:00
Chunyang Xu
3aa6aecb7f
Mark package as selected with package-install
...
Fixes https://github.com/jwiegley/use-package/issues/327
2016-03-31 19:33:55 +08:00
John Wiegley
af65fbea63
:map no longer accepts lists; only eval-after-load if necessary
...
Fixes https://github.com/jwiegley/use-package/issues/324
2016-02-27 00:48:29 -08:00
John Wiegley
a1c4e6d0ab
Normalize some error text
2016-02-26 16:18:21 -08:00
John Wiegley
f150691c78
Only printing debug messages if use-package-verbose is `debug'
...
Fixes https://github.com/jwiegley/use-package/issues/271
2016-02-26 16:16:49 -08:00
John Wiegley
8e128b29f5
Merge pull request from ljos/master
...
Quote variable in bind-keys*
GitHub-reference: https://github.com/jwiegley/use-package/issues/325
2016-02-26 19:08:31 -05:00
John Wiegley
6ca19531bb
Repair :map handling in bind-key.el
...
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/324
2016-02-26 16:06:58 -08:00
Bjarte Johansen
b0b5cfbfb2
Quote variable in `bind-keys*'
...
* bind-key.el (bind-keys*): `override-global-map' needs to be quoted so
the symbol is passed to `bind-keys-form' and not the value.
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/323
2016-02-26 15:47:16 +00:00
John Wiegley
6a90a9f16d
Add configuration variable `use-package-check-before-init'
...
Fixes https://github.com/jwiegley/use-package/issues/306
2016-02-25 17:24:59 -08:00
John Wiegley
ce51ea2055
Use add-to-list' defensively instead of push'
...
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/293
2016-02-25 17:13:02 -08:00
John Wiegley
6da4e0ce9d
Add variable `use-package-always-defer'
...
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/202
2016-02-25 17:04:17 -08:00
John Wiegley
eeba14ef07
Restore :bind-keymap, it does something special still
2016-02-25 16:41:09 -08:00
John Wiegley
828563a756
Remove :bind-keymaps, and only apply :map bindings after load
2016-02-25 16:37:34 -08:00
John Wiegley
856e8ee245
Support multiples uses of :map with :bind
...
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/121
2016-02-25 15:57:50 -08:00
John Wiegley
23a61c8f6b
Add some variable settings to use-package-tests.el, thanks tarsius
2016-02-25 15:22:10 -08:00
John Wiegley
4593f178e3
Merge pull request from alezost/keymap-doc-fix
...
Handle the case when keymap has a broken documentation
GitHub-reference: https://github.com/jwiegley/use-package/issues/223
2016-02-25 18:19:58 -05:00
John Wiegley
947345028e
Add another `declare'
2016-02-25 15:16:04 -08:00
John Wiegley
c65a334276
Handle :unless correctly
...
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/197
2016-02-25 15:08:32 -08:00
John Wiegley
543935482f
Add a comment about a recent change
2016-02-09 19:33:09 -05:00
John Wiegley
416096bfdc
Merge pull request from waymondo/master
...
Allow string values in cons for :bind keywords
GitHub-reference: https://github.com/jwiegley/use-package/issues/303
2016-02-09 19:31:48 -05:00
John Wiegley
57af7dd571
Merge pull request from dudebout/patch-1
...
Upper casing Cs corresponding to Ctrl
GitHub-reference: https://github.com/jwiegley/use-package/issues/316
2016-02-06 15:56:18 -05:00
John Wiegley
ee8ac83641
Add an autoload cookie for `use-package'
2016-02-06 14:56:43 -05:00
Nicolas Dudebout
32748d0657
Upper casing Cs corresponding to Ctrl
...
A number of Cs corresponding to Ctrl have been lower cased in comments in eb6b81dfe .
2016-02-05 21:40:34 -05:00
John Wiegley
2b967a3c18
Merge pull request from thierryvolpiatto/fix_package_install
...
When :ensure is used install package as a selected package.
GitHub-reference: https://github.com/jwiegley/use-package/issues/314
2016-02-04 14:00:36 -05:00