]> git.eshelyaron.com Git - emacs.git/commit
Offer to regexp-quote new items in erc-match commands
authorF. Jason Park <jp@neverwas.me>
Thu, 7 Jul 2022 02:57:11 +0000 (19:57 -0700)
committerF. Jason Park <jp@neverwas.me>
Tue, 20 Sep 2022 00:54:46 +0000 (17:54 -0700)
commit01de334c78ee3a887aa15a65d670ae8a63f0a5b2
treecbb025e87769be042acd011b29444ca6c0b915c0
parent7df5b4deb8b13a25e0708bb5339540cea0683e2e
Offer to regexp-quote new items in erc-match commands

* lisp/erc/erc-match.el (erc-match-quote-when-adding) Add new option
to quote new items added to match lists.
(erc-add-entry-to-list): Add optional `alt' parameter indicating
whether to flip the behavior indicated by
`erc-match-quote-when-adding'.
(erc-add-pal, erc-add-fool, erc-add-keyword, erc-add-dangerous-host):
Pass universal arg to `erc-add-entry-to-list' as `alt' argument.
(erc-match-pal-p, erc-match-fool-p, erc-match-keyword-p,
erc-match-dangerous-host-p): Don't bother matching when list is nil.

* lisp/erc/erc.el (erc-list-match (lst str): Join input list as regexp
union instead of looping over items.

* etc/ERC-NEWS: Update misc-UX section for 5.5.

* test/lisp/erc/erc-match-tests.el: New file. (Bug#56450)
etc/ERC-NEWS
lisp/erc/erc-match.el
lisp/erc/erc.el
test/lisp/erc/erc-match-tests.el [new file with mode: 0644]