aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorStefan Monnier2019-03-19 23:41:20 -0400
committerStefan Monnier2019-03-19 23:41:20 -0400
commit047c1b19353ff58d8cd45935c7b44c911b70e312 (patch)
tree372db51d9d30c1435f4d5d0d7799e45e2c9f27a4 /doc/misc
parente14c0d748efe35afc653151ff18c4dd93dcc456e (diff)
downloademacs-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.texi17
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
499for the built-in functions and some common external commands, and you 499for the built-in functions and some common external commands, and you
500can define your own for any command. 500can define your own for any command.
501 501
502Eshell completion also works for lisp forms and glob patterns. If the 502Eshell completion also works for lisp forms and glob patterns. If the point is
503point is on a lisp form, then @key{TAB} will behave similarly to completion 503on a lisp form, then @key{TAB} will behave similarly to completion in
504in @code{elisp-mode} and @code{lisp-interaction-mode}. For glob 504@code{elisp-mode} and @code{lisp-interaction-mode}. For glob patterns, the
505patterns, If there are few enough possible completions of the patterns, 505pattern will be removed from the input line, and replaced by the
506they will be cycled when @key{TAB} is pressed, otherwise it will be removed 506completion.
507from the input line and the possible completions will be listed. 507
508 508If you want to see the entire list of possible completions (e.g. when it's
509If you want to see the entire list of possible completions when it's 509below the @code{completion-cycle-threshold}), press @kbd{M-?}.
510below the cycling threshold, press @kbd{M-?}.
511 510
512@subsection pcomplete 511@subsection pcomplete
513Pcomplete, short for programmable completion, is the completion 512Pcomplete, short for programmable completion, is the completion