]> git.eshelyaron.com Git - emacs.git/commit
Call PF correctly from pcase--edebug-match-pat-args
authorAlan Mackenzie <acm@muc.de>
Mon, 28 Oct 2024 16:35:27 +0000 (16:35 +0000)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Oct 2024 09:57:40 +0000 (10:57 +0100)
commit78af7f245789ee339e7eadc620d990f67f9ec8c9
tree2b65f2f03f9e7244a25ab83b36bfdc87a32ac766
parent3451370807345d6229782abf9dd8b9dc53d12d41
Call PF correctly from pcase--edebug-match-pat-args

Also correct a doc string and insert commentary.  This fixes
bug#74052.

* lisp/emacs-lisp/edebug.el
(edebug--match-&-spec-op <&interpose>): Correct and complete
the doc string, which now says MUST call exactly once, and
documents the return values of FUN, PF and
edebug--match-&-spec-op.  Also remove an unneeded `(...)
construct.

* lisp/emacs-lisp/pcase.el (pcase--edebug-match-pat-args): Call
PF also for the main cases handled.

(cherry picked from commit fb5915665522f747daa8dfa11e91dc406d18edb7)
lisp/emacs-lisp/edebug.el
lisp/emacs-lisp/pcase.el