Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
51e14f13
Commit
51e14f13
authored
Sep 12, 2013
by
Stefan Monnier
Browse files
* eshell/em-cmpl.el: Undo accidental part of last commit.
parent
379add74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
lisp/eshell/em-cmpl.el
lisp/eshell/em-cmpl.el
+16
-4
No files found.
lisp/eshell/em-cmpl.el
View file @
51e14f13
...
@@ -297,16 +297,19 @@ to writing a completion function."
...
@@ -297,16 +297,19 @@ to writing a completion function."
(
define-key
eshell-mode-map
[
(
meta
tab
)
]
'eshell-complete-lisp-symbol
)
(
define-key
eshell-mode-map
[
(
meta
tab
)
]
'eshell-complete-lisp-symbol
)
(
define-key
eshell-mode-map
[
(
meta
control
?i
)
]
'eshell-complete-lisp-symbol
)
(
define-key
eshell-mode-map
[
(
meta
control
?i
)
]
'eshell-complete-lisp-symbol
)
(
define-key
eshell-command-map
[
(
meta
?h
)
]
'eshell-completion-help
)
(
define-key
eshell-command-map
[
(
meta
?h
)
]
'eshell-completion-help
)
(
define-key
eshell-command-map
[tab]
'pcomplete-expand-and-complete
)
(
define-key
eshell-command-map
[
(
control
?i
)
]
(
define-key
eshell-command-map
[
(
control
?i
)
]
'pcomplete-expand-and-complete
)
'pcomplete-expand-and-complete
)
(
define-key
eshell-command-map
[space]
'pcomplete-expand
)
(
define-key
eshell-command-map
[space]
'pcomplete-expand
)
(
define-key
eshell-command-map
[?
]
'pcomplete-expand
)
(
define-key
eshell-command-map
[?
]
'pcomplete-expand
)
(
define-key
eshell-mode-map
[
(
control
?i
)
]
'pcomplete
)
(
define-key
eshell-mode-map
[tab]
'eshell-pcomplete
)
(
define-key
eshell-mode-map
[
(
control
?i
)
]
'eshell-pcomplete
)
(
add-hook
'completion-at-point-functions
(
add-hook
'completion-at-point-functions
#'
pcomplete-completions-at-point
nil
t
)
#'
pcomplete-completions-at-point
nil
t
)
;; jww (1999-10-19): Will this work on anything but X?
;; jww (1999-10-19): Will this work on anything but X?
(
define-key
eshell-mode-map
(
if
(
featurep
'xemacs
)
[iso-left-tab]
[backtab]
)
(
if
(
featurep
'xemacs
)
'pcomplete-reverse
)
(
define-key
eshell-mode-map
[iso-left-tab]
'pcomplete-reverse
)
(
define-key
eshell-mode-map
[backtab]
'pcomplete-reverse
))
(
define-key
eshell-mode-map
[
(
meta
??
)
]
'pcomplete-list
))
(
define-key
eshell-mode-map
[
(
meta
??
)
]
'pcomplete-list
))
(
defun
eshell-completion-command-name
()
(
defun
eshell-completion-command-name
()
...
@@ -455,7 +458,16 @@ to writing a completion function."
...
@@ -455,7 +458,16 @@ to writing a completion function."
(
all-completions
filename
obarray
'functionp
))
(
all-completions
filename
obarray
'functionp
))
completions
)))))))
completions
)))))))
(
define-obsolete-function-alias
'eshell-pcomplete
'completion-at-point
)
(
defun
eshell-pcomplete
(
&optional
interactively
)
"Eshell wrapper for `pcomplete'."
(
interactive
"p"
)
;; Pretend to be pcomplete so that cycling works (bug#13293).
(
setq
this-command
'pcomplete
)
(
condition-case
nil
(
if
interactively
(
call-interactively
'pcomplete
)
(
pcomplete
))
(
text-read-only
(
completion-at-point
))))
; Workaround for bug#12838.
(
provide
'em-cmpl
)
(
provide
'em-cmpl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment