]> git.eshelyaron.com Git - emacs.git/commit
Bind current erc-response around all handlers
authorF. Jason Park <jp@neverwas.me>
Mon, 19 Aug 2024 06:50:58 +0000 (23:50 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 20:33:41 +0000 (22:33 +0200)
commita018bbf52cb533a3bce5fcaa26db62522813b349
tree3a2e3b1ba19409dbafa723b18a143248aafda153
parent022e2464146d988f81ed19019a91940a2eb624f9
Bind current erc-response around all handlers

* lisp/erc/erc-backend.el (erc--parsed-response): New variable to be
the internal version of the ancient `erc-message-parsed', which is
only available during `erc-display-message', and therefore of somewhat
limited utility.
(erc-call-hooks): Bind `erc--parsed-response' to the parsed
`erc-response' object for the duration of its handling.  Bind
`erc--msg-prop-overrides' around all hooks to allow response handlers
to influence inserted msg props for any `erc-display-message' calls.
(Bug#72736)

(cherry picked from commit 15545e15a343cc45561a3ff6b8ea930835b7ff08)
lisp/erc/erc-backend.el