diff options
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/em-cmpl.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index b4c86e39e86..4705adbae19 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el | |||
| @@ -451,11 +451,15 @@ to writing a completion function." | |||
| 451 | (all-completions filename obarray 'functionp)) | 451 | (all-completions filename obarray 'functionp)) |
| 452 | completions))))))) | 452 | completions))))))) |
| 453 | 453 | ||
| 454 | (defun eshell-pcomplete () | 454 | (defun eshell-pcomplete (&optional interactively) |
| 455 | "Eshell wrapper for `pcomplete'." | 455 | "Eshell wrapper for `pcomplete'." |
| 456 | (interactive) | 456 | (interactive "p") |
| 457 | ;; Pretend to be pcomplete so that cycling works (bug#13293). | ||
| 458 | (setq this-command 'pcomplete) | ||
| 457 | (condition-case nil | 459 | (condition-case nil |
| 458 | (pcomplete) | 460 | (if interactively |
| 461 | (call-interactively 'pcomplete) | ||
| 462 | (pcomplete)) | ||
| 459 | (text-read-only (completion-at-point)))) ; Workaround for bug#12838. | 463 | (text-read-only (completion-at-point)))) ; Workaround for bug#12838. |
| 460 | 464 | ||
| 461 | (provide 'em-cmpl) | 465 | (provide 'em-cmpl) |