]> git.eshelyaron.com Git - emacs.git/commit
Simplify ISUPPORT-derived data wrangling in ERC
authorF. Jason Park <jp@neverwas.me>
Tue, 14 Nov 2023 02:24:59 +0000 (18:24 -0800)
committerF. Jason Park <jp@neverwas.me>
Sat, 18 Nov 2023 20:34:56 +0000 (12:34 -0800)
commitb088222ec9f0cff720ca366bdef448d392731f94
tree51238af28ee75afb6272f253ceaa560b6f960ad4
parentcc7e008dce1df9d2472338b1fc3cc766166e9e55
Simplify ISUPPORT-derived data wrangling in ERC

* lisp/erc/erc-backend.el (erc--get-isupport-entry): Check server
buffer for `erc-server-parameters' when (re)initializing value.  This
function was previously unreliable from a target buffer on cache
misses.
(erc--with-isupport-data): New macro for accessing and caching data
derived from an ISUPPORT parameter.  Late-arriving params break the
cache.
(erc-server-005): Rewrite pattern as `rx' form, factoring out bol/eol.
* lisp/erc/erc-common.el (erc--isupport-data): New struct to be
subclassed for storing cached ISUPPORT-derived data.
* test/lisp/erc/erc-scenarios-display-message.el: Remove stray
`require'.  (Bug#67220)
lisp/erc/erc-backend.el
lisp/erc/erc-common.el
test/lisp/erc/erc-scenarios-display-message.el