]> git.eshelyaron.com Git - emacs.git/commit
Refactor erc-select-read-args
authorF. Jason Park <jp@neverwas.me>
Mon, 11 Jul 2022 12:14:57 +0000 (05:14 -0700)
committerF. Jason Park <jp@neverwas.me>
Thu, 17 Nov 2022 05:34:36 +0000 (21:34 -0800)
commit46c765ed09422767306bd7acfc8422d5ad4cea4a
tree9f24e1baa24092c576573aa355f96899a9199fb5
parent5699e43f27ef5ca760a38572928be8a53819a430
Refactor erc-select-read-args

* lisp/erc/erc-backend.el (erc--server-connect-dumb-ipv6-regexp): Add
liberal pattern for matching bracketed IPv6 addresses.
(erc-server-connect): Remove brackets from IPv6 hosts before
connecting.
* lisp/erc/erc.el (erc--ensure-url): Add compat adapter to massage
partial URLs given as input that may be missing the scheme:// portion.
(erc-select-read-args): Keep bracketed IPv6 hosts
intact.  Make this function fully URL-aware (was only partially so).
Accept optional `input' argument.
* lisp/erc/erc-tests.el (erc-tests--ipv6-examples,
erc--server-connect-dumb-ipv6-regexp, erc-select-read-args): Add test
reading user input during interactive invocations of entry points.
(Bug#56514.)
lisp/erc/erc-backend.el
lisp/erc/erc.el
test/lisp/erc/erc-tests.el