diff options
| author | Glenn Morris | 2012-12-31 13:28:33 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-12-31 13:28:33 -0800 |
| commit | 5ee1772e2c5cff56ff1825b79acdd67dc142bf49 (patch) | |
| tree | 344889f1b112f4c6ce23af684a99396e542f8b5c | |
| parent | 4cddca3070934602b0156a5cc260c633f210599c (diff) | |
| download | emacs-5ee1772e2c5cff56ff1825b79acdd67dc142bf49.tar.gz emacs-5ee1772e2c5cff56ff1825b79acdd67dc142bf49.zip | |
* eshell/em-cmpl.el (eshell-pcomplete): More thoroughly imitate pcomplete.
Fixes: debbugs:13293
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/eshell/em-cmpl.el | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a7fc8f7fd4..49496efec69 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-12-31 Glenn Morris <rgm@gnu.org> | 1 | 2012-12-31 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * eshell/em-cmpl.el (eshell-pcomplete): | ||
| 4 | More thoroughly imitate pcomplete. (Bug#13293) | ||
| 5 | |||
| 3 | * files.el (parse-colon-path): Doc fix. (Bug#12351) | 6 | * files.el (parse-colon-path): Doc fix. (Bug#12351) |
| 4 | Return nil for empty path elements. (Bug#13296) | 7 | Return nil for empty path elements. (Bug#13296) |
| 5 | 8 | ||
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) |