Commit graph

339 commits

Author SHA1 Message Date
Alex Branham
e2e6f9a44b Enable lexical binding
This supersedes https://github.com/jwiegley/use-package/issues/617 and closes https://github.com/jwiegley/use-package/issues/648
2018-06-13 20:24:09 -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
Alex Branham
88bcb8b96d Use lexical bindings and remove cl package 2018-01-27 10:01:10 -06:00
John Wiegley
e34fdb580a Add several missing comments 2017-12-04 15:24:31 -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
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
John Wiegley
b5b432d0fe Correct the ordering of :preface, :load-path, :defines and :functions 2017-12-01 01:04:35 -08:00
John Wiegley
07ab280741 Whitespace fix 2017-12-01 00:46:57 -08:00
John Wiegley
f674a75b61 Move :hook before :defer 2017-12-01 00:46:45 -08:00
John Wiegley
2c618e17c6 Don't macroexpand bind-keys, leave that to the evaluator 2017-12-01 00:45:43 -08:00
John Wiegley
5f1e8b6b72 Always use `load' when loading for the sake of compilation 2017-12-01 00:45:04 -08:00
John Wiegley
669e8527fb Sort keywords at the appropriate time 2017-12-01 00:44:49 -08:00
John Wiegley
af8b961716 Change the :config default, if none has been set in vars 2017-12-01 00:44:17 -08:00
John Wiegley
1a09f8fef2 :no-require t should never require 2017-11-30 21:45:25 -08:00
John Wiegley
0791e3fefe Code reformatting 2017-11-30 21:41:58 -08:00
John Wiegley
0be868d39b A final fix to :ensure + :load-path
Fixes https://github.com/jwiegley/use-package/issues/190
2017-11-30 12:38:13 -08:00
John Wiegley
1fc543a212 Don't check for an :ensure that use-package-always-ensure may have added
Fixes https://github.com/jwiegley/use-package/issues/190
2017-11-30 11:20:17 -08:00
John Wiegley
2ff8af6495 Add a use-package-version variable 2017-11-30 11:05:46 -08:00
John Wiegley
3847ec28ca Allow :ensure to take a nil value again
Fixes https://github.com/jwiegley/use-package/issues/526
2017-11-30 09:14:28 -08:00
John Wiegley
3cb64648fc Only add :ensure nil on :load-path if use-package-always-ensure is t 2017-11-29 23:08:22 -08:00
John Wiegley
35f46f7b42 Restructure some code 2017-11-29 22:20:43 -08:00
John Wiegley
5e1a656e06 Using :load-path without also using :ensure now implies :ensure nil
Fixes https://github.com/jwiegley/use-package/issues/190
2017-11-29 22:12:19 -08:00
John Wiegley
fab33fef3a Correction to use-package--recognize-function
Finishes https://github.com/jwiegley/use-package/issues/525
2017-11-29 22:03:03 -08:00
John Wiegley
5f2b0cbe8f Allow keys to be bound to nil
Fixes https://github.com/jwiegley/use-package/issues/525
2017-11-29 21:44:02 -08:00
John Wiegley
1167e7d063 Fix a missing `and' 2017-11-29 16:53:41 -08:00
John Wiegley
6a62122e9c Use backquote rather than quote 2017-11-29 16:48:58 -08:00
John Wiegley
0887e1f9d0 Correct use-package-normalize-mode 2017-11-29 16:44:20 -08:00
John Wiegley
8051c9f5cd Update version and copyright 2017-11-29 16:38:23 -08:00
John Wiegley
bff472ea80 Allow :bind ("C-c C-c" . (lambda () (ding))) and #'(lambda ...)
Fixes https://github.com/jwiegley/use-package/issues/333
Fixes https://github.com/jwiegley/use-package/issues/461
2017-11-29 16:37:03 -08:00
Basil L. Contovounesios
3db39c0573 Require Emacs version >= 24.3
Re: https://github.com/jwiegley/use-package/issues/457
2017-11-29 16:11:09 +00:00
Basil L. Contovounesios
4303a2faf6 Require cl-lib and do not use seq functions
cl-lib is also required for a separate call to cl-mapcan.

Fixes https://github.com/jwiegley/use-package/issues/520
2017-11-29 15:47:00 +00:00