Commit 5ee1772e authored by Glenn Morris's avatar Glenn Morris

* eshell/em-cmpl.el (eshell-pcomplete): More thoroughly imitate pcomplete.

Fixes: debbugs:13293
parent 4cddca30
2012-12-31 Glenn Morris <rgm@gnu.org>
* eshell/em-cmpl.el (eshell-pcomplete):
More thoroughly imitate pcomplete. (Bug#13293)
* files.el (parse-colon-path): Doc fix. (Bug#12351)
Return nil for empty path elements. (Bug#13296)
......
......@@ -451,11 +451,15 @@ to writing a completion function."
(all-completions filename obarray 'functionp))
completions)))))))
(defun eshell-pcomplete ()
(defun eshell-pcomplete (&optional interactively)
"Eshell wrapper for `pcomplete'."
(interactive)
(interactive "p")
;; Pretend to be pcomplete so that cycling works (bug#13293).
(setq this-command 'pcomplete)
(condition-case nil
(pcomplete)
(if interactively
(call-interactively 'pcomplete)
(pcomplete))
(text-read-only (completion-at-point)))) ; Workaround for bug#12838.
(provide 'em-cmpl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment