Subject: Re: bug#59803: completion-at-point in shell buffer ignores some files

From: Gregory Heytings <[email-masked]>
Date: Sat, 10 Dec 2022 21:43:09 +0000

I'm not Stefan (alas 😉), but the culprit is a994126968, and here's the 
fix (a single character change!).

>
> Ping!  Stefan, any suggestions or ideas?
>
From 7df86f7dfab69dd6ffa2625bbe2584d70e9c9242 Mon Sep 17 00:00:00 2001
From: Gregory Heytings <[email-masked]>
Date: Sat, 10 Dec 2022 21:40:31 +0000
Subject: [PATCH] Do not pare arguments unnecessarily.

* lisp/pcomplete.el (pcomplete-here-using-help): Do not pare
arguments.  Fixes bug#59803.
---
 lisp/pcomplete.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index ef286b70fe..e01f42ceb4 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -1456,7 +1456,7 @@ pcomplete-here-using-help
                            (pcomplete-match-string 1 0)))
           ((string-prefix-p "-" (pcomplete-arg 0))
            (pcomplete-here (apply #'pcomplete-from-help command args)))
-          (t (pcomplete-here (pcomplete-entries))))))
+          (t (pcomplete-here* (pcomplete-entries))))))
 
 (provide 'pcomplete)
 
-- 
2.35.1