]> git.eshelyaron.com Git - emacs.git/commit
use-package: Add ':ignored-files' support to ':vc' keyword
authorTony Zorman <soliditsallgood@mailbox.org>
Sun, 15 Oct 2023 14:51:00 +0000 (16:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:55:58 +0000 (20:55 +0200)
commit66ade02fd3d04fdc56b8c62399fef74f34df5a59
tree853b3770797f781154dc9347767ab32dacb49ac3
parenta530b710030c6f69b0252713bf47692de11cc56c
use-package: Add ':ignored-files' support to ':vc' keyword

* 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.

(cherry picked from commit a019d2bd56818046854345922ad805f3212cd116)
lisp/use-package/use-package-core.el
test/lisp/use-package/use-package-tests.el