2012-11-15 Glenn Morris <rgm@gnu.org>
+ * eshell/em-cmpl.el (eshell-pcomplete): New command. (Bug#12838)
+ (eshell-cmpl-initialize): Bind eshell-pcomplete to TAB, C-i.
+
* faces.el (face-underline-p): Doc fix. Handle :underline being
things other than `t' (a string, a list).
(face-inverse-video-p): Doc fix.
'pcomplete-expand-and-complete)
(define-key eshell-command-map [space] 'pcomplete-expand)
(define-key eshell-command-map [? ] 'pcomplete-expand)
- (define-key eshell-mode-map [tab] 'pcomplete)
- (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)
;; jww (1999-10-19): Will this work on anything but X?
(if (featurep 'xemacs)
(define-key eshell-mode-map [iso-left-tab] 'pcomplete-reverse)
(all-completions filename obarray 'functionp))
completions)))))))
+(defun eshell-pcomplete ()
+ "Eshell wrapper for `pcomplete'."
+ (interactive)
+ (if eshell-cmpl-ignore-case
+ (pcomplete-expand-and-complete) ; hack workaround for bug#12838
+ (pcomplete)))
+
(provide 'em-cmpl)
;; Local Variables: