diff options
author | F. Jason Park <jp@neverwas.me> | 2022-12-12 07:38:44 -0800 |
---|---|---|
committer | F. Jason Park <jp@neverwas.me> | 2022-12-16 06:36:24 -0800 |
commit | f04680e067b04ccc9c37e709172c42bf34977ec8 (patch) | |
tree | 677d6c76514b5a040cf71b18dbb16ae5b20103c3 /lisp/erc/erc.el | |
parent | 173e02f4eb41853a60d4532d76c3c67324da05a8 (diff) | |
download | emacs-f04680e067b04ccc9c37e709172c42bf34977ec8.tar.gz |
Fix some naming issues involving query buffers in ERC
* lisp/erc/erc-networks.el
(erc-networks-rename-surviving-target-buffer): Don't kill a surviving
target buffer when another, non-target buffer, possibly not even
belonging to ERC, already exists and sports the target's name.
(erc-networks--reconcile-buffer-names): Always append a network-ID
suffix to a target buffer's name if another buffer of that name
already exists. (Bug#59976.)
* lisp/erc/erc.el (erc, erc-tls): Revise `:id' portion of doc strings.
Thanks to Mike Kazantsev for the suggestion and for filing this bug
and helping solve it.
* test/lisp/erc/erc-networks-tests.el:
(erc-networks-rename-surviving-target-buffer--query-non-target): Add
new test.
* test/lisp/erc/erc-scenarios-base-association-query.el: New file.
* test/lisp/erc/resources/base/assoc/queries/netnick.eld: New file.
* test/lisp/erc/resources/base/assoc/queries/non-erc.eld: New file.
Diffstat (limited to 'lisp/erc/erc.el')
-rw-r--r-- | lisp/erc/erc.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 6afa4004784..6cfc39c4bda 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -2226,9 +2226,7 @@ then the server and full-name will be set to those values, whereas `erc-compute-port' and `erc-compute-nick' will be invoked for the values of the other parameters. -When present, ID should be an opaque object used to identify the -connection unequivocally. This is rarely needed and not available -interactively." +See `erc-tls' for the meaning of ID." (interactive (erc-select-read-args)) (erc-open server port nick full-name t password nil nil nil nil user id)) @@ -2255,6 +2253,7 @@ Non-interactively, it takes the keyword arguments (server (erc-compute-server)) (port (erc-compute-port)) (nick (erc-compute-nick)) + (user (erc-compute-user)) password (full-name (erc-compute-full-name)) client-certificate @@ -2283,11 +2282,11 @@ Example usage: \\='(\"/home/bandali/my-cert.key\" \"/home/bandali/my-cert.crt\")) -When present, ID should be an opaque object for identifying the -connection unequivocally. (In most cases, this would be a string or a -symbol composed of letters from the Latin alphabet.) This option is -generally unneeded, however. See info node `(erc) Connecting' for use -cases. Not available interactively." +When present, ID should be a symbol or a string to use for naming +the server buffer and identifying the connection unequivocally. +See info node `(erc) Network Identifier' for details. Like USER +and CLIENT-CERTIFICATE, this parameter cannot be specified +interactively." (interactive (let ((erc-default-port erc-default-port-tls)) (erc-select-read-args))) (let ((erc-server-connect-function 'erc-open-tls-stream)) |