error, its exit status is 1.
** Completion
+*** shell-mode uses pcomplete rules, with the standard completion UI.
+
*** Many packages have been changed to use completion-at-point rather than
their own completion code.
+2011-06-04 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * shell.el: Require and use pcomplete.
+ (shell-dynamic-complete-functions): Add pcomplete-completions-at-point.
+ (shell-completion-vars): Set pcomplete-default-completion-function.
+
2011-06-04 Deniz Dogan <deniz@dogan.se>
* iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of
(eval-when-compile (require 'cl))
(require 'comint)
+(require 'pcomplete)
;;; Customization and Buffer Variables
shell-environment-variable-completion
shell-command-completion
shell-c-a-p-replace-by-expanded-directory
+ pcomplete-completions-at-point
shell-filename-completion
+ ;; Not sure when this one would still be useful. --Stef
comint-filename-completion)
"List of functions called to perform completion.
This variable is used to initialize `comint-dynamic-complete-functions' in the
:group 'shell
:type '(choice (const nil) regexp))
-(defvar pcomplete-parse-arguments-function)
(defun shell-completion-vars ()
"Setup completion vars for `shell-mode' and `read-shell-command'."
(set (make-local-variable 'pcomplete-parse-arguments-function)
;; FIXME: This function should be moved to shell.el.
#'pcomplete-parse-comint-arguments)
+ ;; Don't use pcomplete's defaulting mechanism, rely on
+ ;; shell-dynamic-complete-functions instead.
+ (set (make-local-variable 'pcomplete-default-completion-function) #'ignore)
(setq comint-input-autoexpand shell-input-autoexpand)
;; Not needed in shell-mode because it's inherited from comint-mode, but
;; placed here for read-shell-command.