aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorEarl Hyatt2023-07-20 21:44:41 -0400
committerBasil L. Contovounesios2023-07-30 15:20:27 +0200
commit19777b7c864f17248f279210545579001a2c99fd (patch)
tree65a76a14240d44531c6701395dda7fd29a907285 /java/debug.sh
parentda608160366aaa59567b4a45b3aabb34a2370594 (diff)
downloademacs-19777b7c864f17248f279210545579001a2c99fd.tar.gz
emacs-19777b7c864f17248f279210545579001a2c99fd.zip
Allow default values in 'map-let' and the pcase 'map' form
* lisp/emacs-lisp/map.el (map-let, map) (map--make-pcase-bindings): Add a third argument for specifying a default value, like in 'map-elt'. (Bug#49407) * lisp/emacs-lisp/map.el (map--make-pcase-bindings): Clarify that keys that aren't found aren't ignored, they actually get the value nil (unless the new default value is given). The overall pattern can still fail to match if the sub-pattern for the unfound key doesn't match nil. * test/lisp/emacs-lisp/map-tests.el (test-map-let-default) (test-map-plist-pcase-default, test-map-pcase-matches): Add tests, including for the above item.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions