1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00
Commit graph

104 commits

Author SHA1 Message Date
Stefan Kangas
01bfbd186a Fix use-package tests
* test/lisp/use-package/use-package-chords-tests.el:
* test/lisp/use-package/use-package-tests.el: Remove local
variables section.  Require 'ert' and fix copyright header.
2022-12-03 00:55:56 +01:00
Stefan Kangas
8296164eab Remove tests lacking a copyright assignment for now
* use-package-tests.el (use-package-test/pre-post-hooks-with-:config)
(use-package-test/pre-post-hooks-without-:config): Remove tests.
2022-11-27 10:03:56 +01:00
John Wiegley
e42c8479ec Merge pull request from skangas/dir-locals
GitHub-reference: https://github.com/jwiegley/use-package/issues/1023
2022-11-16 11:29:27 -08:00
Stefan Kangas
30fa366737 Add .dir-locals.el 2022-11-16 18:02:20 +01:00
Stefan Kangas
2399d0d5ce Normalize GPLv3 license statements 2022-11-16 08:43:55 +01:00
John Wiegley
3e81af80a2 Revert "Allow multiple keymaps in :map argument" 2022-11-15 15:24:12 -08:00
John Wiegley
49fffe7cf4 Merge remote-tracking branch 'origin/master' into pr-830 2022-11-15 09:21:07 -08:00
Andrey Listopadov
76a5ce5d86 Allow passing the SPEC-TYPE argument via :custom-face
GitHub-reference: https://github.com/jwiegley/use-package/issues/1008
Copyright-paperwork-exempt: yes
2022-10-29 13:26:31 +03:00
Andrey Listopadov
6b344a9197 Use face-spec-set instead of custom-set-faces
GitHub-reference: https://github.com/jwiegley/use-package/issues/934
Copyright-paperwork-exempt: yes
2022-10-17 09:18:51 +03:00
John Wiegley
c0338e06cd Merge pull request from conao3/add-commands-keyword
GitHub-reference: https://github.com/jwiegley/use-package/issues/917
2022-10-12 13:43:57 -04:00
Jacob First
ec96b47664 bind-keys supports passing a list of keymaps as :map argument 2022-09-29 04:01:42 -04:00
John Wiegley
c12deb31fe Merge pull request from CeleritasCelery/master
GitHub-reference: https://github.com/jwiegley/use-package/issues/743
2022-09-09 17:25:57 -07:00
John Wiegley
f270623768 Merge pull request from phst/flet
GitHub-reference: https://github.com/jwiegley/use-package/issues/849
2022-08-07 08:49:35 -07:00
John Wiegley
0503611b71 Merge pull request from conao3/add-custom-face-description
GitHub-reference: https://github.com/jwiegley/use-package/issues/863
2022-08-07 08:48:29 -07:00
Troy Hinckley
ee292b80be Fix tests and documentation for hook 2021-05-17 18:33:28 -06:00
Philipp Stephani
11b2184c8d Remove uses of deprecated ‘flet’ macro
Instead, use the non-deprecated ‘cl-flet’ and ‘cl-letf’ macros from the
‘cl-lib’ package.

This also allows us to remove the ‘plist-delete’ helper function, which was
only used to effectively un-deprecate ‘flet’.
2021-02-24 13:00:42 +01:00
Naoya Yamashita
a35b924054 add testcase 2021-02-23 04:12:03 +09:00
Ted Zlatanov
2b9536f242 Add use-package-use-theme and avoid missing theme errors 2021-02-06 10:46:00 +00:00
Ted Zlatanov
a3c310c11a Create new "use-package" themse and use it for :custom with custom-theme-set-variables 2020-11-29 14:56:10 +00:00
Ted Zlatanov
8ef7978028 set saved-variable-comment from :custom
GitHub-reference: https://github.com/jwiegley/use-package/issues/861
2020-11-29 12:09:48 +00:00
Naoya Yamashita
215dd35e49 add multiple and eval :custom-face usage
This commit follows suggestion at https://github.com/jwiegley/use-package/issues/696, https://github.com/jwiegley/use-package/issues/821
2020-08-21 15:15:34 +09:00
Jimmy Yuen Ho Wong
1f54de9210 Merge branch 'master' into patch-1 2020-07-22 02:05:31 +01:00
Jimmy Yuen Ho Wong
d3f847eaee Fix broken test due to
GitHub-reference: https://github.com/jwiegley/use-package/issues/850
2020-07-12 15:57:49 -04:00
Jimmy Yuen Ho Wong
2ca2212f73 better tests 2020-07-08 04:46:57 +01:00
Jimmy Yuen Ho Wong
de49954965 add test for
GitHub-reference: https://github.com/jwiegley/use-package/issues/845
2020-07-08 04:46:57 +01:00
John Lee
0ec4660f74 Add special value back again, in case needed for backwards compat
I don't know why this special value exists, but perhaps old client code uses it.

The additional `t' in the macro expansion is accidental but not harmful I guess.

Copyright-paperwork-exempt: yes
2020-05-09 23:46:53 +01:00
John Lee
f30d5761af Even when there's no :config, run any pre/post config hooks
i.e., following the existing docs for use-package-inject-hooks, these hooks are
run:

use-package--foo--pre-config-hook
use-package--foo--post-config-hook

This should make config customisations more predictable (for example, spacemacs
uses these hooks extensively to allow 'layers' to be customised).

I got rid of the "special" default value for :config, because it doesn't seem to
be treated any differently than nil.

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

Copyright-paperwork-exempt: yes
2020-05-09 23:46:53 +01:00
Radon Rosborough
20415fb9be Update tests 2019-07-15 22:20:18 -07:00
Vincent Zhang
c297dfdd20 Make custom-face evaluate elisp
Fix https://github.com/jwiegley/use-package/issues/696.

Copyright-paperwork-exempt: yes
2019-05-29 17:42:19 +08:00
Alex Branham
09b7e8e129 Fix use-package-normalize-function tests 2018-06-13 20:24:09 -05:00
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
2274130b40 Test still requires cl 2018-01-27 11:11:40 -06:00
Alex Branham
88bcb8b96d Use lexical bindings and remove cl package 2018-01-27 10:01:10 -06: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
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
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
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
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
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