Subject: Re: bug#10457: (Broken?) programmable completion in shell buffers

From: Glenn Morris <[email-masked]>
Date: Tue, 24 Jan 2012 13:12:59 -0500

I installed a simple-minded solution that works for me.
Anyone should feel free to replace it with something better.

*** lisp/pcmpl-gnu.el	2012-01-19 07:21:25 +0000
--- lisp/pcmpl-gnu.el	2012-01-24 18:06:37 +0000
***************
*** 243,248 ****
--- 243,250 ----
                     "--volno-file=")))
            (pcomplete-opt "01234567ABCFGKLMNOPRSTUVWXZbcdfghiklmoprstuvwxz"))
          (cond
+          ((pcomplete-match "\\`-\\'" 0)
+           (pcomplete-here*))
           ((pcomplete-match "\\`--after-date=" 0)
            (pcomplete-here*))
           ((pcomplete-match "\\`--backup=" 0)