Function: erc-pcomplete-mode

erc-pcomplete-mode is an interactive and byte-compiled function defined in erc-pcomplete.el.gz.

Signature

(erc-pcomplete-mode &optional ARG)

Documentation

Toggle ERC pcomplete mode.

If called interactively, enable erc-pcomplete-mode(var)/erc-pcomplete-mode(fun) if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.

In ERC Completion mode, the TAB key does completion whenever possible.

Key Bindings

Aliases

erc-completion-mode(var)/erc-completion-mode(fun)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-pcomplete.el.gz
;;; erc-pcomplete.el --- Provides programmable completion for ERC  -*- lexical-binding: t; -*-

;; Copyright (C) 2002-2004, 2006-2026 Free Software Foundation, Inc.

;; Author: Sacha Chua <sacha@free.net.ph>
;; Maintainer: Amin Bandali <bandali@gnu.org>, F. Jason Park <jp@neverwas.me>
;; Keywords: comm
;; URL: https://www.emacswiki.org/emacs/ErcCompletion

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;; This file replaces erc-complete.el.  It provides nick completion
;; for ERC based on pcomplete.  If you do not have pcomplete, you may
;; try to use erc-complete.el.
;;
;; To use, (require 'erc-auto) or (require 'erc-pcomplete), then
;;   (erc-pcomplete-mode 1)
;;
;; If you want nickname completions ordered such that the most recent
;; speakers are listed first, set
;; `erc-pcomplete-order-nickname-completions' to t.
;;
;; See CREDITS for other contributors.
;;
;;; Code:

(require 'pcomplete)