mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
Minor simplification of a function
This commit is contained in:
parent
a4d2e77961
commit
4aa9b0cd6a
1 changed files with 3 additions and 5 deletions
|
@ -474,11 +474,9 @@ This is in contrast to merely setting it to 0."
|
|||
(cons (cdr ys) (cdr zs))))
|
||||
|
||||
(defun use-package-split-list-at-keys (key lst)
|
||||
(when lst
|
||||
(let* ((xs (use-package-split-list (apply-partially #'eq key) lst))
|
||||
(args (car xs))
|
||||
(tail (cdr xs)))
|
||||
(cons args (use-package-split-list-at-keys key (cdr tail))))))
|
||||
(and lst
|
||||
(let ((xs (use-package-split-list (apply-partially #'eq key) lst)))
|
||||
(cons (car xs) (use-package-split-list-at-keys key (cddr xs))))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue