[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47454: plist-put should have a version which accepts multiple proper
From: |
scame |
Subject: |
bug#47454: plist-put should have a version which accepts multiple properties |
Date: |
Sun, 28 Mar 2021 17:34:45 +0000 |
Modifying plists could be much easier if multiple properties
were also accepted.
E.g. (plist-put PLIST PROP VAL ... )
or (plist-put PLIST (PROP VAL ....) )
Others also find this problematic:
https://emacs.stackexchange.com/questions/39473/how-to-modify-multiple-keys-in-a-plist
and the suggessted solutions are clumsy:
(setq org-format-latex-options (plist-put org-format-latex-options :scale
1.5))
(setq org-format-latex-options (plist-put org-format-latex-options
:foreground 'auto))
or
(setq org-format-latex-options
(plist-put (plist-put org-format-latex-options
:scale 1.5)
:foreground 'auto))
Making plist-put smarter to accept multiple values or adding an
other function which accepts them (e.g. plist-put-multiple)
could make using plists much more convenient.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#47454: plist-put should have a version which accepts multiple properties,
scame <=