Subject: Re: bug#13293: 24.2.91; eshell completion cycles fail in pre-test

From: Glenn Morris <[email-masked]>
Date: Sun, 30 Dec 2012 14:04:14 -0500

Glenn Morris wrote:

> Looks like we need to add eshell-pcomplete to the list in the function
> pcomplete:
>
> (memq last-command '(pcomplete
>                      pcomplete-expand-and-complete
>                      pcomplete-reverse))

Or maybe this:

*** lisp/eshell/em-cmpl.el	2012-11-19 19:22:07 +0000
--- lisp/eshell/em-cmpl.el	2012-12-30 19:02:48 +0000
***************
*** 454,461 ****
  (defun eshell-pcomplete ()
    "Eshell wrapper for `pcomplete'."
    (interactive)
    (condition-case nil
!       (pcomplete)
      (text-read-only (completion-at-point)))) ; Workaround for bug#12838.
  
  (provide 'em-cmpl)
--- 454,462 ----
  (defun eshell-pcomplete ()
    "Eshell wrapper for `pcomplete'."
    (interactive)
+   (setq this-command 'pcomplete)
    (condition-case nil
!       (call-interactively 'pcomplete)
      (text-read-only (completion-at-point)))) ; Workaround for bug#12838.
  
  (provide 'em-cmpl)