]> git.eshelyaron.com Git - emacs.git/commit
Make ERC's format catalogs more extensible
authorF. Jason Park <jp@neverwas.me>
Thu, 4 Jan 2024 07:10:55 +0000 (23:10 -0800)
committerF. Jason Park <jp@neverwas.me>
Sun, 7 Jan 2024 23:11:26 +0000 (15:11 -0800)
commit37e87bc3eeb8e62e2900d73cf4dd9fc9e942d66d
tree520859a64dbb82b243e53680553712f623a2ddaf
parentd6f9379d1c708dddc0543bf7242ba1ec6aee9746
Make ERC's format catalogs more extensible

* lisp/erc/erc-common.el (erc--define-catalog): Accept a `:parent'
keyword to allow for extending an existing catalog by overriding some
subset of defined entries.
(erc-define-message-format-catalog): Add edebug spec.
* lisp/erc/erc.el (erc-retrieve-catalog-entry): Check parent for
definition before looking to `default-toplevel-value'.
* test/lisp/erc/erc-tests.el (erc-retrieve-catalog-entry): Add test
case for inheritance.
* test/lisp/erc/resources/erc-tests-common.el
(erc-tests-common-pp-propertized-parts): Fix bug in convenience
command.  (Bug#67677)
lisp/erc/erc-common.el
lisp/erc/erc.el
test/lisp/erc/erc-tests.el
test/lisp/erc/resources/erc-tests-common.el