diff options
author | Colin Walters <walters@gnu.org> | 2002-02-23 21:34:25 +0000 |
---|---|---|
committer | Colin Walters <walters@gnu.org> | 2002-02-23 21:34:25 +0000 |
commit | 5a2ef230ef06b53fa1bbacad8996e6b98bf8d5f0 (patch) | |
tree | 190c0d414a092c2cf3c3510672c046b56dbdac04 /lisp/comint.el | |
parent | d9c62d8f6cbb433f2db6bba97d5b56cf5e6a1d1f (diff) | |
download | emacs-5a2ef230ef06b53fa1bbacad8996e6b98bf8d5f0.tar.gz |
Document how use new pcomplete completion facility.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 14d2579e32b..0c1dcbd7f52 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -56,6 +56,34 @@ ;; For further information on the standard derived modes (shell, ;; inferior-lisp, inferior-scheme, ...), see the relevant source files. + +;; To give your mode support for the programmable, dynamic completion +;; facility in "pcomplete.el", you should define two functions in the +;; following form, replacing <MODE> with the prefix of your mode: + +;; (defvar <MODE>-pcomplete-setup-p nil) +;; (defun <MODE>-pcomplete () +;; "Cycle forwards through completions at point, using `pcomplete'. +;; This function merely invokes `pcomplete', after ensuring this buffer +;; is set up for it." +;; (interactive) +;; (unless (prog1 <MODE>-pcomplete-setup-p +;; (setq <MODE>-pcomplete-setup-p t)) +;; (pcomplete-comint-setup '<MODE>-dynamic-complete-functions)) +;; (setq this-command 'pcomplete) +;; (call-interactively #'pcomplete)) + +;; (defun <MODE>-pcomplete-reverse () +;; "Cycle backwards through completions at point, using `pcomplete'. +;; This function merely invokes `pcomplete-reverse', after ensuring this +;; buffer is set up for it." +;; (interactive) +;; (unless (prog1 <MODE>-pcomplete-setup-p +;; (setq <MODE>-pcomplete-setup-p t)) +;; (pcomplete-comint-setup '<MODE>-dynamic-complete-functions)) +;; (setq this-command 'pcomplete-reverse) +;; (call-interactively #'pcomplete-reverse)) + ;; For hints on converting existing process modes (e.g., tex-mode, ;; background, dbx, gdb, kermit, prolog, telnet) to use comint-mode ;; instead of shell-mode, see the notes at the end of this file. |