diff options
| author | Stefan Monnier | 2019-03-19 23:41:20 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-03-19 23:41:20 -0400 |
| commit | 047c1b19353ff58d8cd45935c7b44c911b70e312 (patch) | |
| tree | 372db51d9d30c1435f4d5d0d7799e45e2c9f27a4 /doc/misc | |
| parent | e14c0d748efe35afc653151ff18c4dd93dcc456e (diff) | |
| download | emacs-047c1b19353ff58d8cd45935c7b44c911b70e312.tar.gz emacs-047c1b19353ff58d8cd45935c7b44c911b70e312.zip | |
* lisp/eshell/em-cmpl.el: Use completion-at-point i.s.o pcomplete
(eshell-cmpl-initialize): Refrain from binding to the `tab` key,
which prevents the tab -> TAB remapping.
Use completion-at-point and completion-help-at-point.
(eshell-complete-commands-list): Use `fboundp` test instead of ugly
gymnastics to try and hide the function call from the compiler.
(eshell-pcomplete): Make it an alias of completion-at-point.
* doc/misc/eshell.texi (Completion): Change wording to reflect
different default behavior.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/eshell.texi | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index ce3a30c3a9e..716b4b7a50d 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -499,15 +499,14 @@ be directories @emph{and} files. Eshell provides predefined completions | |||
| 499 | for the built-in functions and some common external commands, and you | 499 | for the built-in functions and some common external commands, and you |
| 500 | can define your own for any command. | 500 | can define your own for any command. |
| 501 | 501 | ||
| 502 | Eshell completion also works for lisp forms and glob patterns. If the | 502 | Eshell completion also works for lisp forms and glob patterns. If the point is |
| 503 | point is on a lisp form, then @key{TAB} will behave similarly to completion | 503 | on a lisp form, then @key{TAB} will behave similarly to completion in |
| 504 | in @code{elisp-mode} and @code{lisp-interaction-mode}. For glob | 504 | @code{elisp-mode} and @code{lisp-interaction-mode}. For glob patterns, the |
| 505 | patterns, If there are few enough possible completions of the patterns, | 505 | pattern will be removed from the input line, and replaced by the |
| 506 | they will be cycled when @key{TAB} is pressed, otherwise it will be removed | 506 | completion. |
| 507 | from the input line and the possible completions will be listed. | 507 | |
| 508 | 508 | If you want to see the entire list of possible completions (e.g. when it's | |
| 509 | If you want to see the entire list of possible completions when it's | 509 | below the @code{completion-cycle-threshold}), press @kbd{M-?}. |
| 510 | below the cycling threshold, press @kbd{M-?}. | ||
| 511 | 510 | ||
| 512 | @subsection pcomplete | 511 | @subsection pcomplete |
| 513 | Pcomplete, short for programmable completion, is the completion | 512 | Pcomplete, short for programmable completion, is the completion |