aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/use-package (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix use-package :custom-face to set face-defface-spec (bug#77928)Michael Shields2025-04-271-6/+34
| | | | | | | | | | | | | | | | | | By default, `face-set-spec' sets the override face spec, so face attributes are combined with defaults rather than replacing them. This was a behavior change that was an apparently unintended consequence of commit 6b344a9. Also set the `face-modified' property, which causes Customize to flag the face as changed outside Customize. * doc/misc/use-package.texi (Faces): Document the behavior. * lisp/use-package/use-package-core.el (use-package-handler/:custom-face): (use-package): Improve docstring to reflect implementation. * test/lisp/use-package/use-package-tests.el (use-package-test/:custom-face-1): (use-package-test/:custom-face-2): (use-package-test/:custom-face-3): (use-package-test/:custom-face-4): Add tests.
* Update copyright year to 2025Paul Eggert2025-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* use-package: Add ':ignored-files' support to ':vc' keywordTony Zorman2024-05-181-1/+9
| | | | | | | | | | | | | | | | | | | | | * lisp/use-package/use-package-core.el (use-package-split-when): New utility function to split a list whenever a specified predicate returns t. (use-package-vc-valid-keywords): A new defconst to gather all allowed keywords. (use-package-normalize--vc-arg): Properly normalize the ':ignored-files' keyword, in that the following are all valid ways of entering files: :ignored-files "a" :ignored-files ("a") :ignored-files "a" "b" "c" :ignored-files ("a" "b" "c") (use-package-normalize/:vc): Adjust normalization, now that we do not necessarily receive a valid plist as an input. (Bug#66567) * test/lisp/use-package/use-package-tests.el (use-package-test-normalize/:vc): Add tests for ':ignored-files' keyword.
* Merge from savannah/emacs-29Po Lu2024-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
| |
* | Fix use-package :vc keyword when byte-compiledSteven Allen2023-06-031-0/+11
| | | | | | | | | | | | | | | | * lisp/use-package/use-package-core.el (use-package-handler/:vc): Return the new 'body'. Otherwise, the entire package declaration gets dropped when byte-compiling. * test/lisp/use-package/use-package-tests.el (use-package-test-handler/:vc-6): test it.
* | Add :vc keyword to use-package for VC package supportTony Zorman2023-05-161-0/+54
|/ | | | | | | | | | | | | | | | | | | | | | * lisp/use-package/use-package-core.el (use-package-keywords): Add :vc. (use-package-handler/:load-path): Insert 'load-path' into 'state'. (use-package-vc-install): Install the package with package-vc.el. (use-package-handler/:vc): Handler for the :vc keyword. (use-package-normalize--vc-arg): Normalization for more complex arguments to 'use-package-normalize/:vc', in order to make them compatible with the specification of 'package-vc-selected-packages'. (use-package-normalize/:vc): Normalizer for the :vc keyword. (use-package): Document :vc. * lisp/use-package/use-package-ensure.el (use-package-handler/:ensure): Do not ensure a package when :vc is used in the declaration. * test/lisp/use-package/use-package-tests.el (use-package-test/:vc-1): (use-package-test/:vc-2): (use-package-test/:vc-3): (use-package-test/:vc-4): (use-package-test/:vc-5): (use-package-test-normalize/:vc): Add tests for :vc. * etc/NEWS: Mention change. (Bug#60418)
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Normalize GPLv3 license statements in new filesStefan Kangas2022-12-091-3/+5
|
* Drop key-chord.el support from use-packageStefan Kangas2022-12-081-169/+0
| | | | | | | | * lisp/use-package/bind-chord.el: * lisp/use-package/use-package-chords.el: * test/lisp/use-package/use-package-chords-tests.el: Delete files. * doc/misc/use-package.texi (use-package-chords): Delete section. Ref: https://lists.gnu.org/r/emacs-devel/2022-12/msg00052.html
* Fix use-package testsStefan Kangas2022-12-032-3/+19
| | | | | | * 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.
* Remove tests lacking a copyright assignment for nowStefan Kangas2022-11-271-31/+0
| | | | | * use-package-tests.el (use-package-test/pre-post-hooks-with-:config) (use-package-test/pre-post-hooks-without-:config): Remove tests.
* Merge pull request from skangas/dir-localsJohn Wiegley2022-11-162-2/+0
|\ | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/1023
| * Add .dir-locals.elStefan Kangas2022-11-162-2/+0
| |
* | Normalize GPLv3 license statementsStefan Kangas2022-11-162-31/+19
|/
* Revert "Allow multiple keymaps in :map argument"John Wiegley2022-11-151-81/+4
|
* Merge remote-tracking branch 'origin/master' into pr-830John Wiegley2022-11-152-7/+20
|\
| * Various checkdoc fixesStefan Kangas2022-11-141-1/+1
| |
| * Allow passing the SPEC-TYPE argument via :custom-faceAndrey Listopadov2022-10-291-0/+7
| | | | | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/1008 Copyright-paperwork-exempt: yes
| * Use face-spec-set instead of custom-set-facesAndrey Listopadov2022-10-171-6/+6
| | | | | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/934 Copyright-paperwork-exempt: yes
| * Merge pull request from conao3/add-commands-keywordJohn Wiegley2022-10-121-0/+6
| |\ | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/917
| | * add testcaseNaoya Yamashita2021-02-231-0/+6
| | |
* | | bind-keys supports passing a list of keymaps as :map argumentJacob First2022-09-291-4/+81
|/ /
* | Merge pull request from CeleritasCelery/masterJohn Wiegley2022-09-091-5/+7
|\ \ | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/743
| * | Fix tests and documentation for hookTroy Hinckley2021-05-171-5/+7
| |/
* | Merge pull request from ↵John Wiegley2022-08-071-0/+161
|\ \ | | | | | | | | | | | | waymondo/use-package-chords-autoloading-and-mapping-improvements GitHub-reference: https://github.com/jwiegley/use-package/issues/778
| * | update bind-chords to use of eval-after-load when maps declaredJustin Talbott2019-06-201-0/+161
| | | | | | | | | | | | | | | | | | | | | also improve :chord keyword syntax processing to more closely mimic bind-keys since the same binding normalizer is used. also add tests for use-package-chords to cover these test cases
* | | Merge pull request from phst/fletJohn Wiegley2022-08-071-34/+21
|\ \ \ | | | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/849
| * | | Remove uses of deprecated ‘flet’ macroPhilipp Stephani2021-02-241-34/+21
| | |/ | |/| | | | | | | | | | | | | | | | | | | 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’.
* | | Merge pull request from conao3/add-custom-face-descriptionJohn Wiegley2022-08-071-0/+13
|\ \ \ | |/ / |/| | GitHub-reference: https://github.com/jwiegley/use-package/issues/863
| * | add multiple and eval :custom-face usageNaoya Yamashita2020-08-211-0/+13
| | | | | | | | | | | | This commit follows suggestion at https://github.com/jwiegley/use-package/issues/696, https://github.com/jwiegley/use-package/issues/821
* | | Add use-package-use-theme and avoid missing theme errorsTed Zlatanov2021-02-061-0/+8
| | |
* | | Create new "use-package" themse and use it for :custom with ↵Ted Zlatanov2020-11-291-12/+9
| | | | | | | | | | | | custom-theme-set-variables
* | | set saved-variable-comment from :customTed Zlatanov2020-11-291-0/+13
|/ / | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/861
* | Merge branch 'master' into patch-1Jimmy Yuen Ho Wong2020-07-221-1/+5
|\ \
| * | Fix broken test due toJimmy Yuen Ho Wong2020-07-121-1/+5
| | | | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/850
* | | better testsJimmy Yuen Ho Wong2020-07-081-3/+9
| | |
* | | add test forJimmy Yuen Ho Wong2020-07-081-0/+6
|/ / | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/845
* | Add special value back again, in case needed for backwards compatJohn Lee2020-05-091-0/+1
| | | | | | | | | | | | | | | | 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
* | Even when there's no :config, run any pre/post config hooksJohn Lee2020-05-091-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Update testsRadon Rosborough2019-07-151-22/+44
|/
* Make custom-face evaluate elispVincent Zhang2019-05-291-1/+1
| | | | | | Fix https://github.com/jwiegley/use-package/issues/696. Copyright-paperwork-exempt: yes
* Fix use-package-normalize-function testsAlex Branham2018-06-131-3/+3
|
* Enable lexical bindingAlex Branham2018-06-131-1/+1
| | | | This supersedes https://github.com/jwiegley/use-package/issues/617 and closes https://github.com/jwiegley/use-package/issues/648
* Revert "Merge pull request from jabranham/lexical-bindings"John Wiegley2018-01-271-1/+1
| | | | | This reverts commit d21787f1d64a740c0e00899835d9200a0e4690df, reversing changes made to fd8a3510fd1a555b925f57b2870917e3c4ea0206. GitHub-reference: https://github.com/jwiegley/use-package/issues/617
* Revert "Move variable bindings to the bottom of each file"John Wiegley2018-01-271-2/+1
| | | | This reverts commit c29193bf0724633adf7183dad2d0b6faf7d029ab.
* Move variable bindings to the bottom of each fileJohn Wiegley2018-01-271-1/+2
|
* Test still requires clAlex Branham2018-01-271-0/+1
|
* Use lexical bindings and remove cl packageAlex Branham2018-01-271-2/+1
|
* All the second argument in use-package-defaults lists to be a functionJohn Wiegley2017-12-151-0/+12
| | | | Address the question raised in https://github.com/jwiegley/use-package/issues/591