aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell/em-cmpl.el
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-17 20:00:16 +0200
committerEli Zaretskii2012-11-17 20:00:16 +0200
commitcf2d22b874ca2df0072e32ee641e8efffe4abd6d (patch)
tree1795142ec7861fc85c61adc90f03265b69041556 /lisp/eshell/em-cmpl.el
parent3c4ca7155293ffc2d04708007131bcbc882d8913 (diff)
parent6ad30855c02908fdd99d9b11943719e185e65ee3 (diff)
downloademacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.tar.gz
emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.zip
Merge from trunk.
Diffstat (limited to 'lisp/eshell/em-cmpl.el')
-rw-r--r--lisp/eshell/em-cmpl.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el
index a67861e83a9..aa8aae2d245 100644
--- a/lisp/eshell/em-cmpl.el
+++ b/lisp/eshell/em-cmpl.el
@@ -295,8 +295,8 @@ to writing a completion function."
295 'pcomplete-expand-and-complete) 295 'pcomplete-expand-and-complete)
296 (define-key eshell-command-map [space] 'pcomplete-expand) 296 (define-key eshell-command-map [space] 'pcomplete-expand)
297 (define-key eshell-command-map [? ] 'pcomplete-expand) 297 (define-key eshell-command-map [? ] 'pcomplete-expand)
298 (define-key eshell-mode-map [tab] 'pcomplete) 298 (define-key eshell-mode-map [tab] 'eshell-pcomplete)
299 (define-key eshell-mode-map [(control ?i)] 'pcomplete) 299 (define-key eshell-mode-map [(control ?i)] 'eshell-pcomplete)
300 ;; jww (1999-10-19): Will this work on anything but X? 300 ;; jww (1999-10-19): Will this work on anything but X?
301 (if (featurep 'xemacs) 301 (if (featurep 'xemacs)
302 (define-key eshell-mode-map [iso-left-tab] 'pcomplete-reverse) 302 (define-key eshell-mode-map [iso-left-tab] 'pcomplete-reverse)
@@ -449,6 +449,13 @@ to writing a completion function."
449 (all-completions filename obarray 'functionp)) 449 (all-completions filename obarray 'functionp))
450 completions))))))) 450 completions)))))))
451 451
452(defun eshell-pcomplete ()
453 "Eshell wrapper for `pcomplete'."
454 (interactive)
455 (if eshell-cmpl-ignore-case
456 (pcomplete-expand-and-complete) ; hack workaround for bug#12838
457 (pcomplete)))
458
452(provide 'em-cmpl) 459(provide 'em-cmpl)
453 460
454;; Local Variables: 461;; Local Variables: