Function: erc-get-channel-mode-from-keypress

erc-get-channel-mode-from-keypress is an interactive and byte-compiled function defined in erc.el.gz.

Signature

(erc-get-channel-mode-from-keypress KEY)

Documentation

Read a key sequence and call the corresponding channel mode function.

After doing C-c C-o, type in a channel mode letter.

C-g means quit. RET lets you type more than one mode at a time. If "l" is pressed, erc-set-channel-limit gets called. If "k" is pressed, erc-set-channel-key gets called. Anything else will be sent to erc-toggle-channel-mode.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-get-channel-mode-from-keypress (key)
  "Read a key sequence and call the corresponding channel mode function.
After doing C-c C-o, type in a channel mode letter.

C-g means quit.
RET lets you type more than one mode at a time.
If \"l\" is pressed, `erc-set-channel-limit' gets called.
If \"k\" is pressed, `erc-set-channel-key' gets called.
Anything else will be sent to `erc-toggle-channel-mode'."
  (interactive "kChannel mode (RET to set more than one): ")
  (cond ((equal key "\C-g")
         (keyboard-quit))
        ((equal key "\C-m")
         (erc-insert-mode-command))
        ((equal key "l")
         (call-interactively 'erc-set-channel-limit))
        ((equal key "k")
         (call-interactively 'erc-set-channel-key))
        (t (erc-toggle-channel-mode key))))