]> git.eshelyaron.com Git - emacs.git/commit
Use modern fallback for channel name detection in ERC
authorF. Jason Park <jp@neverwas.me>
Mon, 12 Feb 2024 04:01:54 +0000 (20:01 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:02:46 +0000 (14:02 +0100)
commitc14249bdc1b989b51a095235efe6958d3f9822d4
treee06f1da6e7cf427295e8812a6ef982639f150ac7
parentb090d4b7e10e4342ed0c73caac78c8c5da7a5028
Use modern fallback for channel name detection in ERC

* lisp/erc/erc-backend.el (erc-query-buffer-p): Remove forward declaration.
* lisp/erc/erc.el (erc-query-buffer-p): Defer to `erc-channel-p'.
(erc-channel-p): Refactor and use `erc--fallback-channel-prefixes' for
the default CHANTYPES value.  Honor an empty CHANTYPES value as valid,
e.g., for servers that only support direct messages.
(erc--fallback-channel-prefixes): New variable to hold fallback
CHANTYPES prefixes recommended by RFC1459 and modern authorities on
the matter.
* test/lisp/erc/erc-tests.el (erc-channel-p): Revise test.  (Bug#67220)

(cherry picked from commit 3d87e343276081247102838b827b8a1f5e9e0c54)
lisp/erc/erc-backend.el
lisp/erc/erc.el
test/lisp/erc/erc-tests.el