Function: erc-prompt

erc-prompt is a byte-compiled function defined in erc.el.gz.

Signature

(erc-prompt)

Documentation

Return the input prompt as a string.

See also the variable erc-prompt(var)/erc-prompt(fun).

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
               'ignore-missing)) ; formerly `only-present'

(defun erc-prompt ()
  "Return the input prompt as a string.

See also the variable `erc-prompt'."
  (let ((prompt (if (functionp erc-prompt)
                    (funcall erc-prompt)
                  erc-prompt)))
    (if (> (length prompt) 0)
        (concat prompt " ")
      prompt)))