aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/shell.el7
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 055d929fc5..8679b2c4f5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-03 Chong Yidong <[email protected]>
+
+ * shell.el (shell-dynamic-complete-functions): Put
+ pcomplete-completions-at-point, so as to try
+ comint-filename-completion first (Bug#10417).
+
2012-01-02 Richard Stallman <[email protected]>
* battery.el (battery-status-function):
diff --git a/lisp/shell.el b/lisp/shell.el
index 7da1add8e9..4e570c6326 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -187,10 +187,11 @@ This is a fine thing to set in your `.emacs' file.")
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)
+ comint-filename-completion
+ ;; This goes last, so that `comint-filename-completion' can handle
+ ;; `shell-completion-execonly' (Bug#10417).
+ pcomplete-completions-at-point)
"List of functions called to perform completion.
This variable is used to initialize `comint-dynamic-complete-functions' in the
shell buffer.