* eshell/em-cmpl.el (eshell-pcomplete): More thoroughly imitate pcomplete.
Fixes: debbugs:13293
This commit is contained in:
parent
4cddca3070
commit
5ee1772e2c
2 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue