Mercurial > emacs
changeset 43844:a0885debe0c5
(toplevel): Revert previous change to use pcomplete.
(shell-mode): Ditto.
(shell-pcomplete-setup-done): Remove.
(shell-pcomplete): Ditto.
(shell-pcomplete-reverse): Ditto.
author | Colin Walters <walters@gnu.org> |
---|---|
date | Mon, 11 Mar 2002 21:13:14 +0000 |
parents | b7df840b93fb |
children | 2b7c6a39c827 |
files | lisp/shell.el |
diffstat | 1 files changed, 2 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/shell.el Mon Mar 11 21:12:49 2002 +0000 +++ b/lisp/shell.el Mon Mar 11 21:13:14 2002 +0000 @@ -310,8 +310,7 @@ (setq shell-mode-map (nconc (make-sparse-keymap) comint-mode-map)) (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command) (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command) - (define-key shell-mode-map "\t" 'shell-pcomplete) - (define-key shell-mode-map "\M-\t" 'shell-pcomplete-reverse) + (define-key shell-mode-map "\t" 'comint-dynamic-complete) (define-key shell-mode-map "\M-?" 'comint-dynamic-list-filename-completions) (define-key shell-mode-map [menu-bar completion] @@ -398,6 +397,7 @@ (setq comint-delimiter-argument-list shell-delimiter-argument-list) (setq comint-file-name-chars shell-file-name-chars) (setq comint-file-name-quote-list shell-file-name-quote-list) + (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) (make-local-variable 'paragraph-start) (setq paragraph-start comint-prompt-regexp) (make-local-variable 'font-lock-defaults) @@ -858,32 +858,6 @@ (progn (goto-char (match-beginning 1)) (skip-chars-forward ";&|"))))) -(defvar shell-pcomplete-setup-done nil) - -(defun shell-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 shell-pcomplete-setup-done - (setq shell-pcomplete-setup-done t) - (pcomplete-comint-setup 'shell-dynamic-complete-functions)) - ;; Convince pcomplete we are calling it directly - (setq this-command 'pcomplete) - (call-interactively #'pcomplete)) - -(defun shell-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 shell-pcomplete-setup-done - (setq shell-pcomplete-setup-done t) - (pcomplete-comint-setup 'shell-dynamic-complete-functions)) - ;; Convince pcomplete we are calling it directly - (setq this-command 'pcomplete-reverse) - (call-interactively #'pcomplete-reverse)) - (defun shell-dynamic-complete-command () "Dynamically complete the command at point. This function is similar to `comint-dynamic-complete-filename', except that it