Function: erc-cmd-QUERY
erc-cmd-QUERY is an interactive and byte-compiled function defined in
erc.el.gz.
Signature
(erc-cmd-QUERY &optional USER)
Documentation
Open a query with USER.
How the query is displayed (in a new window, frame, etc.) depends
on the value of erc-query-display.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-cmd-QUERY (&optional user)
"Open a query with USER.
How the query is displayed (in a new window, frame, etc.) depends
on the value of `erc-query-display'."
;; FIXME: The doc string used to say at the end:
;; "If USER is omitted, close the current query buffer if one exists
;; - except this is broken now ;-)"
;; Does it make sense to have that functionality? What's wrong with
;; `kill-buffer'? If it makes sense, re-add it. -- SK @ 2021-11-11
(interactive
(list (read-string "Start a query with: ")))
(unless user
;; currently broken, evil hack to display help anyway
;(erc-delete-query))))
(signal 'wrong-number-of-arguments ""))
(let ((erc-join-buffer erc-query-display))
(erc-with-server-buffer
(erc--open-target user))))